Nazara Engine  0.4
A fast, complete, cross-platform API designed for game development
Nz::Initializer< Args > Class Template Reference

Core class that represents a module initializer. More...

Public Member Functions

 Initializer (bool initialize=true)
 Constructs a Initializer object with a boolean. More...
 
 Initializer (const Initializer &)=delete
 
 Initializer (Initializer &&)=delete
 
 ~Initializer ()
 TODO. More...
 
bool Initialize ()
 Initialize the module. More...
 
bool IsInitialized () const
 Checks whether the module is initialized. More...
 
void Uninitialize ()
 Uninitialize the module. More...
 
 operator bool () const
 Converts the initializer to boolean. More...
 
Initializeroperator= (const Initializer &)=delete
 
Initializeroperator= (Initializer &&)=delete
 

Detailed Description

template<typename... Args>
class Nz::Initializer< Args >

Core class that represents a module initializer.

Constructor & Destructor Documentation

◆ Initializer()

template<typename... Args>
Nz::Initializer< Args >::Initializer ( bool  initialize = true)

Constructs a Initializer object with a boolean.

Parameters
initializeInitialize the module

◆ ~Initializer()

template<typename... Args>
Nz::Initializer< Args >::~Initializer ( )

TODO.

Destructs the object and call Uninitialize.

See also
Uninitialize

Member Function Documentation

◆ Initialize()

template<typename... Args>
bool Nz::Initializer< Args >::Initialize ( )

Initialize the module.

See also
Uninitialize

◆ IsInitialized()

template<typename... Args>
bool Nz::Initializer< Args >::IsInitialized ( ) const

Checks whether the module is initialized.

Returns
true if initialized

◆ operator bool()

template<typename... Args>
Nz::Initializer< Args >::operator bool ( ) const
explicit

Converts the initializer to boolean.

Returns
true if initialized

◆ Uninitialize()

template<typename... Args>
void Nz::Initializer< Args >::Uninitialize ( )

Uninitialize the module.

See also
Initialize

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