#include <PsNameToPointerMap.h>
Inheritance diagram for PsNameToPointerMap< typeObjet >:


Public Methods | |
| PsNameToPointerMap () | |
| constructor | |
| virtual | ~PsNameToPointerMap () |
| destructor | |
| void | addObjectWithIndex (const PsName &nomObj, typeObjet *refObj) |
| easy insertion | |
| typeObjet * | getObjectOfIndex (const PsName &nomObj) const |
| easy find | |
Definition at line 29 of file PsNameToPointerMap.h.
|
|||||||||
|
constructor
Definition at line 34 of file PsNameToPointerMap.h.
00034 {
00035 }
|
|
|||||||||
|
destructor
Definition at line 39 of file PsNameToPointerMap.h.
00039 {}
|
|
||||||||||||||||
|
easy insertion
Definition at line 43 of file PsNameToPointerMap.h. Referenced by PsnSvm::synchroniseReceiveAndProcessMessages().
00044 {
00045 insert (pair<const PsName, typeObjet *>(nomObj,refObj)) ;
00046 }
|
|
||||||||||
|
easy find
Definition at line 50 of file PsNameToPointerMap.h.
00051 {
00052 #ifdef _TYPENAMENOTIMPLICIT
00053 typename PsNameToPointerMap<typeObjet>::const_iterator i;
00054 #else
00055 const_iterator i;
00056 #endif
00057 i = find(nomObj);
00058 if (i==end())
00059 {
00060 return NULL;
00061 }
00062 else
00063 {
00064 return (*i).second;
00065 }
00066 }
|
| Documentation generated on Mon Nov 25 15:26:15 2002 |
Generated with doxygen 1.2.12 by Dimitri van Heesch , 1997-2001 |