STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
std::type_info Class Reference

Part of RTTI. More...

Public Member Functions

virtual ~type_info ()
 
const char * name () const _GLIBCXX_NOEXCEPT
 
bool before (const type_info &__arg) const _GLIBCXX_NOEXCEPT
 
bool operator== (const type_info &__arg) const _GLIBCXX_NOEXCEPT
 
bool operator!= (const type_info &__arg) const _GLIBCXX_NOEXCEPT
 
virtual bool __is_pointer_p () const
 
virtual bool __is_function_p () const
 
virtual bool __do_catch (const type_info *__thr_type, void **__thr_obj, unsigned __outer) const
 
virtual bool __do_upcast (const __cxxabiv1::__class_type_info *__target, void **__obj_ptr) const
 

Protected Member Functions

 type_info (const char *__n)
 

Protected Attributes

const char * __name
 

Private Member Functions

type_infooperator= (const type_info &)
 Assigning type_info is not supported. More...
 
 type_info (const type_info &)
 

Detailed Description

Part of RTTI.

The type_info class describes type information generated by an implementation.

Constructor & Destructor Documentation

virtual std::type_info::~type_info ( )
virtual

Destructor first. Being the first non-inline virtual function, this controls in which translation unit the vtable is emitted. The compiler makes use of that information to know where to emit the runtime-mandated type_info structures in the new-abi.

std::type_info::type_info ( const char *  __n)
inlineexplicitprotected
173 : __name(__n) { }
const char * __name
Definition: typeinfo:171
std::type_info::type_info ( const type_info )
private

Member Function Documentation

virtual bool std::type_info::__do_catch ( const type_info __thr_type,
void **  __thr_obj,
unsigned  __outer 
) const
virtual
virtual bool std::type_info::__do_upcast ( const __cxxabiv1::__class_type_info *  __target,
void **  __obj_ptr 
) const
virtual
virtual bool std::type_info::__is_function_p ( ) const
virtual
virtual bool std::type_info::__is_pointer_p ( ) const
virtual
bool std::type_info::before ( const type_info __arg) const
const char* std::type_info::name ( ) const
inline

Returns an implementation-defined byte string; this is not portable between compilers!

100  { return __name[0] == '*' ? __name + 1 : __name; }
const char * __name
Definition: typeinfo:171
bool std::type_info::operator!= ( const type_info __arg) const
inline
137  { return !operator==(__arg); }
bool operator==(const type_info &__arg) const _GLIBCXX_NOEXCEPT
type_info& std::type_info::operator= ( const type_info )
private

Assigning type_info is not supported.

bool std::type_info::operator== ( const type_info __arg) const

Member Data Documentation

const char* std::type_info::__name
protected

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