Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::typeindex::stl_type_index Class Reference

This class is a wrapper around std::type_info, that workarounds issues and provides much more rich interface. More...

#include <stl_type_index.hpp>

Inheritance diagram for boost::typeindex::stl_type_index:
Collaboration diagram for boost::typeindex::stl_type_index:

Public Types

typedef std::type_info type_info_t
 

Public Member Functions

 stl_type_index () BOOST_NOEXCEPT
 
 stl_type_index (const type_info_t &data) BOOST_NOEXCEPT
 
const type_info_ttype_info () const BOOST_NOEXCEPT
 
const char * raw_name () const BOOST_NOEXCEPT
 
const char * name () const BOOST_NOEXCEPT
 
std::string pretty_name () const
 
std::size_t hash_code () const BOOST_NOEXCEPT
 
bool equal (const stl_type_index &rhs) const BOOST_NOEXCEPT
 
bool before (const stl_type_index &rhs) const BOOST_NOEXCEPT
 

Static Public Member Functions

template<class T >
static stl_type_index type_id () BOOST_NOEXCEPT
 
template<class T >
static stl_type_index type_id_with_cvr () BOOST_NOEXCEPT
 
template<class T >
static stl_type_index type_id_runtime (const T &value) BOOST_NOEXCEPT
 

Detailed Description

This class is a wrapper around std::type_info, that workarounds issues and provides much more rich interface.

For description of functions see type_index_facade.

This class requires typeid() to work. For cases when RTTI is disabled see ctti_type_index.

Member Typedef Documentation

Constructor & Destructor Documentation

boost::typeindex::stl_type_index::stl_type_index ( )
inline
boost::typeindex::stl_type_index::stl_type_index ( const type_info_t data)
inline

Member Function Documentation

bool boost::typeindex::stl_type_index::before ( const stl_type_index rhs) const
inline

References raw_name().

bool boost::typeindex::stl_type_index::equal ( const stl_type_index rhs) const
inline

References raw_name().

std::size_t boost::typeindex::stl_type_index::hash_code ( ) const
inline

References boost::hash_range(), and raw_name().

const char * boost::typeindex::stl_type_index::name ( ) const
inline
std::string boost::typeindex::stl_type_index::pretty_name ( ) const
inline
const char * boost::typeindex::stl_type_index::raw_name ( ) const
inline

Referenced by before(), equal(), and hash_code().

template<class T >
stl_type_index boost::typeindex::stl_type_index::type_id ( )
inlinestatic
template<class T >
stl_type_index boost::typeindex::stl_type_index::type_id_runtime ( const T value)
inlinestatic
template<class T >
stl_type_index boost::typeindex::stl_type_index::type_id_with_cvr ( )
inlinestatic
const stl_type_index::type_info_t & boost::typeindex::stl_type_index::type_info ( ) const
inline

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