# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NLAIAGENT::CNumericIndex Class Reference

Generator of unique ident for objects. More...

#include <ident.h>

Inheritance diagram for NLAIAGENT::CNumericIndex:

NLMISC::IStreamable NLMISC::IClassable List of all members.

Public Methods

 CNumericIndex ()
 The constructor creat a new number by increment the _I numbre. More...

 CNumericIndex (const CNumericIndex &id)
 CNumericIndex (const CAgentNumber &i)
 copy constructor. More...

 CNumericIndex (const char *id)
 init with a string. More...

 CNumericIndex (NLMISC::IStream &is)
 construct from a stream. More...

void setTypeAt (uint64 t)
void save (NLMISC::IStream &os)
 saving the nomber in an output stream. More...

void load (NLMISC::IStream &is)
 loading the nomber from an input stream. More...

void getDebugString (std::string &str) const
const CAgentNumbergetId () const
comparison of two CIndexVariant.
bool operator== (const CNumericIndex &a) const
bool operator< (const CNumericIndex &a) const
bool operator> (const CNumericIndex &a) const
NLMISC::IStreamable method.
virtual std::string getClassName ()
virtual void serial (NLMISC::IStream &f) throw (NLMISC::EStream)

Static Public Attributes

CAgentNumber _I = CAgentNumber()

Private Attributes

CAgentNumber _Id

Detailed Description

Generator of unique ident for objects.

Author:
Chafik sameh , Nevrax France
Date:
2000

Definition at line 327 of file ident.h.


Constructor & Destructor Documentation

NLAIAGENT::CNumericIndex::CNumericIndex   [inline]
 

The constructor creat a new number by increment the _I numbre.

Definition at line 344 of file ident.h.

References _I, and _Id.

Referenced by CNumericIndex, operator<, operator==, and operator>.

NLAIAGENT::CNumericIndex::CNumericIndex const CNumericIndex &    id [inline]
 

Definition at line 348 of file ident.h.

References _Id, CNumericIndex, and id.

NLAIAGENT::CNumericIndex::CNumericIndex const CAgentNumber   i [inline]
 

copy constructor.

Definition at line 353 of file ident.h.

References _Id.

NLAIAGENT::CNumericIndex::CNumericIndex const char *    id [inline]
 

init with a string.

Definition at line 358 of file ident.h.

References _Id, and id.

NLAIAGENT::CNumericIndex::CNumericIndex NLMISC::IStream   is [inline]
 

construct from a stream.

Definition at line 364 of file ident.h.

References _Id.


Member Function Documentation

virtual std::string NLAIAGENT::CNumericIndex::getClassName   [inline, virtual]
 

Implements NLMISC::IClassable.

Definition at line 410 of file ident.h.

void NLAIAGENT::CNumericIndex::getDebugString std::string &    str const [inline]
 

Definition at line 403 of file ident.h.

References _Id.

const CAgentNumber& NLAIAGENT::CNumericIndex::getId   const [inline]
 

Definition at line 430 of file ident.h.

References _Id.

void NLAIAGENT::CNumericIndex::load NLMISC::IStream   is [inline]
 

loading the nomber from an input stream.

Definition at line 398 of file ident.h.

References _Id.

Referenced by serial.

bool NLAIAGENT::CNumericIndex::operator< const CNumericIndex &    a const [inline]
 

Definition at line 380 of file ident.h.

References _Id, and CNumericIndex.

bool NLAIAGENT::CNumericIndex::operator== const CNumericIndex &    a const [inline]
 

Definition at line 375 of file ident.h.

References _Id, and CNumericIndex.

bool NLAIAGENT::CNumericIndex::operator> const CNumericIndex &    a const [inline]
 

Definition at line 385 of file ident.h.

References _Id, and CNumericIndex.

void NLAIAGENT::CNumericIndex::save NLMISC::IStream   os [inline]
 

saving the nomber in an output stream.

Definition at line 392 of file ident.h.

References _Id.

Referenced by serial.

virtual void NLAIAGENT::CNumericIndex::serial NLMISC::IStream   f throw (NLMISC::EStream) [inline, virtual]
 

Implements NLMISC::IStreamable.

Definition at line 415 of file ident.h.

References load, and save.

void NLAIAGENT::CNumericIndex::setTypeAt uint64    t [inline]
 

Definition at line 368 of file ident.h.

References _Id, and t.


Member Data Documentation

CAgentNumber CNumericIndex::_I = CAgentNumber() [static]
 

Definition at line 50 of file static_def_init.cpp.

Referenced by CNumericIndex.

CAgentNumber NLAIAGENT::CNumericIndex::_Id [private]
 

Definition at line 341 of file ident.h.

Referenced by CNumericIndex, getDebugString, getId, load, operator<, operator==, operator>, save, and setTypeAt.


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