Visualization Library 2.0.0

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | List of all members
vl::TypeInfo Struct Reference

Represents a class type. More...

#include <TypeInfo.hpp>

Public Member Functions

 TypeInfo (const char *name)
 Constructor. More...
 
bool operator== (const TypeInfo &other) const
 Equal operator. More...
 
bool operator< (const TypeInfo &other) const
 Less operator. More...
 
const char * name () const
 The name of the class including the namespace. More...
 
u32 hash () const
 The 32 bit hash of the name of the class including the namespace. More...
 

Detailed Description

Represents a class type.

Definition at line 46 of file TypeInfo.hpp.

Constructor & Destructor Documentation

◆ TypeInfo()

vl::TypeInfo::TypeInfo ( const char *  name)
inline

Constructor.

Definition at line 49 of file TypeInfo.hpp.

References vl::MurmurHash3_x86_32(), and name().

Member Function Documentation

◆ hash()

u32 vl::TypeInfo::hash ( ) const
inline

The 32 bit hash of the name of the class including the namespace.

Definition at line 68 of file TypeInfo.hpp.

◆ name()

const char* vl::TypeInfo::name ( ) const
inline

The name of the class including the namespace.

Definition at line 65 of file TypeInfo.hpp.

Referenced by vlX::Registry::registerClassWrapper(), and TypeInfo().

◆ operator<()

bool vl::TypeInfo::operator< ( const TypeInfo other) const
inline

Less operator.

Definition at line 62 of file TypeInfo.hpp.

◆ operator==()

bool vl::TypeInfo::operator== ( const TypeInfo other) const
inline

Equal operator.

Definition at line 59 of file TypeInfo.hpp.


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