The Battle for Wesnoth  1.17.8+dev
Public Member Functions | Static Public Member Functions | Static Private Attributes | Friends | List of all members
config::throw_when_child_not_found Class Reference

An object of this type will cause the following functions to throw a config::error instead of returning a reference to the invalid config for the duration of its lfetime. More...

#include <config.hpp>

Public Member Functions

 throw_when_child_not_found ()
 
 ~throw_when_child_not_found ()
 

Static Public Member Functions

static bool do_throw ()
 

Static Private Attributes

static unsigned instances = 0
 

Friends

class config
 

Detailed Description

An object of this type will cause the following functions to throw a config::error instead of returning a reference to the invalid config for the duration of its lfetime.

If multiple instances exist simultaneously, this behavior will persist until all objects are destroyed.

Definition at line 313 of file config.hpp.

Constructor & Destructor Documentation

◆ throw_when_child_not_found()

config::throw_when_child_not_found::throw_when_child_not_found ( )
inline

Definition at line 318 of file config.hpp.

◆ ~throw_when_child_not_found()

config::throw_when_child_not_found::~throw_when_child_not_found ( )
inline

Definition at line 323 of file config.hpp.

Member Function Documentation

◆ do_throw()

static bool config::throw_when_child_not_found::do_throw ( )
inlinestatic

Definition at line 328 of file config.hpp.

Referenced by config::child(), and config::find_child().

Friends And Related Function Documentation

◆ config

friend class config
friend

Definition at line 316 of file config.hpp.

Member Data Documentation

◆ instances

unsigned config::throw_when_child_not_found::instances = 0
inlinestaticprivate

Definition at line 334 of file config.hpp.


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