The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
config::attribute_value::true_false Class Reference

A wrapper for bool to get the correct streaming ("true"/"false"). More...

#include <config.hpp>

Public Member Functions

 true_false (bool value=false)
 
 operator bool () const
 
const std::stringstr () const
 

Private Attributes

bool value_
 

Detailed Description

A wrapper for bool to get the correct streaming ("true"/"false").

Most visitors can simply treat this as bool.

Definition at line 228 of file config.hpp.

Constructor & Destructor Documentation

config::attribute_value::true_false::true_false ( bool  value = false)
inlineexplicit

Definition at line 232 of file config.hpp.

Member Function Documentation

config::attribute_value::true_false::operator bool ( ) const
inline

Definition at line 233 of file config.hpp.

References value_.

const std::string& config::attribute_value::true_false::str ( ) const
inline

Member Data Documentation

bool config::attribute_value::true_false::value_
private

Definition at line 230 of file config.hpp.

Referenced by operator bool().


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