#include <FXGenericTools.h>
Inheritance diagram for FX::Generic::typeInfo< type >:
The C++ std::type_info
has issues on GCC when working across shared objects so you won't want to use that one, use this one instead. It furthermore provides useful conversions into suitable type-unique strings. Note that passing a type reference may not show the reference on some platforms - wrap as a parameter to a template to see these.
Obviously this requires an implementation of typeid()
and std::type_info
which return meaningful values for raw_name()
and name()
. As the C++ standard does not require it, this may not be the case.
Generic::typeInfoBase &typeinfo=Generic::typeInfo<type>();
Definition at line 427 of file FXGenericTools.h.
Public Member Functions | |
typeInfo (const type_info &ti=typeid(type)) | |
bool | operator! () const throw () |
bool | operator== (const typeInfoBase &o) const |
bool | operator!= (const typeInfoBase &o) const |
const FXString & | name () const |
const FXString & | mangled () const |
FXString | asIdentifier () const |
FXString | asLeafIdentifier () const |
Friends | |
FXAPI FXStream & | operator<< (FXStream &s, const typeInfoBase &i) |
FXAPI FXStream & | operator>> (FXStream &s, typeInfoBase &i) |