Aegis  4.25.D505
Public Member Functions | Private Attributes
tree_list Class Reference

#include <list.h>

Public Member Functions

 ~tree_list ()
 tree_list ()
 tree_list (const tree_list &arg)
tree_listoperator= (const tree_list &arg)
void clear ()
void append (const tree::pointer &tp)
void append (const tree_list &arg)
size_t size () const
tree::pointer get (size_t n) const
tree::pointer operator[] (size_t n) const

Private Attributes

tree::pointeritem
size_t length
size_t maximum

Detailed Description

The tree_list class is used to represent a list of pointers to expression tree nodes.

Definition at line 30 of file list.h.


Constructor & Destructor Documentation

The destructor.

The default constructor.

tree_list::tree_list ( const tree_list arg)

The copy constructor.


Member Function Documentation

void tree_list::append ( const tree::pointer tp)

The append method may be used to add another expression node to the back of this list.

void tree_list::append ( const tree_list arg)

The append method may be used to add the contents of another expression node list to the back of this list.

void tree_list::clear ( )

The clear method may be used to discard the contents of this list.

tree::pointer tree_list::get ( size_t  n) const

The get method may be used to obtain the n-th element of this list.

Note:
No range checking is performed.
tree_list& tree_list::operator= ( const tree_list arg)

The assignment operator.

tree::pointer tree_list::operator[] ( size_t  n) const [inline]

The array index operator method may be used to obtain the n-th element of this list.

Definition at line 91 of file list.h.

size_t tree_list::size ( void  ) const [inline]

The size method may be used to obtain the number of items in this list.

Definition at line 75 of file list.h.


Field Documentation

The item instance variable is used to remember the address of a dynamically allocated array of pointer to expression tre nodes.

Definition at line 98 of file list.h.

size_t tree_list::length [private]

The length instance variable is used to remember how many elements of the "item" array have been used.

Definition at line 104 of file list.h.

size_t tree_list::maximum [private]

The maximum instance variable is used to remember how many elements were allocated to the "item" array.

Definition at line 110 of file list.h.


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