Torque3D Documentation / _generateds / Namespace::Entry

Namespace::Entry

Engine/source/console/consoleInternal.h

A function entry in the namespace.

More...

Classes:

Public Types

enum
_Anonymous_ {
  ScriptCallbackType = -3
  GroupMarker = -2
  InvalidFunctionType = -1
  ConsoleFunctionType 
  StringCallbackType 
  IntCallbackType 
  FloatCallbackType 
  VoidCallbackType 
  BoolCallbackType 
}

Public Attributes

The compiled script code if this is a script function.

If it's a script function, this is the line of the declaration in code.

Name of this function.

The offset in the compiled script code at which this function begins.

Extended console function information.

Max number of arguments expected by this function.

Min number of arguments expected by this function.

Link back to the namespace to which the entry belongs.

Next function entry in the hashtable link chain of the namespace.

Name of the package to which this function belongs.

bool

Whether this function is included only in TORQUE_TOOLS builds.

const char *

Usage string for documentation.

Public Functions

Return a string describing the arguments the function takes including default argument values.

getBriefDescription(String * outRemainingDocText)

Return a one-line documentation text string for the function.

Get the auto-doc string for this function. This string does not included prototype information.

Return a full prototype string for the function including return type, function name, and arguments.

Detailed Description

A function entry in the namespace.

Public Types

@58

Enumerator

ScriptCallbackType = -3
GroupMarker = -2
InvalidFunctionType = -1
ConsoleFunctionType
StringCallbackType
IntCallbackType
FloatCallbackType
VoidCallbackType
BoolCallbackType

Public Attributes

union Namespace::Entry::CallbackUnion cb 
CodeBlock * mCode 

The compiled script code if this is a script function.

U32 mFunctionLineNumber 

If it's a script function, this is the line of the declaration in code.

note:

0 for functions read from legacy DSOs that have no line number information.

StringTableEntry mFunctionName 

Name of this function.

U32 mFunctionOffset 

The offset in the compiled script code at which this function begins.

ConsoleFunctionHeader * mHeader 

Extended console function information.

S32 mMaxArgs 

Max number of arguments expected by this function.

If zero, function takes an arbitrary number of arguments.

S32 mMinArgs 

Min number of arguments expected by this function.

Namespace * mNamespace 

Link back to the namespace to which the entry belongs.

Entry * mNext 

Next function entry in the hashtable link chain of the namespace.

StringTableEntry mPackage 

Name of the package to which this function belongs.

bool mToolOnly 

Whether this function is included only in TORQUE_TOOLS builds.

S32 mType 
const char * mUsage 

Usage string for documentation.

Public Functions

Entry()

clear()

execute(S32 argc, ConsoleValueRef * argv, ExprEvalState * state)

getArgumentsString()

Return a string describing the arguments the function takes including default argument values.

getBriefDescription(String * outRemainingDocText)

Return a one-line documentation text string for the function.

getDocString()

Get the auto-doc string for this function. This string does not included prototype information.

getPrototypeString()

Return a full prototype string for the function including return type, function name, and arguments.