#include "pandabase.h"
#include "typeHandle.h"
#include "typedObject.h"
#include "dcast.T"
Go to the source code of this file.
Defines | |
#define | DCAST(want_type, pointer) _dcast((want_type*)0, pointer) |
#define | DCAST_INTO_V(to_pointer, from_pointer) |
#define | DCAST_INTO_R(to_pointer, from_pointer, return_value) |
Functions | |
template<class WantType> WantType * | _dcast (WantType *, TypedObject *ptr) |
template<class WantType> const WantType * | _dcast (WantType *, const TypedObject *ptr) |
template<class WantType> WantType * | _dcast_ref (WantType *&, TypedObject *ptr) |
template<class WantType> const WantType * | _dcast_ref (WantType *&, const TypedObject *ptr) |
EXPCL_PANDAEXPRESS bool | _dcast_verify (TypeHandle want_handle, size_t want_size, const TypedObject *ptr) |
This function performs the actual check that the indicated TypedObject pointer is of the intended type. |
Definition in file dcast.h.
|
|
Value: { \ (to_pointer) = _dcast_ref(to_pointer, from_pointer); \ nassertr((void *)(to_pointer) != (void *)NULL, return_value); \ } Definition at line 87 of file dcast.h. Referenced by LightAttrib::compare_to_impl(), CullFaceAttrib::compare_to_impl(), ClipPlaneAttrib::compare_to_impl(), EggNode::determine_draw_order(), PGItem::has_cull_callback(), CullFaceAttrib::issue(), TextureAttrib::output(), TexMatrixAttrib::output(), RenderModeAttrib::output(), MaterialAttrib::output(), LightAttrib::output(), FogAttrib::output(), DepthWriteAttrib::output(), DepthTestAttrib::output(), DepthOffsetAttrib::output(), CullBinAttrib::output(), ColorWriteAttrib::output(), ColorScaleAttrib::output(), ColorAttrib::output(), ClipPlaneAttrib::output(), AlphaTestAttrib::output(), NodePath::set_transparency(), and CollisionPolygon::test_intersection_from_ray(). |
|
Value: { \ (to_pointer) = _dcast_ref(to_pointer, from_pointer); \ nassertv((void *)(to_pointer) != (void *)NULL); \ } Definition at line 81 of file dcast.h. Referenced by Trackball::apply(), PandaFramework::clear_highlight(), PandaFramework::do_enable_default_keys(), DisplayRegion::get_layer(), NodePath::get_transparency(), MouseWatcher::global_keyboard_press(), ButtonThrower::has_throw_button(), PandaFramework::main_loop(), PandaFramework::make_default_pipe(), PandaFramework::make_window_framework(), CollisionLevelState::reserve(), Transform2SG::set_velocity_node(), Character::update(), glxGraphicsWindow::~glxGraphicsWindow(), and wglGraphicsWindow::~wglGraphicsWindow(). |
|
|
|
|
|
|
|
|
|
This function performs the actual check that the indicated TypedObject pointer is of the intended type.
|