CallExpr Class Reference

Handles calls to methods and constructors made in CLI. More...

#include <CallExpr.h>

Inheritance diagram for CallExpr:
Collaboration diagram for CallExpr:

List of all members.

Public Member Functions

void eval (CliArgList *loop_vars, AData *return_value)
 Evaluates the call expression with respect to the list of loop variables and puts the result into the 2nd argument (return_value).
 CallExpr (char *class_name, AData *arraysize)
 Creates a new array constructor expression.
 CallExpr (char *class_name, CliArgList *args)
 Creates a new constructor expression.
 CallExpr (char *object_name, char *method_name, CliArgList *args)
 Creates a new method call expression.
virtual ~CallExpr ()
 Destructor -- deletes all dynamically allocated memory.

Friends

class boost::serialization::access


Detailed Description

Handles calls to methods and constructors made in CLI.

See also:
CliArgList

AData

Expr


Constructor & Destructor Documentation

CallExpr::CallExpr ( char *  class_name,
AData arraysize 
)

Creates a new array constructor expression.

The first argument is the name of the class being constructed, the second argument is the array size.

CallExpr::CallExpr ( char *  class_name,
CliArgList args 
)

Creates a new constructor expression.

The first argument is the name of the class being constructed. The second argument contains the list of arguments to the constructor.

CallExpr::CallExpr ( char *  object_name,
char *  method_name,
CliArgList args 
)

Creates a new method call expression.

The first argument is the name of the object on which the method is invoked. The method name is the second expression.


Member Function Documentation

void CallExpr::eval ( CliArgList loop_vars,
AData return_value 
) [virtual]

Evaluates the call expression with respect to the list of loop variables and puts the result into the 2nd argument (return_value).

Implements Expr.


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