Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/express/register_type.h File Reference

#include "pandabase.h"
#include "typeHandle.h"
#include "typeRegistry.h"
#include "register_type.I"

Go to the source code of this file.

Defines

#define get_type_handle(type)   _get_type_handle((const type *)0)
#define do_init_type(type)   _do_init_type((const type *)0)

Functions

void register_type (TypeHandle &type_handle, const string &name)
 This inline function is just a convenient way to call TypeRegistry::register_type(), along with zero to four record_derivation()s.

void register_type (TypeHandle &type_handle, const string &name, TypeHandle parent1)
void register_type (TypeHandle &type_handle, const string &name, TypeHandle parent1, TypeHandle parent2)
void register_type (TypeHandle &type_handle, const string &name, TypeHandle parent1, TypeHandle parent2, TypeHandle parent3)
void register_type (TypeHandle &type_handle, const string &name, TypeHandle parent1, TypeHandle parent2, TypeHandle parent3, TypeHandle parent4)
TypeHandle register_dynamic_type (const string &name)
 This is essentially similar to register_type(), except that it doesn't store a reference to any TypeHandle passed in and it therefore doesn't complain if the type is registered more than once to different TypeHandle reference.

TypeHandle register_dynamic_type (const string &name, TypeHandle parent1)
TypeHandle register_dynamic_type (const string &name, TypeHandle parent1, TypeHandle parent2)
TypeHandle register_dynamic_type (const string &name, TypeHandle parent1, TypeHandle parent2, TypeHandle parent3)
TypeHandle register_dynamic_type (const string &name, TypeHandle parent1, TypeHandle parent2, TypeHandle parent3, TypeHandle parent4)
void EXPCL_PANDAEXPRESS init_system_type_handles ()
template<class T> TypeHandle _get_type_handle (const T *)
template<> TypeHandle _get_type_handle (const long *)
template<> TypeHandle _get_type_handle (const int *)
template<> TypeHandle _get_type_handle (const short *)
template<> TypeHandle _get_type_handle (const char *)
template<> TypeHandle _get_type_handle (const bool *)
template<> TypeHandle _get_type_handle (const double *)
template<> TypeHandle _get_type_handle (const float *)
template<> TypeHandle _get_type_handle (const long *const *)
template<> TypeHandle _get_type_handle (const int *const *)
template<> TypeHandle _get_type_handle (const short *const *)
template<> TypeHandle _get_type_handle (const char *const *)
template<> TypeHandle _get_type_handle (const bool *const *)
template<> TypeHandle _get_type_handle (const double *const *)
template<> TypeHandle _get_type_handle (const float *const *)
template<> TypeHandle _get_type_handle (const void *const *)
template<class T> void _do_init_type (const T *)
template<> void _do_init_type (const long *)
template<> void _do_init_type (const int *)
template<> void _do_init_type (const short *)
template<> void _do_init_type (const char *)
template<> void _do_init_type (const bool *)
template<> void _do_init_type (const double *)
template<> void _do_init_type (const float *)
template<> void _do_init_type (const long *const *)
template<> void _do_init_type (const int *const *)
template<> void _do_init_type (const short *const *)
template<> void _do_init_type (const char *const *)
template<> void _do_init_type (const bool *const *)
template<> void _do_init_type (const double *const *)
template<> void _do_init_type (const float *const *)
template<> void _do_init_type (const void *const *)

Variables

TypeHandle EXPCL_PANDAEXPRESS long_type_handle
TypeHandle EXPCL_PANDAEXPRESS int_type_handle
TypeHandle EXPCL_PANDAEXPRESS short_type_handle
TypeHandle EXPCL_PANDAEXPRESS char_type_handle
TypeHandle EXPCL_PANDAEXPRESS bool_type_handle
TypeHandle EXPCL_PANDAEXPRESS double_type_handle
TypeHandle EXPCL_PANDAEXPRESS float_type_handle
TypeHandle long_p_type_handle
TypeHandle int_p_type_handle
TypeHandle short_p_type_handle
TypeHandle char_p_type_handle
TypeHandle bool_p_type_handle
TypeHandle double_p_type_handle
TypeHandle float_p_type_handle
TypeHandle void_p_type_handle


Detailed Description

Definition in file register_type.h.


Define Documentation

#define do_init_type type   )     _do_init_type((const type *)0)
 

Definition at line 299 of file register_type.h.

Referenced by SimpleLerpFunctor< LVecBase4f >::get_class_type().

#define get_type_handle type   )     _get_type_handle((const type *)0)
 

Definition at line 212 of file register_type.h.

Referenced by MovingPart< SwitchType >::MovingPart().


Function Documentation

template<>
void _do_init_type const void *const *   )  [inline]
 

Definition at line 295 of file register_type.h.

template<>
void _do_init_type const float *const *   )  [inline]
 

Definition at line 290 of file register_type.h.

template<>
void _do_init_type const double *const *   )  [inline]
 

Definition at line 285 of file register_type.h.

template<>
void _do_init_type const bool *const *   )  [inline]
 

Definition at line 280 of file register_type.h.

template<>
void _do_init_type const char *const *   )  [inline]
 

Definition at line 275 of file register_type.h.

References init_system_type_handles(), and INLINE.

template<>
void _do_init_type const short *const *   )  [inline]
 

Definition at line 270 of file register_type.h.

References init_system_type_handles(), and INLINE.

template<>
void _do_init_type const int *const *   )  [inline]
 

Definition at line 265 of file register_type.h.

References init_system_type_handles(), and INLINE.

template<>
void _do_init_type const long *const *   )  [inline]
 

Definition at line 260 of file register_type.h.

References init_system_type_handles(), and INLINE.

template<>
void _do_init_type const float *   )  [inline]
 

Definition at line 255 of file register_type.h.

References init_system_type_handles(), and INLINE.

template<>
void _do_init_type const double *   )  [inline]
 

Definition at line 250 of file register_type.h.

References init_system_type_handles(), and INLINE.

template<>
void _do_init_type const bool *   )  [inline]
 

Definition at line 245 of file register_type.h.

References init_system_type_handles(), and INLINE.

template<>
void _do_init_type const char *   )  [inline]
 

Definition at line 240 of file register_type.h.

References init_system_type_handles(), and INLINE.

template<>
void _do_init_type const short *   )  [inline]
 

Definition at line 235 of file register_type.h.

References init_system_type_handles(), and INLINE.

template<>
void _do_init_type const int *   )  [inline]
 

Definition at line 230 of file register_type.h.

References init_system_type_handles(), and INLINE.

template<>
void _do_init_type const long *   )  [inline]
 

Definition at line 225 of file register_type.h.

References init_system_type_handles(), and INLINE.

template<class T>
void _do_init_type const T *   )  [inline]
 

Definition at line 220 of file register_type.h.

References init_system_type_handles(), and INLINE.

template<>
TypeHandle _get_type_handle const void *const *   )  [inline]
 

Definition at line 205 of file register_type.h.

References init_system_type_handles(), and INLINE.

template<>
TypeHandle _get_type_handle const float *const *   )  [inline]
 

Definition at line 200 of file register_type.h.

References INLINE.

template<>
TypeHandle _get_type_handle const double *const *   )  [inline]
 

Definition at line 195 of file register_type.h.

template<>
TypeHandle _get_type_handle const bool *const *   )  [inline]
 

Definition at line 190 of file register_type.h.

template<>
TypeHandle _get_type_handle const char *const *   )  [inline]
 

Definition at line 185 of file register_type.h.

References INLINE, and void_p_type_handle.

template<>
TypeHandle _get_type_handle const short *const *   )  [inline]
 

Definition at line 180 of file register_type.h.

References float_p_type_handle, and INLINE.

template<>
TypeHandle _get_type_handle const int *const *   )  [inline]
 

Definition at line 175 of file register_type.h.

References double_p_type_handle, and INLINE.

template<>
TypeHandle _get_type_handle const long *const *   )  [inline]
 

Definition at line 170 of file register_type.h.

References bool_p_type_handle, and INLINE.

template<>
TypeHandle _get_type_handle const float *   )  [inline]
 

Definition at line 165 of file register_type.h.

References char_p_type_handle, and INLINE.

template<>
TypeHandle _get_type_handle const double *   )  [inline]
 

Definition at line 160 of file register_type.h.

References INLINE, and short_p_type_handle.

template<>
TypeHandle _get_type_handle const bool *   )  [inline]
 

Definition at line 155 of file register_type.h.

References INLINE, and int_p_type_handle.

template<>
TypeHandle _get_type_handle const char *   )  [inline]
 

Definition at line 150 of file register_type.h.

References INLINE, and long_p_type_handle.

template<>
TypeHandle _get_type_handle const short *   )  [inline]
 

Definition at line 145 of file register_type.h.

References float_type_handle, and INLINE.

template<>
TypeHandle _get_type_handle const int *   )  [inline]
 

Definition at line 140 of file register_type.h.

References double_type_handle, and INLINE.

template<>
TypeHandle _get_type_handle const long *   )  [inline]
 

Definition at line 135 of file register_type.h.

References bool_type_handle, and INLINE.

template<class T>
TypeHandle _get_type_handle const T *   )  [inline]
 

Definition at line 130 of file register_type.h.

References char_type_handle, and INLINE.

void EXPCL_PANDAEXPRESS init_system_type_handles  ) 
 

Definition at line 42 of file register_type.cxx.

TypeHandle register_dynamic_type const string &  name,
TypeHandle  parent1,
TypeHandle  parent2,
TypeHandle  parent3,
TypeHandle  parent4
[inline]
 

Definition at line 128 of file register_type.I.

TypeHandle register_dynamic_type const string &  name,
TypeHandle  parent1,
TypeHandle  parent2,
TypeHandle  parent3
[inline]
 

Definition at line 117 of file register_type.I.

TypeHandle register_dynamic_type const string &  name,
TypeHandle  parent1,
TypeHandle  parent2
[inline]
 

Definition at line 108 of file register_type.I.

TypeHandle register_dynamic_type const string &  name,
TypeHandle  parent1
[inline]
 

Definition at line 101 of file register_type.I.

TypeHandle register_dynamic_type const string &  name  )  [inline]
 

This is essentially similar to register_type(), except that it doesn't store a reference to any TypeHandle passed in and it therefore doesn't complain if the type is registered more than once to different TypeHandle reference.

Definition at line 97 of file register_type.I.

Referenced by EventStoreValueBase::init_type().

void register_type TypeHandle type_handle,
const string &  name,
TypeHandle  parent1,
TypeHandle  parent2,
TypeHandle  parent3,
TypeHandle  parent4
[inline]
 

Definition at line 70 of file register_type.I.

References INLINE, TypeRegistry::ptr(), and TypeRegistry::register_dynamic_type().

Referenced by ThisThingie::get_class_type(), TheOtherThingie::get_class_type(), Lerp::get_class_type(), AutonomousLerp::get_class_type(), LerpBlendType::get_class_type(), EaseInBlendType::get_class_type(), EaseOutBlendType::get_class_type(), EaseInOutBlendType::get_class_type(), NoBlendType::get_class_type(), LerpFunctor::get_class_type(), MultiLerpFunctor::get_class_type(), Person::get_class_type(), Parent::get_class_type(), Child::get_class_type(), FrustumShader::get_num_frusta(), AnimChannel< ACMatrixSwitchType >::get_type(), Character::get_type(), CharacterJoint::get_type(), CharacterJointBundle::get_type(), VirtualFile::get_type(), VirtualFileMountMultifile::get_type(), VirtualFileMountSystem::get_type(), BamReaderParam::get_type(), HprScaleLerpFunctor::HprScaleLerpFunctor(), BitMask< WordType, num_bits >::operator^(), and OutlineShader::set_color().

void register_type TypeHandle type_handle,
const string &  name,
TypeHandle  parent1,
TypeHandle  parent2,
TypeHandle  parent3
[inline]
 

Definition at line 60 of file register_type.I.

void register_type TypeHandle type_handle,
const string &  name,
TypeHandle  parent1,
TypeHandle  parent2
[inline]
 

Definition at line 52 of file register_type.I.

void register_type TypeHandle type_handle,
const string &  name,
TypeHandle  parent1
[inline]
 

Definition at line 45 of file register_type.I.

void register_type TypeHandle type_handle,
const string &  name
[inline]
 

This inline function is just a convenient way to call TypeRegistry::register_type(), along with zero to four record_derivation()s.

If for some reason you have a class that has more than four base classes (you're insane!), then you will need to call Register() and record_derivation() yourself.

Definition at line 41 of file register_type.I.


Variable Documentation

TypeHandle bool_p_type_handle
 

Definition at line 118 of file register_type.h.

Referenced by _get_type_handle().

TypeHandle EXPCL_PANDAEXPRESS bool_type_handle
 

Definition at line 110 of file register_type.h.

Referenced by _get_type_handle().

TypeHandle char_p_type_handle
 

Definition at line 117 of file register_type.h.

Referenced by _get_type_handle().

TypeHandle EXPCL_PANDAEXPRESS char_type_handle
 

Definition at line 109 of file register_type.h.

Referenced by _get_type_handle().

TypeHandle double_p_type_handle
 

Definition at line 119 of file register_type.h.

Referenced by _get_type_handle().

TypeHandle EXPCL_PANDAEXPRESS double_type_handle
 

Definition at line 111 of file register_type.h.

Referenced by _get_type_handle().

TypeHandle float_p_type_handle
 

Definition at line 120 of file register_type.h.

Referenced by _get_type_handle().

TypeHandle EXPCL_PANDAEXPRESS float_type_handle
 

Definition at line 112 of file register_type.h.

Referenced by _get_type_handle().

TypeHandle int_p_type_handle
 

Definition at line 115 of file register_type.h.

Referenced by _get_type_handle().

TypeHandle EXPCL_PANDAEXPRESS int_type_handle
 

Definition at line 107 of file register_type.h.

TypeHandle long_p_type_handle
 

Definition at line 114 of file register_type.h.

Referenced by _get_type_handle().

TypeHandle EXPCL_PANDAEXPRESS long_type_handle
 

Definition at line 106 of file register_type.h.

TypeHandle short_p_type_handle
 

Definition at line 116 of file register_type.h.

Referenced by _get_type_handle().

TypeHandle EXPCL_PANDAEXPRESS short_type_handle
 

Definition at line 108 of file register_type.h.

TypeHandle void_p_type_handle
 

Definition at line 121 of file register_type.h.

Referenced by _get_type_handle().


Generated on Fri May 2 00:45:34 2003 for Panda by doxygen1.3