Develop Biology
The language of life
|
Functions | |
template<typename T > | |
T & | Dereference (T &t) |
template<typename T > | |
T & | Dereference (T *t) |
template<typename T > | |
bool | IsPointer () |
template<typename T > | |
bool | IsPointer (const T t) |
template<typename T > | |
bool | IsPrimitive () |
template<typename T > | |
bool | IsPrimitive (const T t) |
|
inline |
Maybe a helper method? This is currently unused.
T |
t |
Definition at line 82 of file IsPointer.h.
|
inline |
Maybe a helper method? This is currently unused.
T |
t |
Definition at line 95 of file IsPointer.h.
|
inline |
Check whether or not T is a pointer
T |
Definition at line 51 of file IsPointer.h.
|
inline |
Ease of use method for passing T as arg.
T |
t |
Definition at line 69 of file IsPointer.h.
bool bio::utility::IsPrimitive | ( | ) |
IsPrimitive without an arg is the same as that with, except no automatic pointer dereferencing can be done. If we're using C++98 and don't have an interface for T, we'll try looking for std:: in its typename.
T |
Definition at line 78 of file IsPrimitive.h.
bool bio::utility::IsPrimitive | ( | const T | t | ) |
IsPrimitive is a bit more complex than it might need to be but the features, while slow, should be robust. First, if T is a pointer, we'll dereference it and try again until it is not. Second, if we're using C++98 and don't have an interface for T, we'll try looking for std:: in its typename.
T |
t |
Definition at line 57 of file IsPrimitive.h.
References BIO_SANITIZE_AT_SAFETY_LEVEL_2, and IsPrimitive().
Referenced by IsPrimitive().