FX::Generic::typeInfo< type > Struct Template Reference
[Generic Tools in TnFOX]

#include <FXGenericTools.h>

Inheritance diagram for FX::Generic::typeInfo< type >:

FX::Generic::typeInfoBase List of all members.

Detailed Description

template<typename type>
struct FX::Generic::typeInfo< type >

Enhanced version of std::type_info.

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 FXStringname () const
const FXStringmangled () const
FXString asIdentifier () const
FXString asLeafIdentifier () const

Friends

FXAPI FXStreamoperator<< (FXStream &s, const typeInfoBase &i)
FXAPI FXStreamoperator>> (FXStream &s, typeInfoBase &i)


The documentation for this struct was generated from the following file:
(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:37:57 2009 for TnFOX by doxygen v1.4.7