NLAIAGENT::CIndexedVarName::CNameStruc Struct Reference


Detailed Description

Structure for store string in a std::map.

Definition at line 268 of file agent_string.h.

Public Member Functions

 CNameStruc (CStringVarName *name, sint32 index)
 CNameStruc ()
const sint32dec ()
 dec one reference. if ref

const sint32inc ()
 add new reference. if Count is null we have to remove this structur from thje map.

virtual void load (NLMISC::IStream &)
virtual void save (NLMISC::IStream &)

Data Fields

sint32 Count
 Number of reference.

sint32 Index
 unique index for the string

CStringVarNameName
 String stored in the map.


Constructor & Destructor Documentation

NLAIAGENT::CIndexedVarName::CNameStruc::CNameStruc  )  [inline]
 

Definition at line 278 of file agent_string.h.

00278 :Count(0),Index(0),Name(NULL) {}

NLAIAGENT::CIndexedVarName::CNameStruc::CNameStruc CStringVarName name,
sint32  index
[inline]
 

Definition at line 279 of file agent_string.h.

References index, and sint32.

00279 :Count(0),Index(index),Name(name){}


Member Function Documentation

const sint32& NLAIAGENT::CIndexedVarName::CNameStruc::dec  )  [inline]
 

dec one reference. if ref

Definition at line 286 of file agent_string.h.

References sint32.

00287                         {
00288                                 return --Count;
00289                         }

const sint32& NLAIAGENT::CIndexedVarName::CNameStruc::inc  )  [inline]
 

add new reference. if Count is null we have to remove this structur from thje map.

Definition at line 281 of file agent_string.h.

References sint32.

00282                         {
00283                                 return ++Count;
00284                         }

virtual void NLAIAGENT::CIndexedVarName::CNameStruc::load NLMISC::IStream  )  [inline, virtual]
 

Definition at line 299 of file agent_string.h.

Referenced by NLAIAGENT::CIndexedVarName::loadClass().

00300                         {
00301 /*                              is.serial(Count);
00302                                 is.serial(Index);                               
00303                                 if(Name == NULL) 
00304                                         Name = new CStringVarName(is);
00305                                 is.serial(Name);*/
00306                         }

virtual void NLAIAGENT::CIndexedVarName::CNameStruc::save NLMISC::IStream  )  [inline, virtual]
 

Definition at line 291 of file agent_string.h.

Referenced by NLAIAGENT::CIndexedVarName::saveClass().

00292                         {
00293                                 // TODO
00294 /*                              os.serial( Count );
00295                                 os.serial( Index );
00296                                 os.serial( *Name );*/
00297                         }


Field Documentation

sint32 NLAIAGENT::CIndexedVarName::CNameStruc::Count
 

Number of reference.

Definition at line 271 of file agent_string.h.

Referenced by NLAIAGENT::CIndexedVarName::clear(), NLAIAGENT::CIndexedVarName::initClass(), NLAIAGENT::CIndexedVarName::loadClass(), and NLAIAGENT::CIndexedVarName::newIndex().

sint32 NLAIAGENT::CIndexedVarName::CNameStruc::Index
 

unique index for the string

Definition at line 273 of file agent_string.h.

Referenced by NLAIAGENT::CIndexedVarName::initClass(), NLAIAGENT::CIndexedVarName::loadClass(), and NLAIAGENT::CIndexedVarName::newIndex().

CStringVarName* NLAIAGENT::CIndexedVarName::CNameStruc::Name
 

String stored in the map.

Definition at line 275 of file agent_string.h.

Referenced by NLAIAGENT::CIndexedVarName::clear(), NLAIAGENT::CIndexedVarName::initClass(), NLAIAGENT::CIndexedVarName::insert(), NLAIAGENT::CIndexedVarName::loadClass(), NLAIAGENT::CIndexedVarName::newIndex(), NLAIAGENT::CIndexedVarName::releaseClass(), and NLAIAGENT::CIndexedVarName::saveClass().


The documentation for this struct was generated from the following file:
Generated on Tue Mar 16 09:16:36 2004 for NeL by doxygen 1.3.6