Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Gray::cTypeInfo Class Reference

#include <cTypeInfo.h>

Inheritance diagram for Gray::cTypeInfo:

Public Member Functions

size_t get_HashCode () const noexcept
 
const char * get_Name () const noexcept
 
const char * GetMemberName (int i) const
 

Friends

class cTypeInfoTests
 

Detailed Description

Get reflection info about a C++ class that has virtuals and RTTI. Read its vtable. (_CPPRTTI) Supplement/helper for built in TYPEINFO_t via typeid()

Note
ASSUME TYPEINFO_t/type_info Always supports name(), hashcode() ?
Todo:
cTypeInfo List of virtual members from vtable.

Member Function Documentation

◆ get_HashCode()

size_t Gray::cTypeInfo::get_HashCode ( ) const
inlinenoexcept

◆ get_Name()

const char* Gray::cTypeInfo::get_Name ( ) const
inlinenoexcept

◆ GetMemberName()

const char * Gray::cTypeInfo::GetMemberName ( int  i) const

read the vptr/vtable to get a list of names of the virtual exposed members.

Todo:
Get List of members.
Returns
nullptr = end of list.

Friends And Related Function Documentation

◆ cTypeInfoTests

friend class cTypeInfoTests
friend

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