Panda3D
Public Member Functions | Static Public Member Functions

TypedSkel Class Reference

Skeleton object that inherits from TypedObject. More...

#include "typedSkel.h"

Inheritance diagram for TypedSkel:
TypedObject MemoryBase

List of all members.

Public Member Functions

virtual TypeHandle force_init_type ()
virtual TypeHandle get_type () const
int get_value ()
 Retreives a value that was previously stored.
int get_value_alt ()
 Retreives a value that was previously stored.
void set_value (int n)
 Stores an integer value.
void set_value_alt (int n)
 Stores an integer value.

Static Public Member Functions

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.

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 30 of file typedSkel.h.


Member Function Documentation

int TypedSkel::get_value ( ) [inline]

Retreives a value that was previously stored.

Definition at line 50 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 39 of file typedSkel.cxx.

static void TypedSkel::init_type ( ) [inline, static]

This function is declared non-inline to work around a compiler bug in g++ 2.96.

Making it inline seems to cause problems in the optimizer.

Reimplemented from TypedObject.

Definition at line 50 of file typedSkel.h.

References TypedObject::init_type().

void TypedSkel::set_value ( int  n) [inline]

Stores an integer value.

Definition at line 40 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 27 of file typedSkel.cxx.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations