CliArgList Class Reference

Used to hold actual (i.e. More...

#include <CliArgList.h>

Inheritance diagram for CliArgList:
Collaboration diagram for CliArgList:

List of all members.

Public Member Functions

 CliArgList ()
 Create an empty argument list.
 ~CliArgList ()
 Destructor. This deletes all the AData objects stored on the list.
void add_element (AData *dat)
 Add an existing AData object to the list.
void append_list (CliArgList *list)
 Appends another argument list to this one.
void remove_all_elements ()
 Deletes all elements in the list.
void print_elements (ostream &outputstream)
 Prints all elements in the list.
void reset ()
 Resets the current traversal position to the head of the list.
ADatanext ()
 Returns the current traversal position, and then advances this position ready for a subsequent call.
ADatainspect_next ()
 Returns the item in the list following the current traversal position, but does not advance the current position.
int num_args ()
 Returns the total number of items in the list.

Friends

class boost::serialization::access


Detailed Description

Used to hold actual (i.e.

not formal) argument lists and loop variables in CLI method calls. It is simply a list of AData objects, which each hold typed data. Simple methods allow traversal of the list.

See also:
AData

MethodTable

CallExpr

Expr

SimpleExpr

ForStatement

AssignStatement


Member Function Documentation

void CliArgList::add_element ( AData dat  ) 

Add an existing AData object to the list.

This object will be deleted by the destructor or by remove_all_elements.

void CliArgList::append_list ( CliArgList list  ) 

Appends another argument list to this one.

The argument list passed in is set as empty (this list takes all objects the other has in its list)

AData* CliArgList::next (  ) 

Returns the current traversal position, and then advances this position ready for a subsequent call.

Returns NULL if the end of the list has been reached.

AData* CliArgList::inspect_next (  ) 

Returns the item in the list following the current traversal position, but does not advance the current position.


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

Send suggestions, questions, and feedback to WEINBERG at ASTRO dot UMASS dot EDU.
Documentation generated at Fri Mar 26 00:35:11 2010 by doxygen