The Battle for Wesnoth  1.17.0-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 314 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 319 of file config.hpp.

◆ ~throw_when_child_not_found()

config::throw_when_child_not_found::~throw_when_child_not_found ( )
inline

Definition at line 324 of file config.hpp.

Member Function Documentation

◆ do_throw()

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

Definition at line 329 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 317 of file config.hpp.

Member Data Documentation

◆ instances

unsigned config::throw_when_child_not_found::instances = 0
inlinestaticprivate

Definition at line 335 of file config.hpp.


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