GameKit  0.0.1a
C++ gamedev tools
Public Member Functions | Private Attributes | List of all members
gk::SceneObject Class Reference

#include <SceneObject.hpp>

Public Member Functions

 SceneObject (const std::string &name="null", const std::string &type="null")
 
template<typename T , typename... Args>
T & set (Args &&...args)
 
template<typename T >
bool has () const
 
template<typename T >
T & get () const
 
template<typename T >
void remove ()
 
void debug () const
 
const std::string & name () const
 
const std::string & type () const
 

Private Attributes

std::string m_name
 
std::string m_type
 
std::unordered_map< size_t, std::shared_ptr< void > > m_components
 

Detailed Description

Definition at line 25 of file SceneObject.hpp.

Constructor & Destructor Documentation

§ SceneObject()

gk::SceneObject::SceneObject ( const std::string &  name = "null",
const std::string &  type = "null" 
)
inline

Definition at line 27 of file SceneObject.hpp.

Member Function Documentation

§ debug()

void gk::SceneObject::debug ( ) const
inline

Definition at line 56 of file SceneObject.hpp.

§ get()

template<typename T >
T& gk::SceneObject::get ( ) const
inline

Definition at line 42 of file SceneObject.hpp.

§ has()

template<typename T >
bool gk::SceneObject::has ( ) const
inline

Definition at line 37 of file SceneObject.hpp.

§ name()

const std::string& gk::SceneObject::name ( ) const
inline

Definition at line 69 of file SceneObject.hpp.

§ remove()

template<typename T >
void gk::SceneObject::remove ( )
inline

Definition at line 52 of file SceneObject.hpp.

§ set()

template<typename T , typename... Args>
T& gk::SceneObject::set ( Args &&...  args)
inline

Definition at line 31 of file SceneObject.hpp.

§ type()

const std::string& gk::SceneObject::type ( ) const
inline

Definition at line 70 of file SceneObject.hpp.

Member Data Documentation

§ m_components

std::unordered_map<size_t, std::shared_ptr<void> > gk::SceneObject::m_components
private

Definition at line 76 of file SceneObject.hpp.

§ m_name

std::string gk::SceneObject::m_name
private

Definition at line 73 of file SceneObject.hpp.

§ m_type

std::string gk::SceneObject::m_type
private

Definition at line 74 of file SceneObject.hpp.


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