Panda3D
Public Member Functions | Public Attributes

EnumTypeDescriptor Class Reference

Inheritance diagram for EnumTypeDescriptor:
PrimitiveTypeDescriptor BaseTypeDescriptor

List of all members.

Public Member Functions

def __init__
def generateCode
def generateGlobalCode
def generateReturnValueWrapper
def getFullNestedName
def isAtomic
def outputComment
def outputValues
def recordOverloadedMethods
def recursiveTypeDescriptor

Public Attributes

 atomicType
 comment
 enumName
 foreignTypeName
 isNested
 moduleName
 nestedTypes
 outerType
 parentTypes
 prototype
 typeIndex
 values

Detailed Description

EnumTypeDescriptors represent enums in C++

Constructor & Destructor Documentation

def __init__ (   self)

Reimplemented from PrimitiveTypeDescriptor.


Member Function Documentation

def generateCode (   self,
  file,
  nesting 
)
def generateGlobalCode (   self,
  dir,
  extensionsDir 
)
Generate enum code for this type.

Reimplemented from BaseTypeDescriptor.

def generateReturnValueWrapper (   self,
  classTypeDesc,
  file,
  userManagesMemory,
  needsDowncast,
  nesting 
) [inherited]
Write code to the file that will return a primitive to the caller.
Pretty simple since there is no extra work needed here

Reimplemented from BaseTypeDescriptor.

def getFullNestedName (   self) [inherited]
If this type is nested, it will return the fully specified name
For example:  OuterClass.InnerClass.ReallyInnerClass
def isAtomic (   self) [inherited]
def outputComment (   self,
  file,
  nesting 
)
def outputValues (   self,
  file,
  nesting 
)
For each entry in the dictionary, output a line for name, value pairs
Example:
off = 0
on = 1
def recordOverloadedMethods (   self) [inherited]

Reimplemented in ClassTypeDescriptor.

def recursiveTypeDescriptor (   self) [inherited]
Attempt to get to the bottom of a type descriptor
Since we are at the bottom when we get here, just return self

Reimplemented in DerivedTypeDescriptor.


Member Data Documentation

atomicType [inherited]
comment [inherited]
foreignTypeName [inherited]

Reimplemented in ClassTypeDescriptor.

isNested [inherited]
moduleName [inherited]

Reimplemented in FunctionTypeDescriptor.

outerType [inherited]

Reimplemented from BaseTypeDescriptor.

prototype [inherited]
typeIndex [inherited]
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties