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

A class that represents an floating-point literal within the source code. More...

#include <omScriptingMirLiterals.h>

Inheritance diagram for om::scripting::mir::lang::FloatLiteral:
om::scripting::mir::lang::Literal om::scripting::mir::lang::ASTNode

Public Member Functions

 FloatLiteral (const String &newSpelling)
 Create a new float literal object with the specified spelling. More...
 
 operator const String & () const
 Return a string representing the spelling of this float literal in the source code. More...
 
const String & getSpelling () const
 Return a string representing the spelling of this float literal in the source code. More...
 
lang::Type::Kind getTypeKind () const
 Return an enum value representing the kind of type that this integer literal has. More...
 
- Public Member Functions inherited from om::scripting::mir::lang::Literal
Type getType () const
 Convert this visibility type to an enum value. 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< FloatLiteralconstruct (const String &newSpelling)
 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::Literal
enum  Type {
  INTEGER_LITERAL, FLOAT_LITERAL, STRING_LITERAL, BOOLEAN_LITERAL,
  NULL_LITERAL
}
 An enum that specifies the different kinds of visiblity for member declarations. More...
 
- Protected Member Functions inherited from om::scripting::mir::lang::Literal
 Literal (Type newType)
 Create a new literal with the specified literal type enum value. More...
 

Detailed Description

A class that represents an floating-point literal within the source code.

Constructor & Destructor Documentation

om::scripting::mir::lang::FloatLiteral::FloatLiteral ( const String &  newSpelling)

Create a new float literal object with the specified spelling.

Member Function Documentation

om::scripting::mir::lang::FloatLiteral::operator const String & ( ) const
inline

Return a string representing the spelling of this float literal in the source code.

const String& om::scripting::mir::lang::FloatLiteral::getSpelling ( ) const
inline

Return a string representing the spelling of this float literal in the source code.

lang::Type::Kind om::scripting::mir::lang::FloatLiteral::getTypeKind ( ) const
inline

Return an enum value representing the kind of type that this integer literal has.

static Shared<FloatLiteral> om::scripting::mir::lang::FloatLiteral::construct ( const String &  newSpelling)
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: