EHS
ehs::BaseObj Class Reference

#include <BaseObj.h>

Inheritance diagram for ehs::BaseObj:
ehs::FontAtlas ehs::Img ehs::Mdl ehs::Mesh ehs::Resource ehs::Audio

Public Member Functions

virtual ~BaseObj ()
 
 BaseObj ()
 
 BaseObj (BaseObj &&base) noexcept
 
 BaseObj (const BaseObj &base)
 
BaseObjoperator= (BaseObj &&base) noexcept
 
BaseObjoperator= (const BaseObj &base)
 
bool operator== (const BaseObj &base) const
 
bool operator!= (const BaseObj &base) const
 
const TypeGetHierarchy () const
 
UInt_64 GetHierarchySize () const
 
bool HasType (UInt_64 typeHashId) const
 
bool HasType (const Char_8 *typeId) const
 
Type GetType () const
 
UInt_64 GetTypeIdSize () const
 
const Char_8GetTypeId () const
 
UInt_64 GetTypeHashId () const
 
virtual BaseObjClone () const
 

Protected Member Functions

void AddType (const Char_8 *id)
 

Constructor & Destructor Documentation

◆ ~BaseObj()

ehs::BaseObj::~BaseObj ( )
virtual

◆ BaseObj() [1/3]

ehs::BaseObj::BaseObj ( )

◆ BaseObj() [2/3]

ehs::BaseObj::BaseObj ( BaseObj &&  base)
noexcept

◆ BaseObj() [3/3]

ehs::BaseObj::BaseObj ( const BaseObj base)

Member Function Documentation

◆ AddType()

void ehs::BaseObj::AddType ( const Char_8 id)
protected

Adds the class name to the class hierarchy.

Parameters
[in]idThe name of the class to add.

◆ Clone()

BaseObj * ehs::BaseObj::Clone ( ) const
virtual

Clones the object onto the heap.

Returns
The cloned object.

Reimplemented in ehs::Resource.

◆ GetHierarchy()

const Type * ehs::BaseObj::GetHierarchy ( ) const

Retrieves the class hierarchy.

Returns
The hierarchy array.

◆ GetHierarchySize()

UInt_64 ehs::BaseObj::GetHierarchySize ( ) const

Retrieves the class hierarchy size.

Returns
The hierarchy size.

◆ GetType()

Type ehs::BaseObj::GetType ( ) const

Retrieves the top class' information.

Returns
The Type object containing the class information.

◆ GetTypeHashId()

UInt_64 ehs::BaseObj::GetTypeHashId ( ) const

Retrieves the top class' hashed name.

Returns
The hashed name.

◆ GetTypeId()

const Char_8 * ehs::BaseObj::GetTypeId ( ) const

Retrieves the top class' string name.

Returns
The name.

◆ GetTypeIdSize()

UInt_64 ehs::BaseObj::GetTypeIdSize ( ) const

Retrieves the top class' string name, size.

Returns
The name size.

◆ HasType() [1/2]

bool ehs::BaseObj::HasType ( const Char_8 typeId) const

Checks if this class derives from another.

Parameters
[in]typeIdThe type id to look for.
Returns
True if found.

◆ HasType() [2/2]

bool ehs::BaseObj::HasType ( UInt_64  typeHashId) const

Checks if this class derives from another.

Parameters
[in]typeHashIdThe type hash id to look for.
Returns
True if found.

◆ operator!=()

bool ehs::BaseObj::operator!= ( const BaseObj base) const

◆ operator=() [1/2]

BaseObj & ehs::BaseObj::operator= ( BaseObj &&  base)
noexcept

◆ operator=() [2/2]

BaseObj & ehs::BaseObj::operator= ( const BaseObj base)

◆ operator==()

bool ehs::BaseObj::operator== ( const BaseObj base) const

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