Panda3D
Functions
register_type.I File Reference

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...

Go to the source code of this file.

Functions

TypeHandle register_dynamic_type (const std::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. More...
 
TypeHandle register_dynamic_type (const std::string &name, TypeHandle parent1)
 
TypeHandle register_dynamic_type (const std::string &name, TypeHandle parent1, TypeHandle parent2)
 
TypeHandle register_dynamic_type (const std::string &name, TypeHandle parent1, TypeHandle parent2, TypeHandle parent3)
 
TypeHandle register_dynamic_type (const std::string &name, TypeHandle parent1, TypeHandle parent2, TypeHandle parent3, TypeHandle parent4)
 
void register_type (TypeHandle &type_handle, const std::string &name)
 This inline function is just a convenient way to call TypeRegistry::register_type(), along with zero to four record_derivation()s. More...
 
void register_type (TypeHandle &type_handle, const std::string &name, TypeHandle parent1)
 
void register_type (TypeHandle &type_handle, const std::string &name, TypeHandle parent1, TypeHandle parent2)
 
void register_type (TypeHandle &type_handle, const std::string &name, TypeHandle parent1, TypeHandle parent2, TypeHandle parent3)
 
void register_type (TypeHandle &type_handle, const std::string &name, TypeHandle parent1, TypeHandle parent2, TypeHandle parent3, TypeHandle parent4)
 

Detailed Description

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.

All rights reserved.

All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."

Author
drose
Date
2001-08-06

Definition in file register_type.I.

Function Documentation

◆ register_dynamic_type()

TypeHandle register_dynamic_type ( const std::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 69 of file register_type.I.

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

◆ register_type()

void register_type ( TypeHandle type_handle,
const std::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 22 of file register_type.I.

References TypeRegistry::ptr(), and TypeRegistry::register_type().

Referenced by TypedObject::init_type().