le2d v0.4.7
2D game engine framework
 
Loading...
Searching...
No Matches
le::tweak::Scope Class Reference

RAII wrapper to erase added IDs on destruction. More...

#include <le2d/tweak/scope.hpp>

Public Member Functions

 Scope (Scope const &)=delete
 
auto operator= (Scope const &) -> Scope &=delete
 
 Scope (Scope &&)=default
 
auto operator= (Scope &&) -> Scope &=default
 
 Scope (gsl::not_null< IStore * > store)
 
 ~Scope ()
 
void add_tweakable (std::string_view const id, gsl::not_null< ITweakable * > tweakable)
 

Detailed Description

RAII wrapper to erase added IDs on destruction.

Constructor & Destructor Documentation

◆ Scope() [1/3]

le::tweak::Scope::Scope ( Scope const &  )
delete

◆ Scope() [2/3]

le::tweak::Scope::Scope ( Scope &&  )
default

◆ Scope() [3/3]

le::tweak::Scope::Scope ( gsl::not_null< IStore * >  store)
inlineexplicit

◆ ~Scope()

le::tweak::Scope::~Scope ( )
inline

Member Function Documentation

◆ add_tweakable()

void le::tweak::Scope::add_tweakable ( std::string_view const  id,
gsl::not_null< ITweakable * >  tweakable 
)
inline

◆ operator=() [1/2]

auto le::tweak::Scope::operator= ( Scope &&  ) -> Scope &=default
default

◆ operator=() [2/2]

auto le::tweak::Scope::operator= ( Scope const &  ) -> Scope &=delete
delete

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