|
|
|
API Reference: DCTypedef
DCTypedef
from pandac.PandaModules import DCTypedef
Class : DCTypedef
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.
Inheritance:
Methods of DCTypedef:
Methods of DCDeclaration:
getDescription
string DCTypedef::get_description(void) const;
Description: Returns a brief decription of the typedef, useful for human consumption.
|
getName
string const &DCTypedef::get_name(void) const;
Description: Returns the name of this typedef.
|
getNumber
int DCTypedef::get_number(void) const;
Description: Returns a unique index number associated with this typedef definition. This is defined implicitly when the .dc file(s) are read.
|
isBogusTypedef
bool DCTypedef::is_bogus_typedef(void) const;
Description: 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.
|
isImplicitTypedef
bool DCTypedef::is_implicit_typedef(void) const;
Description: 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
virtual void DCDeclaration::output(ostream &out) const;
Description : Write a string representation of this instance to <out>.
|
write
void DCDeclaration::write(ostream &out, int indent_level) const;
Description : Write a string representation of this instance to <out>.
|
| | |