faudes::Integer Class Reference

Elementary type. More...

#include <cfl_elementary.h>

List of all members.

Public Member Functions

 Integer (void)
 Constructor.
 Integer (Int val)
 Constructor provided with initial value.
 ~Integer (void)
 Destructor.
virtual IntegerNew (void) const
 Construct on heap.
virtual IntegerCopy (void) const
 Construct copy on heap.
virtual const IntegerCast (const Type *pOther) const
 Cast the other object to Integer.
void CValue (Int val)
 Set value.
Int CValue (void) const
 Get value.
IntCReference (void)
 Get reference.
Integer operator+ (const Int &clint)
 Sum operator.
Integer operator+ (const Integer &coint)
 Sum operator.
Integer operator= (const Int &clint)
 Assignment operator.
Integer operator= (const Integer &coint)
 Assignment operator.
Integer operator+= (const Int &clint)
 Assignment/Sum operator.
Integer operator+= (const Integer &coint)
 Assignment/Sum operator.
 operator Int () const
 Conversion to C++ type.
void DoWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const
 Reimplementation of faudes::Type::DoWrite() Write data to Tokenwriter.
void DoRead (TokenReader &rTr, const std::string &rLabel="", const Type *pContext=0)
 Read data from TokenReader.

Protected Attributes

Int mCInteger
 Variable to store current value.

Detailed Description

Elementary type.

Definition at line 49 of file cfl_elementary.h.


Constructor & Destructor Documentation

faudes::Integer::Integer ( void   ) 

Constructor.

Definition at line 42 of file cfl_elementary.cpp.

faudes::Integer::Integer ( Int  val  ) 

Constructor provided with initial value.

Parameters:
val Initial value.

Definition at line 46 of file cfl_elementary.cpp.

faudes::Integer::~Integer ( void   )  [inline]

Destructor.

Definition at line 64 of file cfl_elementary.h.


Member Function Documentation

const Integer * faudes::Integer::Cast ( const Type pOther  )  const [virtual]

Cast the other object to Integer.

Returns NULL if the cast is not possible.

Parameters:
pOther Pointer to object to cast.
Returns:
Pointer to Integer instance, or NULL

Reimplemented from faudes::Type.

Definition at line 58 of file cfl_elementary.cpp.

Integer * faudes::Integer::Copy ( void   )  const [virtual]

Construct copy on heap.

Create new Integer instance and return pointer.

Returns:
Pointer to Integer instance.

Reimplemented from faudes::Type.

Definition at line 54 of file cfl_elementary.cpp.

Int * faudes::Integer::CReference ( void   ) 

Get reference.

Returns:
Reference to c value.

Definition at line 70 of file cfl_elementary.cpp.

Int faudes::Integer::CValue ( void   )  const

Get value.

Returns:
Value of object. (Int)

Definition at line 66 of file cfl_elementary.cpp.

void faudes::Integer::CValue ( Int  val  ) 

Set value.

Parameters:
val Value to be set.

Definition at line 62 of file cfl_elementary.cpp.

void faudes::Integer::DoRead ( TokenReader rTr,
const std::string &  rLabel = "",
const Type pContext = 0 
) [virtual]

Read data from TokenReader.

Parameters:
rTr Reference to TokenReader.
rLabel Section to read.
pContext Context information
Exceptions:
Exception 
  • Token mismatch
  • IO Error

Reimplemented from faudes::Type.

Definition at line 88 of file cfl_elementary.cpp.

void faudes::Integer::DoWrite ( TokenWriter rTw,
const std::string &  rLabel = "",
const Type pContext = 0 
) const [virtual]

Reimplementation of faudes::Type::DoWrite() Write data to Tokenwriter.

Parameters:
rTw Reference to TokenWriter.
rLabel Label of section to write.
pContext Context information
Exceptions:
Exception 
  • IO Error (id 2)

Reimplemented from faudes::Type.

Definition at line 74 of file cfl_elementary.cpp.

Integer * faudes::Integer::New ( void   )  const [virtual]

Construct on heap.

Create new Integer instance and return pointer.

Returns:
Pointer to Integer instance.

Reimplemented from faudes::Type.

Definition at line 50 of file cfl_elementary.cpp.

faudes::Integer::operator Int (  )  const [inline]

Conversion to C++ type.

Definition at line 175 of file cfl_elementary.h.

Integer faudes::Integer::operator+ ( const Integer coint  )  [inline]

Sum operator.

Definition at line 133 of file cfl_elementary.h.

Integer faudes::Integer::operator+ ( const Int clint  )  [inline]

Sum operator.

Definition at line 125 of file cfl_elementary.h.

Integer faudes::Integer::operator+= ( const Integer coint  )  [inline]

Assignment/Sum operator.

Definition at line 166 of file cfl_elementary.h.

Integer faudes::Integer::operator+= ( const Int clint  )  [inline]

Assignment/Sum operator.

Definition at line 157 of file cfl_elementary.h.

Integer faudes::Integer::operator= ( const Integer coint  )  [inline]

Assignment operator.

Definition at line 149 of file cfl_elementary.h.

Integer faudes::Integer::operator= ( const Int clint  )  [inline]

Assignment operator.

Definition at line 141 of file cfl_elementary.h.


Member Data Documentation

Variable to store current value.

Definition at line 213 of file cfl_elementary.h.


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

libFAUDES 2.23h --- 2014.04.03 --- c++ api documentaion by doxygen