Kicking it Olde Sküül! Burgerlib on Github Follow Olde Sküül on Twitter Burgerbecky on LinkedIn Burgerbecky on LinkedIn
Loading...
Searching...
No Matches
Burger::Base Class Reference

Base class for virtual destructor. More...

Inheritance diagram for Burger::Base:
Collaboration diagram for Burger::Base:

Public Member Functions

const char * get_class_name (void) const noexcept
 Get the name of the class.
 
virtual const Burger::StaticRTTIget_StaticRTTI (void) const noexcept
 Get the description to the class.
 
virtual ~Base () noexcept=default
 Destructor.
 

Static Public Attributes

static const Burger::StaticRTTI g_StaticRTTI
 The global description of the class.
 

Detailed Description

Base class for virtual destructor.


Burgerlib has numerous pointers to unknown classes that are up cast from Base if they are actually used. By only knowing a generic, empty base class, no code bloat is needed to manage destructor/constructor chains because of a class reference to something that uses OpenGL, DirectX or any other high overhead functionality. The only code linked in is the generic destructor.

Constructor & Destructor Documentation

◆ ~Base()

virtual Burger::Base::~Base ( )
virtualdefaultnoexcept

Destructor.


Does absolutely nothing

Member Function Documentation

◆ get_class_name()

const char * Burger::Base::get_class_name ( void ) const
inlinenoexcept

Get the name of the class.


This inline function will pull the virtually declared pointer to the StaticRTTI instance that has the name of the class. Due to it being virtual, it will be the name of the most derived class.

Returns
Pointer to a global, read only "C" string with the true name of the class

◆ get_StaticRTTI()

virtual const Burger::StaticRTTI * Burger::Base::get_StaticRTTI ( void ) const
virtualnoexcept

Get the description to the class.


This virtual function will pull the pointer to the StaticRTTI instance that has the name of the class. Due to it being virtual, it will be the name of the most derived class.

Returns
Pointer to a global, read only instance of StaticRTTI for the true class

Reimplemented in Burger::AllocatorANSI, Burger::AllocatorBase, Burger::AllocatorHandle, Burger::CommandParameter, Burger::Compress, Burger::CompressDeflate, Burger::CompressILBMRLE, Burger::CompressLZSS, Burger::ConsoleApp, Burger::Decompress16BitBEAudio, Burger::Decompress16BitLEAudio, Burger::Decompress32BitBEAudio, Burger::Decompress32BitLEAudio, Burger::Decompress, Burger::DecompressALaw, Burger::DecompressAudio, Burger::DecompressDeflate, Burger::DecompressILBMRLE, Burger::DecompressLZSS, Burger::DecompressMace3, Burger::DecompressMace6, Burger::DecompressMicrosoftADPCM, Burger::DecompressMP3, Burger::DecompressSigned8BitAudio, Burger::DecompressULaw, Burger::DecompressUnsigned8BitAudio, Burger::Display, Burger::DisplayDirectX11, Burger::DisplayDirectX9, Burger::DisplayObject, Burger::DisplayOpenGL, Burger::DisplayOpenGLSoftware8, Burger::Effect2D, Burger::Effect2DDX9, Burger::Effect2DOpenGL, Burger::Effect, Burger::EffectPositionColorTexture, Burger::EffectPositionColorTextureDX9, Burger::EffectPositionColorTextureOpenGL, Burger::EffectPositionTexture, Burger::EffectPositionTextureDX9, Burger::EffectPositionTextureOpenGL, Burger::Flash::ActionScriptProperty, Burger::Flash::BaseExecute, Burger::Flash::SharedBuffer, Burger::Font4Bit, Burger::Font, Burger::GameApp, Burger::Joypad, Burger::Keyboard, Burger::Mouse, Burger::NetPlay, Burger::NetworkModule, Burger::NetworkModuleSettings, Burger::Random, Burger::RandomBase, Burger::RandomMersenneTwist, Burger::ReferenceCounter, Burger::Shader2DCColor, Burger::Shader2DCColorDX9, Burger::Shader2DCColorOpenGL, Burger::Shader2DColorVertex, Burger::Shader2DColorVertexDX9, Burger::Shader2DColorVertexOpenGL, Burger::SoundBufferRez, Burger::SoundManager::Buffer, Burger::SoundManager, Burger::Steam, Burger::Texture, Burger::TextureDirectX9, Burger::TextureOpenGL, Burger::VertexBuffer, Burger::VertexBufferDirectX9, Burger::VertexBufferOpenGL, and Burger::WeakAndStrongBase.

Member Data Documentation

◆ g_StaticRTTI

const Burger::StaticRTTI Burger::Base::g_StaticRTTI
static

The global description of the class.


This record contains the name of this class and a reference to the parent (If any)