Class Instance. More...

#include <rprgvarinst.h>

Inheritance diagram for RPrgVarInst:
[legend]
Collaboration diagram for RPrgVarInst:
[legend]

Public Member Functions

virtual void Assign (const void *data)
 
RPrgClassGetClass (void) const
 
virtual RString GetValue (RInterpreter *prg)
 
 RPrgVarInst (const RString &name, RPrgClass *c)
 
virtual ~RPrgVarInst (void)
 
- Public Member Functions inherited from RPrgVar
int Compare (const RPrgVar &v) const
 
int Compare (const RString &v) const
 
RString GetName (void) const
 
RString GetType (void) const
 
 RPrgVar (const RString &name, const RString &type)
 
 RPrgVar (const RPrgVar &var)
 
virtual ~RPrgVar (void)
 

Protected Attributes

RPrgClassClass
 
- Protected Attributes inherited from RPrgVar
RString Name
 
RString Type
 

Detailed Description

Class Instance.

The RPrgVarInst provides a class for an instance of a class.

Constructor & Destructor Documentation

RPrgVarInst ( const RString name,
RPrgClass c 
)

Construct an instance of a class.

Parameters
nameName.
cClass.
virtual ~RPrgVarInst ( void  )
virtual

Destruct the variable.

Member Function Documentation

virtual void Assign ( const void *  data)
virtual

Assign some data to the variable.

Parameters
dataData.

Reimplemented from RPrgVar.

virtual RString GetValue ( RInterpreter prg)
virtual

Get the value of the variable.

Parameters
prgProgram.

Reimplemented from RPrgVar.

RPrgClass* GetClass ( void  ) const

Get the class of the instance.

Member Data Documentation

RPrgClass* Class
protected

Class of the variable.