System::Name Class Reference

Stores the names used by the engine in a hash table for fast access.

#include <Name.hpp>

List of all members.

Public Member Functions

CONST TCHAR * operator * () CONST
BOOL operator== (CONST Name &Other) CONST
BOOL operator!= (CONST Name &Other) CONST
 operator DWORD () CONST
 operator EName () CONST
 Name ()
 Name (DWORD InIndex)
 Name (EName InIndex)
 Name (CONST TCHAR *Name, BOOL FindExisting=FALSE)

Static Public Member Functions

static BOOL Startup ()
static BOOL Shutdown ()
static BOOL GetInitialized ()
static CONST TCHAR * Safe (EName InName)

Static Private Attributes

static BOOL G_Initialized = FALSE
static
CriticalResource
< NameVector
G_Names
static
CriticalResource
< Array< DWORD > > 
G_Available
static
CriticalResource
< NameVector
G_Buckets [4096]

Classes

struct  Entry
 Name entry. More...


Constructor & Destructor Documentation

System::Name::Name (  ) 

Default constructor.

System::Name::Name ( DWORD  InIndex  ) 

Initialize with index of a name in the table.

System::Name::Name ( EName  InIndex  ) 

Initialize with index of a static name.

System::Name::Name ( CONST TCHAR *  Name,
BOOL  FindExisting = FALSE 
)

Find name in the hash table.


Member Function Documentation

BOOL System::Name::Startup (  )  [static]

Startup routine for the name subsystem.

BOOL System::Name::Shutdown (  )  [static]

Shutdown routine for the name subsystem.

BOOL System::Name::GetInitialized (  )  [static]

Return whether or not the subsystem is initialized.

CONST TCHAR * System::Name::Safe ( EName  InName  )  [static]

Retrieve the string of a name safely.

CONST TCHAR * System::Name::operator * (  ) 

Return name value.

BOOL System::Name::operator== ( CONST Name Other  ) 

Binary comparison with other name (equal to).

BOOL System::Name::operator!= ( CONST Name Other  ) 

Binary comparison with other name (not equal to).

System::Name::operator DWORD (  ) 

Return the index of the name.

System::Name::operator EName (  ) 

Return the index of the name.


Member Data Documentation

BOOL System::Name::G_Initialized = FALSE [static, private]

Whether or not the name subsystem is initialized.

CriticalResource< Name::NameVector > System::Name::G_Names [static, private]

Global array of names managed by the name subsystem.

CriticalResource< Array< DWORD > > System::Name::G_Available [static, private]

A list of available name array elements.

CriticalResource< Name::NameVector > System::Name::G_Buckets [static, private]

Hash table name buckets, with names managed by the name subsystem.


The documentation for this class was generated from the following files:
Generated on Wed Dec 5 14:53:02 2007 for Aerospace Engine by  doxygen 1.5.3