Panda3D
Public Member Functions | Static Public Member Functions | List of all members
TypedSkel Class Reference

Skeleton object that inherits from TypedObject. More...

#include "typedSkel.h"

Inheritance diagram for TypedSkel:
TypedObject MemoryBase

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...
 
- Public Member Functions inherited from TypedObject
 TypedObject (const TypedObject &copy)=default
 
TypedObjectas_typed_object ()
 Returns the object, upcast (if necessary) to a TypedObject pointer. More...
 
const TypedObjectas_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...
 
TypedObjectoperator= (const TypedObject &copy)=default
 

Static Public Member Functions

static TypeHandle get_class_type ()
 
static void init_type ()
 
- Static Public Member Functions inherited from TypedObject
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

- Public Attributes inherited from TypedObject
 get_type
 

Detailed Description

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.

Member Function Documentation

◆ get_value()

int TypedSkel::get_value ( )
inline

Retreives a value that was previously stored.

Definition at line 40 of file typedSkel.I.

◆ get_value_alt()

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.

◆ set_value()

void TypedSkel::set_value ( int  n)
inline

Stores an integer value.

Definition at line 32 of file typedSkel.I.

◆ set_value_alt()

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.


The documentation for this class was generated from the following files: