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

A class that represents the declaration of a derrived type or alias. More...

#include <omScriptingMirTypeDeclaration.h>

Inheritance diagram for om::scripting::mir::lang::TypeDeclaration:
om::scripting::mir::lang::Declaration om::scripting::mir::lang::ASTNode

Public Member Functions

 TypeDeclaration (Visibility newVisibility, const Shared< Identifier > &newName, const Shared< TemplateDeclaration > &newTemplateDeclaration, const Shared< lang::Type > &newBaseType, Bool newIsAlias)
 Create a new type declaration object with the specified attributes. More...
 
Visibility getVisibility () const
 Return an object representing the visibility type of this type declaration. More...
 
void setVisibility (Visibility newVisibility)
 Set the visibility of this type declaration to the specified type. More...
 
const Shared< Identifier > & getName () const
 Return a pointer to an identifier representing the name of this type declaration. More...
 
const Shared< Type > & getBaseType () const
 Return a pointer to the base type of the alias or type that is declared. More...
 
const Shared< TemplateDeclaration > & getTemplateDeclaration () const
 Return an optionally NULL pointer to the template declaration of this type. More...
 
Bool getIsTemplate () const
 Return whether or not this type declaration is a template. More...
 
- Public Member Functions inherited from om::scripting::mir::lang::Declaration
DeclarationType getDeclarationType () const
 Return the type of this declaration. 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< TypeDeclarationconstruct (Visibility newVisibility, const Shared< Identifier > &newName, const Shared< TemplateDeclaration > &newTemplateDeclaration, const Shared< lang::Type > &newBaseType, Bool newIsAlias)
 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::Declaration
enum  DeclarationType {
  NAMESPACE, TYPE, ALIAS, CLASS,
  INTERFACE, FIELD, METHOD, OPERATOR,
  CONSTRUCTOR, DESTRUCTOR, VARIABLE
}
 An enum that specifies the different types of type declarations. More...
 
- Protected Member Functions inherited from om::scripting::mir::lang::Declaration
 Declaration (DeclarationType newType)
 Create a new declaration with the specified declaration type enum value. More...
 

Detailed Description

A class that represents the declaration of a derrived type or alias.

Constructor & Destructor Documentation

om::scripting::mir::lang::TypeDeclaration::TypeDeclaration ( Visibility  newVisibility,
const Shared< Identifier > &  newName,
const Shared< TemplateDeclaration > &  newTemplateDeclaration,
const Shared< lang::Type > &  newBaseType,
Bool  newIsAlias 
)
inline

Create a new type declaration object with the specified attributes.

Member Function Documentation

Visibility om::scripting::mir::lang::TypeDeclaration::getVisibility ( ) const
inline

Return an object representing the visibility type of this type declaration.

void om::scripting::mir::lang::TypeDeclaration::setVisibility ( Visibility  newVisibility)
inline

Set the visibility of this type declaration to the specified type.

const Shared<Identifier>& om::scripting::mir::lang::TypeDeclaration::getName ( ) const
inline

Return a pointer to an identifier representing the name of this type declaration.

const Shared<Type>& om::scripting::mir::lang::TypeDeclaration::getBaseType ( ) const
inline

Return a pointer to the base type of the alias or type that is declared.

const Shared<TemplateDeclaration>& om::scripting::mir::lang::TypeDeclaration::getTemplateDeclaration ( ) const
inline

Return an optionally NULL pointer to the template declaration of this type.

Bool om::scripting::mir::lang::TypeDeclaration::getIsTemplate ( ) const
inline

Return whether or not this type declaration is a template.

static Shared<TypeDeclaration> om::scripting::mir::lang::TypeDeclaration::construct ( Visibility  newVisibility,
const Shared< Identifier > &  newName,
const Shared< TemplateDeclaration > &  newTemplateDeclaration,
const Shared< lang::Type > &  newBaseType,
Bool  newIsAlias 
)
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: