hobbes
a language, embedded compiler, and runtime for efficient dynamic expression evaluation, data storage and analysis
Public Member Functions | Static Public Attributes | Private Attributes | List of all members
hobbes::Var Class Reference

#include <expr.H>

Inheritance diagram for hobbes::Var:
Inheritance graph
Collaboration diagram for hobbes::Var:
Collaboration graph

Public Member Functions

 Var (const std::string &id, const LexicalAnnotation &)
 
bool operator== (const Var &) const
 
const std::string & value () const
 
void value (const std::string &)
 
Exprclone () const
 
void show (std::ostream &out) const
 
void showAnnotated (std::ostream &out) const
 
- Public Member Functions inherited from hobbes::ExprCase< Var >
 ExprCase (const LexicalAnnotation &)
 
bool operator== (const Expr &rhs) const
 
- Public Member Functions inherited from hobbes::Expr
virtual ~Expr ()
 
const QualTypePtrtype () const
 
void type (const QualTypePtr &ty)
 
int case_id () const
 
- Public Member Functions inherited from hobbes::LexicallyAnnotated
 LexicallyAnnotated (const LexicallyAnnotated &)
 
 LexicallyAnnotated (const LexicalAnnotation &)
 
 LexicallyAnnotated (const LexRange &)
 
 LexicallyAnnotated (const Pos &, const Pos &)
 
const LexicalAnnotationla () const
 

Static Public Attributes

static const int type_case_id = 9
 

Private Attributes

std::string id
 

Additional Inherited Members

- Public Types inherited from hobbes::ExprCase< Var >
typedef ExprCase< VarBase
 
- Static Public Member Functions inherited from hobbes::LexicallyAnnotated
static void pushFileContext (const std::string &)
 
static void pushLiteralContext (const std::string &)
 
static void popContext ()
 
static LexicalAnnotation make (const Pos &, const Pos &)
 
- Protected Member Functions inherited from hobbes::Expr
 Expr (int cid, const LexicalAnnotation &)
 

Constructor & Destructor Documentation

◆ Var()

hobbes::Var::Var ( const std::string &  id,
const LexicalAnnotation la 
)

Member Function Documentation

◆ clone()

Expr * hobbes::Var::clone ( ) const
virtual

Implements hobbes::Expr.

◆ operator==()

bool hobbes::Var::operator== ( const Var rhs) const
virtual

◆ show()

void hobbes::Var::show ( std::ostream &  out) const
virtual

Implements hobbes::Expr.

◆ showAnnotated()

void hobbes::Var::showAnnotated ( std::ostream &  out) const
virtual

Implements hobbes::Expr.

◆ value() [1/2]

const std::string & hobbes::Var::value ( ) const

◆ value() [2/2]

void hobbes::Var::value ( const std::string &  nid)

Member Data Documentation

◆ id

std::string hobbes::Var::id
private

◆ type_case_id

const int hobbes::Var::type_case_id = 9
static

The documentation for this class was generated from the following files: