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

A class that represents an entry within an IDTable. More...

#include <omScriptingMirIDTableEntry.h>

Public Member Functions

 IDTableEntry (const Shared< Declaration > &newDeclaration)
 Create a new ID table entry which corresponds to the specified declaration. More...
 
 IDTableEntry (const Shared< Declaration > &newDeclaration, const Shared< IDTable > &newScope)
 Create a new ID table entry which corresponds to the specified declaration and child scope ID table. More...
 
const Shared< Declaration > & getDeclaration () const
 Return a pointer to the primary declaration associated with this ID table entry. More...
 
Size getDeclarationCount () const
 Return the number of declarations that are associated with this ID table entry. More...
 
const Shared< Declaration > & getDeclaration (Index alternateIndex) const
 Return a pointer to the declaration associated with this ID table entry at the given index. More...
 
Bool addDeclaration (const Shared< Declaration > &newAlternate)
 Add a new alternate declaration to this ID table entry. More...
 
const Shared< IDTable > & getScope () const
 Return a pointer to an IDTable corresponding to the child scope of this ID entry. More...
 
Bool hasScope () const
 Return whether or not this ID table entry has a child scope. More...
 

Detailed Description

A class that represents an entry within an IDTable.

Constructor & Destructor Documentation

om::scripting::mir::lang::IDTableEntry::IDTableEntry ( const Shared< Declaration > &  newDeclaration)
inline

Create a new ID table entry which corresponds to the specified declaration.

om::scripting::mir::lang::IDTableEntry::IDTableEntry ( const Shared< Declaration > &  newDeclaration,
const Shared< IDTable > &  newScope 
)
inline

Create a new ID table entry which corresponds to the specified declaration and child scope ID table.

Member Function Documentation

const Shared<Declaration>& om::scripting::mir::lang::IDTableEntry::getDeclaration ( ) const
inline

Return a pointer to the primary declaration associated with this ID table entry.

Size om::scripting::mir::lang::IDTableEntry::getDeclarationCount ( ) const
inline

Return the number of declarations that are associated with this ID table entry.

const Shared<Declaration>& om::scripting::mir::lang::IDTableEntry::getDeclaration ( Index  alternateIndex) const
inline

Return a pointer to the declaration associated with this ID table entry at the given index.

Bool om::scripting::mir::lang::IDTableEntry::addDeclaration ( const Shared< Declaration > &  newAlternate)
inline

Add a new alternate declaration to this ID table entry.

const Shared<IDTable>& om::scripting::mir::lang::IDTableEntry::getScope ( ) const
inline

Return a pointer to an IDTable corresponding to the child scope of this ID entry.

Bool om::scripting::mir::lang::IDTableEntry::hasScope ( ) const
inline

Return whether or not this ID table entry has a child scope.


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