libcppa
Version 0.1
|
#include <abstract_uniform_type_info.hpp>
Public Member Functions | |
bool | equals (const std::type_info &tinfo) const |
Protected Member Functions | |
bool | equals (const void *lhs, const void *rhs) const |
void * | new_instance (const void *ptr) const |
void | delete_instance (void *instance) const |
Implements all pure virtual functions of uniform_type_info except serialize() and deserialize().
void cppa::util::abstract_uniform_type_info< T >::delete_instance | ( | void * | instance | ) | const [protected, virtual] |
Casts instance
to the native type and deletes it.
instance | Instance of this type. |
instance
has the type of this
. Implements cppa::uniform_type_info.
bool cppa::util::abstract_uniform_type_info< T >::equals | ( | const void * | instance1, |
const void * | instance2 | ||
) | const [protected, virtual] |
Compares two instances of this type.
instance1 | Left hand operand. |
instance2 | Right hand operand. |
true
if *instance1 == *instance2
. instance1
and instance2
have the type of this
. Implements cppa::uniform_type_info.
bool cppa::util::abstract_uniform_type_info< T >::equals | ( | const std::type_info & | tinfo | ) | const [virtual] |
Determines if this uniform_type_info describes the same type than tinfo
.
true
if tinfo
describes the same type as this
. Implements cppa::uniform_type_info.
void* cppa::util::abstract_uniform_type_info< T >::new_instance | ( | const void * | instance | ) | const [protected, virtual] |
Creates an instance of this type, either as a copy of instance
or initialized with the default constructor if instance == nullptr
.
instance | Optional instance of this type. |
instance
or a new instance, initialized with the default constructor. instance
has the type of this
or is set to nullptr
. Implements cppa::uniform_type_info.