Panda3D
|
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...
#include "pandabase.h"
#include "typeHandle.h"
#include "typedObject.h"
#include "config_express.h"
#include "dcast.T"
Go to the source code of this file.
Macros | |
#define | DCAST(want_type, pointer) _dcast((want_type*)0, pointer) |
#define | DCAST_INTO_R(to_pointer, from_pointer, return_value) |
#define | DCAST_INTO_V(to_pointer, from_pointer) |
Functions | |
template<class WantType > | |
const WantType * | _dcast (WantType *, const TypedObject *ptr) |
template<class WantType > | |
WantType * | _dcast (WantType *, TypedObject *ptr) |
template<class WantType > | |
const WantType * | _dcast_ref (WantType *&, const TypedObject *ptr) |
template<class WantType > | |
WantType * | _dcast_ref (WantType *&, TypedObject *ptr) |
EXPCL_PANDA_EXPRESS 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. More... | |
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."
Definition in file dcast.h.
#define DCAST_INTO_R | ( | to_pointer, | |
from_pointer, | |||
return_value | |||
) |
#define DCAST_INTO_V | ( | to_pointer, | |
from_pointer | |||
) |
EXPCL_PANDA_EXPRESS 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.