libFAUDES

Sections

Index

faudes::Integer Class Reference

#include <rtitypes.h>

Inherits faudes::Type.

List of all members.


Detailed Description

Elementary type.

Definition at line 1237 of file rtitypes.h.


Public Member Functions

 Integer (void)
 Constructor.
 Integer (SignedIdx val)
 Constructor provided with initial value.
 ~Integer (void)
 Destructor.
virtual TypeNew (void) const
 Construct on heap.
virtual TypeCopy (void) const
 Construct copy on heap.
void CValue (SignedIdx val)
 Set value.
SignedIdx CValue (void) const
 Get value.
SignedIdxCReference (void)
 Get reference.
Integer operator+ (const SignedIdx &clint)
 Sum operator.
Integer operator+ (const Integer &coint)
 Sum operator.
Integer operator= (const SignedIdx &clint)
 Assignment operator.
Integer operator= (const Integer &coint)
 Assignment operator.
Integer operator+= (const SignedIdx &clint)
 Assignment/Sum operator.
Integer operator+= (const Integer &coint)
 Assignment/Sum operator.
 operator SignedIdx () 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

SignedIdx mCInteger
 Variable to store current value.

Constructor & Destructor Documentation

faudes::Integer::Integer ( void   ) 

Constructor.

Definition at line 578 of file rtitypes.cpp.

faudes::Integer::Integer ( SignedIdx  val  ) 

Constructor provided with initial value.

Parameters:
val Initial value.

Definition at line 582 of file rtitypes.cpp.

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

Destructor.

Definition at line 1252 of file rtitypes.h.


Member Function Documentation

Type * 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 586 of file rtitypes.cpp.

Type * 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 590 of file rtitypes.cpp.

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

Set value.

Parameters:
val Value to be set. (SignedIdx)

Definition at line 594 of file rtitypes.cpp.

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

Get value.

Returns:
Value of object. (SignedIdx)

Definition at line 598 of file rtitypes.cpp.

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

Get reference.

Returns:
Reference to c value.

Definition at line 602 of file rtitypes.cpp.

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

Sum operator.

Definition at line 1301 of file rtitypes.h.

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

Sum operator.

Definition at line 1309 of file rtitypes.h.

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

Assignment operator.

Definition at line 1317 of file rtitypes.h.

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

Assignment operator.

Definition at line 1325 of file rtitypes.h.

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

Assignment/Sum operator.

Definition at line 1333 of file rtitypes.h.

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

Assignment/Sum operator.

Definition at line 1342 of file rtitypes.h.

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

Conversion to C++ type.

Definition at line 1351 of file rtitypes.h.

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 606 of file rtitypes.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 

Reimplemented from faudes::Type.

Definition at line 616 of file rtitypes.cpp.


Member Data Documentation

Variable to store current value.

Definition at line 1389 of file rtitypes.h.


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

libFAUDES 2.14g --- 2009-12-3 --- c++ source docu by doxygen 1.5.6