#include <list.h>
Public Member Functions | |
| virtual | ~expression_list () |
| expression_list () | |
| expression_list (const expression::pointer &arg) | |
| expression_list (const expression_list &) | |
| expression_list & | operator= (const expression_list &) |
| void | push_front (const expression::pointer &esp) |
| void | push_back (const expression::pointer &esp) |
| void | push_back (const expression_list &arg) |
| size_t | size () const |
| bool | empty () const |
| expression::pointer | get (size_t n) const |
| expression::pointer | operator[] (size_t n) const |
| expression_list * | clone () const |
| expression::pointer | front () const |
| expression::pointer | back () const |
| expression::side_effect_t | has_side_effect () const |
| expression::pointer | pop_front () |
| expression::pointer | pop_back () |
| void | clear () |
| location | get_location () const |
Private Attributes | |
| size_t | length |
| size_t | maximum |
| expression::pointer * | item |
Definition at line 33 of file list.h.
| virtual expression_list::~expression_list | ( | ) | [virtual] |
The destructor.
| expression_list::expression_list | ( | ) |
The default constructor.
| expression_list::expression_list | ( | const expression::pointer & | arg | ) |
The constructor.
| expression_list::expression_list | ( | const expression_list & | ) |
The copy constructor.
| expression_list& expression_list::operator= | ( | const expression_list & | ) |
The assignment operator.
| void expression_list::push_front | ( | const expression::pointer & | esp | ) |
The push_front method is used to add another expression to the beginning of the list.
This is an O(n) operation.
| void expression_list::push_back | ( | const expression::pointer & | esp | ) |
The push_back method is used to add another expression to the end of the list.
This is an O(1) operation.
| void expression_list::push_back | ( | const expression_list & | arg | ) |
The push_back method is used to push a whole list on the back of this list.
| arg | This is to be appended. |
| size_t expression_list::size | ( | ) | const [inline] |
The size method is used to obtain the number of elements in the list.
Definition at line 90 of file list.h.
References length.
Referenced by expression_function_call::get_child_count().
| bool expression_list::empty | ( | ) | const [inline] |
The empty method is used to determine whether or not the list is empty.
Definition at line 96 of file list.h.
References length.
Referenced by statement_writeln::has_args().
| expression::pointer expression_list::get | ( | size_t | n | ) | const [inline] |
The get method is used to obtain a specific member of the list.
Definition at line 101 of file list.h.
References item.
Referenced by expression_function_call::get_child(), and operator[]().
| expression::pointer expression_list::operator[] | ( | size_t | n | ) | const [inline] |
| expression_list* expression_list::clone | ( | ) | const |
The clone method is used to make a deep copy of this expression list. It calls the member expressions' clone methods.
| expression::pointer expression_list::front | ( | ) | const [inline] |
| expression::pointer expression_list::back | ( | ) | const [inline] |
| expression::side_effect_t expression_list::has_side_effect | ( | ) | const |
The has_side_effect method is used to determine if an expression has any effect. It is used by the parse to produce "statement with no effect" warnings.
| expression::pointer expression_list::pop_front | ( | ) |
The pop_front method is used to remove the first element from the list, and return it. If the list is empty, the NULL pointer is returned.
| expression::pointer expression_list::pop_back | ( | ) |
The pop_back method is used to remove the last element from the list, and return it. If the list is empty, the NULL pointer is returned.
| void expression_list::clear | ( | ) |
The clear method is used to discard all list contents.
| location expression_list::get_location | ( | ) | const |
The get_location method is used to obtain the location of the expression list.
size_t expression_list::length [private] |
size_t expression_list::maximum [private] |
expression::pointer* expression_list::item [private] |
1.5.1