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::Let Class Reference

#include <expr.H>

Inheritance diagram for hobbes::Let:
Inheritance graph
Collaboration diagram for hobbes::Let:
Collaboration graph

Public Member Functions

 Let (const std::string &id, const ExprPtr &e, const ExprPtr &b, const LexicalAnnotation &)
 
bool operator== (const Let &) const
 
const std::string & var () const
 
const ExprPtrvarExpr () const
 
const ExprPtrbodyExpr () const
 
void var (const std::string &)
 
void varExpr (const ExprPtr &)
 
void bodyExpr (const ExprPtr &)
 
Exprclone () const
 
void show (std::ostream &out) const
 
void showAnnotated (std::ostream &out) const
 
- Public Member Functions inherited from hobbes::ExprCase< Let >
 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 = 10
 

Private Attributes

std::string id
 
ExprPtr e
 
ExprPtr b
 

Additional Inherited Members

- Public Types inherited from hobbes::ExprCase< Let >
typedef ExprCase< LetBase
 
- 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

◆ Let()

hobbes::Let::Let ( const std::string &  id,
const ExprPtr e,
const ExprPtr b,
const LexicalAnnotation la 
)

Member Function Documentation

◆ bodyExpr() [1/2]

const ExprPtr & hobbes::Let::bodyExpr ( ) const

◆ bodyExpr() [2/2]

void hobbes::Let::bodyExpr ( const ExprPtr nb)

◆ clone()

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

Implements hobbes::Expr.

◆ operator==()

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

◆ show()

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

Implements hobbes::Expr.

◆ showAnnotated()

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

Implements hobbes::Expr.

◆ var() [1/2]

const std::string & hobbes::Let::var ( ) const

◆ var() [2/2]

void hobbes::Let::var ( const std::string &  nid)

◆ varExpr() [1/2]

const ExprPtr & hobbes::Let::varExpr ( ) const

◆ varExpr() [2/2]

void hobbes::Let::varExpr ( const ExprPtr ne)

Member Data Documentation

◆ b

ExprPtr hobbes::Let::b
private

◆ e

ExprPtr hobbes::Let::e
private

◆ id

std::string hobbes::Let::id
private

◆ type_case_id

const int hobbes::Let::type_case_id = 10
static

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