The Battle for Wesnoth  1.19.7+dev
Public Member Functions | Protected Attributes | List of all members
game_config::scoped_preproc_define_internal< T > Class Template Reference

Used to set and unset scoped defines to preproc_map. More...

#include <config_cache.hpp>

Public Member Functions

 scoped_preproc_define_internal (const scoped_preproc_define_internal &)=delete
 
scoped_preproc_define_internaloperator= (const scoped_preproc_define_internal &)=delete
 
 scoped_preproc_define_internal (const std::string &name, bool add=true)
 Adds normal preproc define. More...
 
 ~scoped_preproc_define_internal ()
 This removes preproc define from cacher. More...
 

Protected Attributes

std::string name_
 
bool add_
 

Detailed Description

template<typename T>
class game_config::scoped_preproc_define_internal< T >

Used to set and unset scoped defines to preproc_map.

This is preferred form to set defines that aren't global

Definition at line 40 of file config_cache.hpp.

Constructor & Destructor Documentation

◆ scoped_preproc_define_internal() [1/2]

◆ scoped_preproc_define_internal() [2/2]

template<typename T >
game_config::scoped_preproc_define_internal< T >::scoped_preproc_define_internal ( const std::string &  name,
bool  add = true 
)
inline

Adds normal preproc define.

Parameters
namename of preproc define to add.
addtrue if we should add this.

Definition at line 52 of file config_cache.hpp.

References game_config::scoped_preproc_define_internal< T >::add_, and game_config::scoped_preproc_define_internal< T >::name_.

◆ ~scoped_preproc_define_internal()

This removes preproc define from cacher.

Definition at line 62 of file config_cache.hpp.

References game_config::scoped_preproc_define_internal< T >::add_, and game_config::scoped_preproc_define_internal< T >::name_.

Member Function Documentation

◆ operator=()

template<typename T >
scoped_preproc_define_internal& game_config::scoped_preproc_define_internal< T >::operator= ( const scoped_preproc_define_internal< T > &  )
delete

Member Data Documentation

◆ add_

template<typename T >
bool game_config::scoped_preproc_define_internal< T >::add_
protected

◆ name_

template<typename T >
std::string game_config::scoped_preproc_define_internal< T >::name_
protected

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