commore  1.0.6-SNAPSHOT
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
commore::GlobVarInt Class Reference

#include <GlobVar.h>

+ Inheritance diagram for commore::GlobVarInt:

Public Member Functions

 GlobVarInt (const Symbol &module, const Symbol &name)
 
 GlobVarInt (const Symbol &module, const Symbol &name, Int default_value)
 
 operator Int () const
 
Int get () const
 
Int set (Int value)
 
GlobVarIntoperator++ (int)
 
GlobVarIntoperator-- (int)
 
- Public Member Functions inherited from commore::GlobVar
const Symbolget_module () const
 
const Symbolget_name () const
 

Static Public Member Functions

static size_t get_names (const Symbol &module, ListSymbol &names)
 
static Int get (const Symbol &module, const Symbol &name)
 
static Int set (const Symbol &module, const Symbol &name, Int value)
 
- Static Public Member Functions inherited from commore::GlobVar
static size_t get_modules (ListSymbol &modules)
 

Additional Inherited Members

- Protected Member Functions inherited from commore::GlobVar
 GlobVar (const Symbol &module, const Symbol &name, int type)
 
 ~GlobVar ()
 
- Protected Attributes inherited from commore::GlobVar
Implimpl_
 

Detailed Description

Int global variable

Constructor & Destructor Documentation

GlobVarInt::GlobVarInt ( const Symbol module,
const Symbol name 
)
Parameters
modulemodule name
name
GlobVarInt::GlobVarInt ( const Symbol module,
const Symbol name,
Int  default_value 
)
Parameters
modulemodule name
name
default_value

Member Function Documentation

Int GlobVarInt::get ( ) const
Returns
variable value
Int GlobVarInt::get ( const Symbol module,
const Symbol name 
)
static
Returns
the variable value
Parameters
modulename
namevariable name
size_t GlobVarInt::get_names ( const Symbol module,
ListSymbol names 
)
static

Get list of module variables

Parameters
modulename
nameslist of variable name
Returns
number of variable
commore::GlobVarInt::operator Int ( ) const
inline
Returns
variable value
GlobVarInt & GlobVarInt::operator++ ( int  )

Increment global variable

GlobVarInt & GlobVarInt::operator-- ( int  )

Decrement global variable

Int GlobVarInt::set ( Int  value)

Set variable value

Parameters
valuenew vaue
Returns
previous variable value
Int GlobVarInt::set ( const Symbol module,
const Symbol name,
Int  value 
)
static

Set the variable value

Returns
previous the variable value
Parameters
modulename
namevariable name
valuenew variable value

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