ToyMaker Game Engine 0.0.2
ToyMaker is a game engine developed and maintained by Zoheb Shujauddin.
Loading...
Searching...
No Matches
ToyMaker::Application::getByPath_Helper< TObject, Enable > Class Template Reference

Base template for engine object getter, used by Application::getObject(). More...

Private Member Functions

 getByPath_Helper (Application *application)
 Create the getByPath_Helper object.
 
TObject get (const std::string &path="")
 The actual method used when getting an application object.
 
InputManagerget (const std::string &path)
 

Private Attributes

ApplicationmApplication
 A pointer to the application object, which provides the methods used by the helper to actually fetch application objects.
 

Friends

class Application
 

Detailed Description

template<typename TObject, typename Enable>
class ToyMaker::Application::getByPath_Helper< TObject, Enable >

Base template for engine object getter, used by Application::getObject().

Template Parameters
TObjectThe type of object to be retrieved.
EnableA type that allows the get function to be SFINAED for unsupported objects.

Constructor & Destructor Documentation

◆ getByPath_Helper()

template<typename TObject, typename Enable>
ToyMaker::Application::getByPath_Helper< TObject, Enable >::getByPath_Helper ( Application * application)
inlineprivate

Create the getByPath_Helper object.

Parameters
applicationThe application which owns this helper, which provides the methods used for object retrieval.

Member Function Documentation

◆ get()

template<typename TObject, typename Enable>
TObject ToyMaker::Application::getByPath_Helper< TObject, Enable >::get ( const std::string & path = "")
private

The actual method used when getting an application object.

Parameters
pathThe path to the object, whose format depends on the type of object being retrieved.
Returns
TObject The retrieved object.

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