ESLA

Embeddable Scriting LAnguage

frantz@pangea.stanford.edu

Stanford University, Rock Fracture Project research group

© 2003

IfBase Class Reference

Inheritance diagram for IfBase:

GenAction GenObject Counted IfAction

Public Methods

 IfBase ()
virtual std::string args () const

Protected Methods

virtual bool bind (const std::string &expression)
virtual bool rebind (const std::string &name, const std::string &new_value)
virtual std::string resolve (const std::string &name)
virtual bool parse (const std::string &expr, std::string &res)
RET_TYPE eval (const std::string &var, bool &)
void set_true_expr (bool)
void set_has_else (bool)
bool has_else () const
RET_TYPE pre_execute (bool &result)

Protected Attributes

Tokens vars_
LocalStringVarRegistry var_registry_if_
LocalStringVarRegistry var_registry_else_

Constructor & Destructor Documentation

IfBase::IfBase (    ) 
 


Member Function Documentation

virtual std::string IfBase::args (    )  const [virtual]
 

Implements GenAction.

virtual bool IfBase::bind (  const std::string &    expression )  [protected, virtual]
 

Reimplemented from GenAction.

RET_TYPE IfBase::eval (  const std::string &    var,
bool &   
)  [protected]
 

bool IfBase::has_else (    )  const [protected]
 

Definition at line 65 of file if_action.h.

virtual bool IfBase::parse (  const std::string &    expr,
std::string &    res
)  [protected, virtual]
 

Reimplemented from GenAction.

RET_TYPE IfBase::pre_execute (  bool &    result )  [protected]
 

virtual bool IfBase::rebind (  const std::string &    name,
const std::string &    new_value
)  [protected, virtual]
 

Reimplemented from GenAction.

virtual std::string IfBase::resolve (  const std::string &    name )  [protected, virtual]
 

Reimplemented from GenAction.

void IfBase::set_has_else (  bool    )  [protected]
 

void IfBase::set_true_expr (  bool    )  [protected]
 


Field Documentation

LocalStringVarRegistry IfBase::var_registry_else_ [protected]
 

Definition at line 53 of file if_action.h.

LocalStringVarRegistry IfBase::var_registry_if_ [protected]
 

Definition at line 52 of file if_action.h.

Tokens IfBase::vars_ [protected]
 

Definition at line 51 of file if_action.h.


Generated on Wed May 14 11:42:33 2003 for Esla-lib by doxygen1.3-rc1