fw4spl
fwTools::TypeInfo Class Reference

Purpose: offer a first-class, comparable wrapper over std::type_info ( but copy construcible ) More...

#include <TypeInfo.hpp>

Public Member Functions

FWTOOLS_API TypeInfo ()
 default constructor
 
FWTOOLS_API TypeInfo (const std::type_info &)
 copy constructor
 
FWTOOLS_API TypeInfooperator= (const TypeInfo &ti)
 copy method More...
 
FWTOOLS_API const std::type_info & type_info () const
 access for the wrapped std::type_info More...
 
FWTOOLS_API operator const std::type_info & () const
 cast operator TypeInfo -> std::type_info More...
 
FWTOOLS_API bool before (const TypeInfo &rhs) const
 compatibility functions ( std::type_info like) More...
 
FWTOOLS_API const char * name () const
 compatibility functions ( std::type_info like) More...
 

Detailed Description

Purpose: offer a first-class, comparable wrapper over std::type_info ( but copy construcible )

Code imported from Loki-Library and adapted for FW4SPL

Definition at line 22 of file TypeInfo.hpp.

Member Function Documentation

bool fwTools::TypeInfo::before ( const TypeInfo rhs) const

compatibility functions ( std::type_info like)

Returns
true iff TypeInfo is "before" an other, ( ordering is defined as std::type_info::before() )

Definition at line 33 of file TypeInfo.cpp.

References SLM_ASSERT.

const char * fwTools::TypeInfo::name ( ) const

compatibility functions ( std::type_info like)

Returns
the lexical name of the typeinfo ( = td::type_info::name() )

Definition at line 50 of file TypeInfo.cpp.

References SLM_ASSERT.

FWTOOLS_API fwTools::TypeInfo::operator const std::type_info & ( ) const
inline

cast operator TypeInfo -> std::type_info

Returns
a const reference on the embedded std::type_info

Definition at line 49 of file TypeInfo.hpp.

TypeInfo & fwTools::TypeInfo::operator= ( const TypeInfo ti)

copy method

Parameters
[in]tithe TypeInfo to copy
Returns
the copied TypeInfo

Definition at line 58 of file TypeInfo.cpp.

References type_info().

+ Here is the call graph for this function:

const std::type_info & fwTools::TypeInfo::type_info ( ) const

access for the wrapped std::type_info

Returns
a const reference on the embedded std::type_info

Definition at line 42 of file TypeInfo.cpp.

References SLM_ASSERT.

Referenced by fwTools::getString(), and operator=().

+ Here is the caller graph for this function:


The documentation for this class was generated from the following files: