Om  1.0.0
A universal framework for multimedia simulation
Public Member Functions | Static Public Member Functions | List of all members
om::scripting::mir::lang::FunctionCallExpression Class Reference

A class that represents an expression where a function expression is called with arguments. More...

#include <omScriptingMirExpressions.h>

Inheritance diagram for om::scripting::mir::lang::FunctionCallExpression:
om::scripting::mir::lang::Expression om::scripting::mir::lang::ASTNode

Public Member Functions

 FunctionCallExpression (const Shared< Expression > &newFunction)
 Create a new object expression object with the specified object type. More...
 
const Shared< Expression > & getFunction () const
 Return a pointer to an expression object representing the function that is being called. More...
 
Size getArgumentCount () const
 Return the number of arguments that the function call has. More...
 
const Shared< Expression > & getArgument (Index argumentIndex) const
 Return a pointer to an expression for the specified argument for the function call. More...
 
void setArgument (Index argumentIndex, const Shared< Expression > &newArgument)
 Set a pointer to an expression for the specified argument for the new object's function call. More...
 
Bool addArgument (const Shared< Expression > &newArgument)
 Add another argument to the function call. More...
 
- Public Member Functions inherited from om::scripting::mir::lang::Expression
Type getExpressionType () const
 Return the type of this expression. More...
 
- Public Member Functions inherited from om::scripting::mir::lang::ASTNode
 ASTNode ()
 Create a new AST node with no node position specified. More...
 
 ASTNode (const Position &newPosition)
 Create a new AST node which corresponds to a token starting at the specified source code position. More...
 
virtual ~ASTNode ()
 Destroy this AST node object. More...
 
const PositiongetPosition () const
 Return an object representing the position of this AST node in the source code. More...
 
void setPosition (const Position &newPosition)
 Set the position of this AST node in the source code. More...
 

Static Public Member Functions

static Shared< FunctionCallExpressionconstruct (const Shared< Expression > &newFunction)
 Construct a smart-pointer-wrapped instance of this class using the constructor with the given arguments. More...
 

Additional Inherited Members

- Public Types inherited from om::scripting::mir::lang::Expression
enum  Type {
  LITERAL, UNARY, BINARY, NEW_ARRAY,
  NEW_OBJECT, CAST, FUNCTION_CALL, ARRAY_ACCESS,
  ISA, REFERENCE, VARIABLE_DECLARATION, RANGE
}
 An enum that specifies the different kinds of visiblity for member declarations. More...
 
- Protected Member Functions inherited from om::scripting::mir::lang::Expression
 Expression (Type newType)
 Create a new expression with the specified expression type enum value. More...
 

Detailed Description

A class that represents an expression where a function expression is called with arguments.

Constructor & Destructor Documentation

om::scripting::mir::lang::FunctionCallExpression::FunctionCallExpression ( const Shared< Expression > &  newFunction)
inline

Create a new object expression object with the specified object type.

Member Function Documentation

const Shared<Expression>& om::scripting::mir::lang::FunctionCallExpression::getFunction ( ) const
inline

Return a pointer to an expression object representing the function that is being called.

Size om::scripting::mir::lang::FunctionCallExpression::getArgumentCount ( ) const
inline

Return the number of arguments that the function call has.

const Shared<Expression>& om::scripting::mir::lang::FunctionCallExpression::getArgument ( Index  argumentIndex) const
inline

Return a pointer to an expression for the specified argument for the function call.

void om::scripting::mir::lang::FunctionCallExpression::setArgument ( Index  argumentIndex,
const Shared< Expression > &  newArgument 
)
inline

Set a pointer to an expression for the specified argument for the new object's function call.

Bool om::scripting::mir::lang::FunctionCallExpression::addArgument ( const Shared< Expression > &  newArgument)
inline

Add another argument to the function call.

static Shared<FunctionCallExpression> om::scripting::mir::lang::FunctionCallExpression::construct ( const Shared< Expression > &  newFunction)
inlinestatic

Construct a smart-pointer-wrapped instance of this class using the constructor with the given arguments.


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