https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Bool Struct Reference

A wrapper for the C++ boolean type which can be stored in vectors in the same way as other C++ types. More...

#include <Bool.h>

Public Member Functions

 Bool ()
 
 Bool (bool b)
 
 operator bool & ()
 
 operator const bool & () const
 
Booloperator= (const bool &other)
 

Public Attributes

bool _value
 

Detailed Description

A wrapper for the C++ boolean type which can be stored in vectors in the same way as other C++ types.

Definition at line 18 of file Bool.h.

Constructor & Destructor Documentation

◆ Bool() [1/2]

Bool::Bool ( )
inline

Definition at line 21 of file Bool.h.

21: _value(false) {}
bool _value
Definition Bool.h:35

◆ Bool() [2/2]

Bool::Bool ( bool  b)
inline

Definition at line 22 of file Bool.h.

22: _value(b) {}

Member Function Documentation

◆ operator bool &()

Bool::operator bool & ( )
inline

Definition at line 26 of file Bool.h.

26{ return _value; }

◆ operator const bool &()

Bool::operator const bool & ( ) const
inline

Definition at line 27 of file Bool.h.

27{ return _value; }

◆ operator=()

Bool & Bool::operator= ( const bool &  other)
inline

Definition at line 29 of file Bool.h.

30 {
31 _value = other;
32 return *this;
33 }

Member Data Documentation

◆ _value

bool Bool::_value

Definition at line 35 of file Bool.h.

Referenced by operator bool &(), operator const bool &(), and operator=().


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