# 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::CLocWordNumRef Class Reference

This is an local version of the IWordNumRef. More...

#include <ident.h>

Inheritance diagram for NLAIAGENT::CLocWordNumRef:

NLAIAGENT::IWordNumRef NLAIC::IBasicInterface NLAIC::IBasicType NLAIC::IPointerGestion NLMISC::IStreamable NLMISC::IClassable List of all members.

Public Methods

 CLocWordNumRef (IRefrence *ref)
 Construct object for an IRefrence agents objects. More...

 CLocWordNumRef (const CNumericIndex &ref)
 Construct object with an CNumericIndex objects. More...

 CLocWordNumRef (const CNumericIndex &id, IRefrence *ref)
 CLocWordNumRef (const CLocWordNumRef &l)
 Copy Constructor. More...

 CLocWordNumRef (NLMISC::IStream &is)
 Copy Constructor. More...

 CLocWordNumRef ()
void getDebugString (std::string &t) const
 This is a Debug function, text is an character pointer to receive the debug text output, the debug text containe all think sensible to interset user. More...

virtual operator const IRefrence * () const
virtual const CNumericIndexgetNumIdent () const
void setTypeAt (uint64 t)
virtual ~CLocWordNumRef ()
IBasicInterface method.
virtual const NLAIC::CIdentTypegetType () const
 getType return a unique string how represente the class, it can be the name of the class. More...

virtual const NLAIC::IBasicTypeclone () const
 This function allow a pointer copy, that mean that the new class have the sam attributs caracteristics as the owne. More...

virtual const NLAIC::IBasicTypenewInstance () const
 This function allow a new instance, that mean that the class is a class factory. More...

virtual void save (NLMISC::IStream &os)
 Save the class in a stream. More...

virtual void load (NLMISC::IStream &is)
 Exception: throw (NLAIE::CExceptionIndexHandeledError). More...


Static Public Methods

Map fonctionality method.
void clear ()
 Clear the map. More...

void Init ()
 Init the map. More...

void saveMapping (ostream &)
 Saving the mapping objects in the word. More...

bool loadMapping (NLMISC::IStream &)
 Load the mapping objects in the word. More...

IRefrencegetRef (const CNumericIndex &)

Static Public Attributes

const NLAIC::CIdentTypeIdLocWordNumRef = NULL
 The class factory ident of the class. More...


Private Types

typedef std::map< CNumericIndex,
IRefrence * > 
tMapRef
 The map use an CNumericIndex as a key for the internal tree. More...


Private Attributes

CNumericIndex _Id
 The iden of the class. More...

IRefrence_Stock
 _Stock define the cross reference between agent and this class. More...


Static Private Attributes

NLMISC::CSynchronized< tMapRef_LocRefence

Detailed Description

This is an local version of the IWordNumRef.

This class share agent in a static map.

Author:
Chafik sameh , Nevrax France
Date:
2000

Definition at line 476 of file ident.h.


Member Typedef Documentation

typedef std::map<CNumericIndex ,IRefrence *> NLAIAGENT::CLocWordNumRef::tMapRef [private]
 

The map use an CNumericIndex as a key for the internal tree.

Definition at line 480 of file ident.h.


Constructor & Destructor Documentation

NLAIAGENT::CLocWordNumRef::CLocWordNumRef IRefrence   ref [inline]
 

Construct object for an IRefrence agents objects.

Definition at line 497 of file ident.h.

References _LocRefence, and _Stock.

Referenced by CLocWordNumRef.

NLAIAGENT::CLocWordNumRef::CLocWordNumRef const CNumericIndex   ref [inline]
 

Construct object with an CNumericIndex objects.

This constroctor allow to reload an IRefrence defined with the CNumericIndex &ref.

Exception: throw (NLAIE::CExceptionIndexHandeledError)

Definition at line 510 of file ident.h.

References _LocRefence, and _Stock.

NLAIAGENT::CLocWordNumRef::CLocWordNumRef const CNumericIndex   id,
IRefrence   ref
[inline]
 

Definition at line 521 of file ident.h.

References _LocRefence, _Stock, and id.

NLAIAGENT::CLocWordNumRef::CLocWordNumRef const CLocWordNumRef &    l [inline]
 

Copy Constructor.

Exception: throw (NLAIE::CExceptionIndexHandeledError)

Definition at line 544 of file ident.h.

References _LocRefence, _Stock, CLocWordNumRef, and NLAISCRIPT::l.

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

Copy Constructor.

Exception: throw (NLAIE::CExceptionIndexHandeledError)

Definition at line 560 of file ident.h.

References _Stock, and load.

NLAIAGENT::CLocWordNumRef::CLocWordNumRef   [inline]
 

Definition at line 565 of file ident.h.

References _Stock.

Referenced by clone, and newInstance.

NLAIAGENT::CLocWordNumRef::~CLocWordNumRef   [virtual]
 

Definition at line 121 of file ident.cpp.

References _Id, and _LocRefence.


Member Function Documentation

void NLAIAGENT::CLocWordNumRef::clear   [static]
 

Clear the map.

Definition at line 158 of file ident.cpp.

virtual const NLAIC::IBasicType* NLAIAGENT::CLocWordNumRef::clone   const [inline, virtual]
 

This function allow a pointer copy, that mean that the new class have the sam attributs caracteristics as the owne.

Implements NLAIC::IBasicType.

Definition at line 579 of file ident.h.

References CLocWordNumRef.

void NLAIAGENT::CLocWordNumRef::getDebugString std::string &    t const [inline, virtual]
 

This is a Debug function, text is an character pointer to receive the debug text output, the debug text containe all think sensible to interset user.

Implements NLAIC::IBasicType.

Definition at line 569 of file ident.h.

References NLAIC::stringGetBuild, and t.

virtual const CNumericIndex& NLAIAGENT::CLocWordNumRef::getNumIdent   const [inline, virtual]
 

Implements NLAIAGENT::IWordNumRef.

Definition at line 612 of file ident.h.

IRefrence * NLAIAGENT::CLocWordNumRef::getRef const CNumericIndex   [static]
 

Definition at line 137 of file ident.cpp.

References _LocRefence, and id.

const NLAIC::CIdentType & NLAIAGENT::CLocWordNumRef::getType   const [virtual]
 

getType return a unique string how represente the class, it can be the name of the class.

This function is used for the sytem regstry class (see the definition of the template class Gen::CRegistry).

Implements NLAIC::IBasicType.

Definition at line 132 of file ident.cpp.

References IdLocWordNumRef.

void NLAIAGENT::CLocWordNumRef::Init   [static]
 

Init the map.

Definition at line 152 of file ident.cpp.

virtual void NLAIAGENT::CLocWordNumRef::load NLMISC::IStream   is [inline, virtual]
 

Exception: throw (NLAIE::CExceptionIndexHandeledError).

Implements NLAIC::IBasicInterface.

Definition at line 594 of file ident.h.

References _LocRefence, and _Stock.

Referenced by CLocWordNumRef.

bool NLAIAGENT::CLocWordNumRef::loadMapping NLMISC::IStream   [static]
 

Load the mapping objects in the word.

virtual const NLAIC::IBasicType* NLAIAGENT::CLocWordNumRef::newInstance   const [inline, virtual]
 

This function allow a new instance, that mean that the class is a class factory.

Implements NLAIC::IBasicType.

Definition at line 584 of file ident.h.

References CLocWordNumRef.

virtual NLAIAGENT::CLocWordNumRef::operator const IRefrence *   const [inline, virtual]
 

Implements NLAIAGENT::IWordNumRef.

Definition at line 607 of file ident.h.

References _Stock.

virtual void NLAIAGENT::CLocWordNumRef::save NLMISC::IStream   os [inline, virtual]
 

Save the class in a stream.

Implements NLAIC::IBasicInterface.

Definition at line 589 of file ident.h.

void NLAIAGENT::CLocWordNumRef::saveMapping ostream &    [static]
 

Saving the mapping objects in the word.

Saving mapping is to save all CNumericIndex shared in the map and its IRefrence class factory ident type.

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

Definition at line 617 of file ident.h.

References t.


Member Data Documentation

CNumericIndex NLAIAGENT::CLocWordNumRef::_Id [private]
 

The iden of the class.

Definition at line 486 of file ident.h.

Referenced by ~CLocWordNumRef.

NLMISC::CSynchronized< CLocWordNumRef::tMapRef > CLocWordNumRef::_LocRefence [static, private]
 

Referenced by CLocWordNumRef, getRef, load, and ~CLocWordNumRef.

IRefrence* NLAIAGENT::CLocWordNumRef::_Stock [private]
 

_Stock define the cross reference between agent and this class.

Definition at line 489 of file ident.h.

Referenced by CLocWordNumRef, load, and operator const IRefrence *.

const NLAIC::CIdentType * CLocWordNumRef::IdLocWordNumRef = NULL [static]
 

The class factory ident of the class.

Definition at line 69 of file static_def_init.cpp.

Referenced by getType.


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