Sese Framework  2.3.0
A cross-platform framework
Loading...
Searching...
No Matches
sese::Initializer Class Referencefinal

Initializer. More...

#include <Initializer.h>

Public Member Functions

 ~Initializer ()
 

Static Public Member Functions

static void addTask (const InitiateTask::Ptr &task) noexcept
 Add a task to the initializer.
 
template<class T >
static void addTask () noexcept
 
static SESE_DEPRECATED void * getInitializer () noexcept
 Get the initializer pointer.
 

Private Attributes

std::stack< InitiateTask::Ptrtasks
 

Detailed Description

Constructor & Destructor Documentation

◆ ~Initializer()

Initializer::~Initializer ( )

Initializers are guaranteed to be destroyed sequentially

References tasks.

Member Function Documentation

◆ addTask() [1/2]

template<class T >
static void sese::Initializer::addTask ( )
inlinestaticnoexcept

References addTask().

Referenced by addTask(), getInitializer(), and sese::initCore().

◆ addTask() [2/2]

void Initializer::addTask ( const InitiateTask::Ptr & task)
staticnoexcept

Add a task to the initializer.

Parameters
taskInitialization task

References g_initializer, and tasks.

◆ getInitializer()

void * Initializer::getInitializer ( )
staticnoexcept

Get the initializer pointer.

Note
When using "sese" as a static library, make sure to use this function to initialize manually
Returns
Initialization pointer, this return value is useless
Deprecated
Must manually initialize
See also
sese::initCore

References addTask(), and g_initializer.

Member Data Documentation

◆ tasks

std::stack<InitiateTask::Ptr> sese::Initializer::tasks
private

Referenced by addTask(), and ~Initializer().


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