Skeleton object that inherits from TypedObject. More...
#include "typedSkel.h"
Public Member Functions | |
virtual TypeHandle | force_init_type () |
virtual TypeHandle | get_type () const |
int | get_value () |
Retreives a value that was previously stored. More... | |
int | get_value_alt () |
Retreives a value that was previously stored. More... | |
void | set_value (int n) |
Stores an integer value. More... | |
void | set_value_alt (int n) |
Stores an integer value. More... | |
![]() | |
TypedObject (const TypedObject ©)=default | |
TypedObject * | as_typed_object () |
Returns the object, upcast (if necessary) to a TypedObject pointer. More... | |
const TypedObject * | as_typed_object () const |
Returns the object, upcast (if necessary) to a TypedObject pointer. More... | |
int | get_best_parent_from_Set (const std::set< int > &) const |
int | get_type_index () const |
Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. More... | |
bool | is_exact_type (TypeHandle handle) const |
Returns true if the current object is the indicated type exactly. More... | |
bool | is_of_type (TypeHandle handle) const |
Returns true if the current object is or derives from the indicated type. More... | |
TypedObject & | operator= (const TypedObject ©)=default |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
![]() | |
static TypeHandle | get_class_type () |
static void | init_type () |
This function is declared non-inline to work around a compiler bug in g++ 2.96. More... | |
Additional Inherited Members | |
![]() | |
get_type | |
Skeleton object that inherits from TypedObject.
Stores an integer, and will return it on request.
The skeleton classes are intended to help you learn how to add C++ classes to panda. See also the manual, "Adding C++ Classes to Panda."
Definition at line 27 of file typedSkel.h.
|
inline |
Retreives a value that was previously stored.
Definition at line 40 of file typedSkel.I.
int TypedSkel::get_value_alt | ( | ) |
Retreives a value that was previously stored.
Exact same functionality as get_value, except that this isn't an inline function.
Definition at line 32 of file typedSkel.cxx.
|
inline |
Stores an integer value.
Definition at line 32 of file typedSkel.I.
void TypedSkel::set_value_alt | ( | int | n | ) |
Stores an integer value.
Exact same functionality as set_value, except that this isn't an inline function.
Definition at line 23 of file typedSkel.cxx.