Namespace Class Reference

#include <consoleInternal.h>

List of all members.

Public Member Functions

 Namespace ()
 ~Namespace ()
void addFunction (StringTableEntry name, CodeBlock *cb, U32 functionOffset, const char *usage=NULL)
void addCommand (StringTableEntry name, StringCallback, const char *usage, S32 minArgs, S32 maxArgs, bool toolOnly=false)
void addCommand (StringTableEntry name, IntCallback, const char *usage, S32 minArgs, S32 maxArgs, bool toolOnly=false)
void addCommand (StringTableEntry name, FloatCallback, const char *usage, S32 minArgs, S32 maxArgs, bool toolOnly=false)
void addCommand (StringTableEntry name, VoidCallback, const char *usage, S32 minArgs, S32 maxArgs, bool toolOnly=false)
void addCommand (StringTableEntry name, BoolCallback, const char *usage, S32 minArgs, S32 maxArgs, bool toolOnly=false)
void addOverload (const char *name, const char *altUsage)
void addScriptCallback (const char *funcName, const char *usage)
void markGroup (const char *name, const char *usage)
void getEntryList (VectorPtr< Entry * > *)
Entrylookup (StringTableEntry name)
EntrylookupRecursive (StringTableEntry name)
EntrycreateLocalEntry (StringTableEntry name)
void buildHashTable ()
void clearEntries ()
bool classLinkTo (Namespace *parent)
bool unlinkClass (Namespace *parent)
void getUniqueEntryLists (Namespace *other, VectorPtr< Entry * > *outThisList, VectorPtr< Entry * > *outOtherList)
const char * tabComplete (const char *prevText, S32 baseLen, bool fForward)

Static Public Member Functions

static void trashCache ()
static void init ()
static void shutdown ()
static Namespaceglobal ()
static Namespacefind (StringTableEntry name, StringTableEntry package=NULL)
static void activatePackage (StringTableEntry name)
static void deactivatePackage (StringTableEntry name)
static void dumpClasses (bool dumpScript=true, bool dumpEngine=true)
static void dumpFunctions (bool dumpScript=true, bool dumpEngine=true)
static void printNamespaceEntries (Namespace *g, bool dumpScript=true, bool dumpEngine=true)
static void unlinkPackages ()
static void relinkPackages ()
static bool isPackage (StringTableEntry name)

Public Attributes

StringTableEntry mName
StringTableEntry mPackage
NamespacemParent
NamespacemNext
AbstractClassRepmClassRep
U32 mRefCountToParent
const char * mUsage
bool mCleanUpUsage
EntrymEntryList
Entry ** mHashTable
U32 mHashSize
U32 mHashSequence
char * lastUsage

Static Public Attributes

static U32 mCacheSequence
static DataChunker mCacheAllocator
static DataChunker mAllocator
static NamespacemNamespaceList
static NamespacemGlobalNamespace

Private Types

 MaxActivePackages = 512
enum  { MaxActivePackages = 512 }

Static Private Attributes

static U32 mNumActivePackages
static U32 mOldNumActivePackages
static StringTableEntry mActivePackages [MaxActivePackages]

Classes

struct  Entry


Member Enumeration Documentation

anonymous enum [private]

Enumerator:
MaxActivePackages 


Constructor & Destructor Documentation

Namespace::Namespace (  ) 

Namespace::~Namespace (  ) 


Member Function Documentation

void Namespace::addFunction ( StringTableEntry  name,
CodeBlock cb,
U32  functionOffset,
const char *  usage = NULL 
)

void Namespace::addCommand ( StringTableEntry  name,
StringCallback  ,
const char *  usage,
S32  minArgs,
S32  maxArgs,
bool  toolOnly = false 
)

void Namespace::addCommand ( StringTableEntry  name,
IntCallback  ,
const char *  usage,
S32  minArgs,
S32  maxArgs,
bool  toolOnly = false 
)

void Namespace::addCommand ( StringTableEntry  name,
FloatCallback  ,
const char *  usage,
S32  minArgs,
S32  maxArgs,
bool  toolOnly = false 
)

void Namespace::addCommand ( StringTableEntry  name,
VoidCallback  ,
const char *  usage,
S32  minArgs,
S32  maxArgs,
bool  toolOnly = false 
)

void Namespace::addCommand ( StringTableEntry  name,
BoolCallback  ,
const char *  usage,
S32  minArgs,
S32  maxArgs,
bool  toolOnly = false 
)

void Namespace::addOverload ( const char *  name,
const char *  altUsage 
)

void Namespace::addScriptCallback ( const char *  funcName,
const char *  usage 
)

void Namespace::markGroup ( const char *  name,
const char *  usage 
)

void Namespace::getEntryList ( VectorPtr< Entry * > *   ) 

Entry* Namespace::lookup ( StringTableEntry  name  ) 

Entry* Namespace::lookupRecursive ( StringTableEntry  name  ) 

Entry* Namespace::createLocalEntry ( StringTableEntry  name  ) 

void Namespace::buildHashTable (  ) 

void Namespace::clearEntries (  ) 

bool Namespace::classLinkTo ( Namespace parent  ) 

bool Namespace::unlinkClass ( Namespace parent  ) 

void Namespace::getUniqueEntryLists ( Namespace other,
VectorPtr< Entry * > *  outThisList,
VectorPtr< Entry * > *  outOtherList 
)

const char* Namespace::tabComplete ( const char *  prevText,
S32  baseLen,
bool  fForward 
)

static void Namespace::trashCache (  )  [static]

static void Namespace::init (  )  [static]

static void Namespace::shutdown (  )  [static]

static Namespace* Namespace::global (  )  [static]

static Namespace* Namespace::find ( StringTableEntry  name,
StringTableEntry  package = NULL 
) [static]

static void Namespace::activatePackage ( StringTableEntry  name  )  [static]

static void Namespace::deactivatePackage ( StringTableEntry  name  )  [static]

static void Namespace::dumpClasses ( bool  dumpScript = true,
bool  dumpEngine = true 
) [static]

static void Namespace::dumpFunctions ( bool  dumpScript = true,
bool  dumpEngine = true 
) [static]

static void Namespace::printNamespaceEntries ( Namespace g,
bool  dumpScript = true,
bool  dumpEngine = true 
) [static]

static void Namespace::unlinkPackages (  )  [static]

static void Namespace::relinkPackages (  )  [static]

static bool Namespace::isPackage ( StringTableEntry  name  )  [static]


Member Data Documentation

StringTableEntry Namespace::mActivePackages[MaxActivePackages] [static, private]

const char* Namespace::mUsage

Note:
The hash sequence is used by the autodoc console facility as a means of testing reference state.