#include <D:/Temp/vs/gal/source/Catalogue.h>
Public Member Functions | |
GaCatalogueEntry (const char *name, T *data) | |
Constructor makes copy of key and stores pointer to copied key and pointer to user specified data. | |
~GaCatalogueEntry () | |
Frees memory used by the data and the key. | |
const char *GACALL | GetName () const |
This method is not thread-safe. | |
void GACALL | SetName (const char *name) |
SetName method copies key's string and stores pointer to the copied string. | |
int GACALL | GetNameLength () const |
This method is not thread-safe. | |
T *GACALL | GetData () const |
This method is not thread-safe. | |
void GACALL | SetData (T *data) |
SetData method stores pointer to data. | |
Private Attributes | |
char * | _name |
Pointer to string representing key of the catalogue's entry. | |
int | _nameLength |
Stores length of string (key) without null-terminating character. | |
T * | _data |
Pointer to the data. | |
Friends | |
class | GaCatalogue< T > |
This class has no built-in synchronizator, so LOCK_OBJECT
and LOCK_THIS_OBJECT
macros cannot be used with instances of this class. No public or private methods are thread-safe.
T | type of stored data in the entry. |
Common::GaCatalogueEntry< T >::GaCatalogueEntry | ( | const char * | name, | |
T * | data | |||
) | [inline] |
Constructor makes copy of key and stores pointer to copied key and pointer to user specified data.
name | key of the entry (null-terminating string). | |
data | data which will be stored in the entry. |
Common::GaCatalogueEntry< T >::~GaCatalogueEntry | ( | ) | [inline] |
Frees memory used by the data and the key.
const char* GACALL Common::GaCatalogueEntry< T >::GetName | ( | ) | const [inline] |
This method is not thread-safe.
void GACALL Common::GaCatalogueEntry< T >::SetName | ( | const char * | name | ) | [inline] |
SetName
method copies key's string and stores pointer to the copied string.
This method is not thread-safe.
name | pointer to string which represents new key. |
int GACALL Common::GaCatalogueEntry< T >::GetNameLength | ( | ) | const [inline] |
This method is not thread-safe.
T* GACALL Common::GaCatalogueEntry< T >::GetData | ( | ) | const [inline] |
This method is not thread-safe.
void GACALL Common::GaCatalogueEntry< T >::SetData | ( | T * | data | ) | [inline] |
SetData
method stores pointer to data.
This method is not thread-safe.
data | reference to new data. |
friend class GaCatalogue< T > [friend] |
char* Common::GaCatalogueEntry< T >::_name [private] |
Pointer to string representing key of the catalogue's entry.
int Common::GaCatalogueEntry< T >::_nameLength [private] |
Stores length of string (key) without null-terminating character.
T* Common::GaCatalogueEntry< T >::_data [private] |
Pointer to the data.