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::Field Class Reference

A class that represents a field and initializing expression. More...

#include <omScriptingMirFields.h>

Inheritance diagram for om::scripting::mir::lang::Field:
om::scripting::mir::lang::ASTNode

Public Member Functions

 Field (const Shared< FieldDeclaration > &newDeclaration, const Shared< Expression > &newInitializer)
 Create a new field declaration object with the specified visibility, type, and name. More...
 
const Shared< FieldDeclaration > & getDeclaration () const
 Return a pointer to the declaration of this field. More...
 
const Shared< Expression > & getInitializer () const
 Return an optionally NULL pointer to an expression representing the starting value of this field. More...
 
void setInitializer (const Shared< Expression > &newInitializer)
 Set an optionally NULL pointer to an expression representing the starting value of this field. 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< Fieldconstruct (const Shared< FieldDeclaration > &newDeclaration, const Shared< Expression > &newInitializer)
 Construct a smart-pointer-wrapped instance of this class using the constructor with the given arguments. More...
 

Detailed Description

A class that represents a field and initializing expression.

Constructor & Destructor Documentation

om::scripting::mir::lang::Field::Field ( const Shared< FieldDeclaration > &  newDeclaration,
const Shared< Expression > &  newInitializer 
)
inline

Create a new field declaration object with the specified visibility, type, and name.

Member Function Documentation

const Shared<FieldDeclaration>& om::scripting::mir::lang::Field::getDeclaration ( ) const
inline

Return a pointer to the declaration of this field.

const Shared<Expression>& om::scripting::mir::lang::Field::getInitializer ( ) const
inline

Return an optionally NULL pointer to an expression representing the starting value of this field.

void om::scripting::mir::lang::Field::setInitializer ( const Shared< Expression > &  newInitializer)
inline

Set an optionally NULL pointer to an expression representing the starting value of this field.

static Shared<Field> om::scripting::mir::lang::Field::construct ( const Shared< FieldDeclaration > &  newDeclaration,
const Shared< Expression > &  newInitializer 
)
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: