DCTypedef

from panda3d.direct import DCTypedef
class DCTypedef

Bases: DCDeclaration

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 diagram

Inheritance diagram of DCTypedef

__init__(*args, **kwargs)
getDescription()

C++ Interface: get_description(DCTypedef self)

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

*/

getName()

C++ Interface: get_name(DCTypedef self)

/**
  • Returns the name of this typedef.

*/

getNumber()

C++ Interface: get_number(DCTypedef self)

/**
  • Returns a unique index number associated with this typedef definition.

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

*/

get_description()

C++ Interface: get_description(DCTypedef self)

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

*/

get_name()

C++ Interface: get_name(DCTypedef self)

/**
  • Returns the name of this typedef.

*/

get_number()

C++ Interface: get_number(DCTypedef self)

/**
  • Returns a unique index number associated with this typedef definition.

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

*/

isBogusTypedef()

C++ Interface: is_bogus_typedef(DCTypedef self)

/**
  • 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()

C++ Interface: is_implicit_typedef(DCTypedef self)

/**
  • 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.

*/

is_bogus_typedef()

C++ Interface: is_bogus_typedef(DCTypedef self)

/**
  • 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.

*/

is_implicit_typedef()

C++ Interface: is_implicit_typedef(DCTypedef self)

/**
  • 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.

*/