Panda3D
Public Member Functions

DCTypedef Class Reference

This represents a single typedef declaration in the dc file. More...

Inheritance diagram for DCTypedef:
DCDeclaration

List of all members.

Public Member Functions

DCClass asClass ()
DCClass const asClass ()
DCSwitch asSwitch ()
DCSwitch const asSwitch ()
string getDescription ()
 Returns a brief decription of the typedef, useful for human consumption.
string getName ()
 Returns the name of this typedef.
int getNumber ()
 Returns a unique index number associated with this typedef definition.
bool isBogusTypedef ()
 Returns true if the typedef has been flagged as a bogus typedef.
bool isImplicitTypedef ()
 Returns true if the typedef has been flagged as an implicit typedef, meaning it was created for a DCClass that was referenced inline as a type.
 output (ostream out)
 Write a string representation of this instance to <out>.
 write (ostream out, int indent_level)
 Write a string representation of this instance to <out>.

Detailed Description

This represents a single typedef declaration in the dc file.

It assigns a particular type to a new name, just like a C typedef.


Member Function Documentation

DCClass asClass ( ) [inherited]
DCClass const asClass ( ) [inherited]
DCSwitch asSwitch ( ) [inherited]
DCSwitch const asSwitch ( ) [inherited]
string getDescription ( )

Returns a brief decription of the typedef, useful for human consumption.

string getName ( )

Returns the name of this typedef.

int getNumber ( )

Returns a unique index number associated with this typedef definition.

This is defined implicitly when the .dc file(s) are read.

bool isBogusTypedef ( )

Returns true if the typedef has been flagged as a bogus typedef.

This is set for typedefs that are generated by the parser as placeholder for missing typedefs, as when reading a partial file; it should not occur in a normal valid dc file.

bool isImplicitTypedef ( )

Returns true if the typedef has been flagged as an implicit typedef, meaning it was created for a DCClass that was referenced inline as a type.

output ( ostream  out) [inherited]

Write a string representation of this instance to <out>.

Reimplemented in DCClass.

write ( ostream  out,
int  indent_level 
) [inherited]

Write a string representation of this instance to <out>.

 All Classes Namespaces Functions Variables Enumerations Enumerator Properties