Represents a list of expressions, like {1, 2, 3}. More...
#include <exprList.h>
Public Types | |
typedef std::vector< ExprTree * > ::iterator | iterator |
typedef std::vector< ExprTree * > ::const_iterator | const_iterator |
typedef std::vector< ExprTree * > ::iterator | iterator |
typedef std::vector< ExprTree * > ::const_iterator | const_iterator |
Public Member Functions | |
ExprList (const std::vector< ExprTree * > &exprs) | |
ExprList (const ExprList &other_list) | |
Copy Constructor. | |
virtual | ~ExprList () |
Destructor. | |
ExprList & | operator= (const ExprList &other_list) |
void | GetComponents (std::vector< ExprTree * > &list) const |
virtual ExprTree * | Copy () const |
bool | CopyFrom (const ExprList &other_list) |
virtual bool | SameAs (const ExprTree *tree) const |
int | size () const |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
void | insert (iterator it, ExprTree *t) |
void | push_back (ExprTree *t) |
void | erase (iterator it) |
void | erase (iterator f, iterator l) |
ExprList (const std::vector< ExprTree * > &exprs) | |
ExprList (const ExprList &other_list) | |
Copy Constructor. | |
virtual | ~ExprList () |
Destructor. | |
ExprList & | operator= (const ExprList &other_list) |
void | GetComponents (std::vector< ExprTree * > &list) const |
virtual ExprTree * | Copy () const |
bool | CopyFrom (const ExprList &other_list) |
virtual bool | SameAs (const ExprTree *tree) const |
int | size () const |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
void | insert (iterator it, ExprTree *t) |
void | push_back (ExprTree *t) |
void | erase (iterator it) |
void | erase (iterator f, iterator l) |
Static Public Member Functions | |
static ExprList * | MakeExprList (const std::vector< ExprTree * > &list) |
static ExprList * | MakeExprList (const std::vector< ExprTree * > &list) |
Friends | |
class | ExprListIterator |
bool | operator== (ExprList &list1, ExprList &list2) |
bool | operator== (ExprList &list1, ExprList &list2) |
Represents a list of expressions, like {1, 2, 3}.
virtual ExprTree* ExprList::Copy | ( | ) | const [virtual] |
Makes a deep copy of the expression tree
Implements ExprTree.
ExprTree * ExprList::Copy | ( | ) | const [virtual] |
Makes a deep copy of the expression tree
Implements ExprTree.
void ExprList::GetComponents | ( | std::vector< ExprTree * > & | list | ) | const |
Deconstructor to obtain the components of an expression list
list | The list of expressions |
void ExprList::GetComponents | ( | std::vector< ExprTree * > & | list | ) | const |
Deconstructor to obtain the components of an expression list
list | The list of expressions |
Factory to make an expression list expression
list | A vector of the expressions to be contained in the list |
Factory to make an expression list expression
list | A vector of the expressions to be contained in the list |
bool ExprList::SameAs | ( | const ExprTree * | tree | ) | const [virtual] |
virtual bool ExprList::SameAs | ( | const ExprTree * | tree | ) | const [virtual] |