https://mooseframework.inl.gov
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 16 of file Bool.h.

Constructor & Destructor Documentation

◆ Bool() [1/2]

Bool::Bool ( )
inline

Definition at line 19 of file Bool.h.

19 : _value(false) {}
bool _value
Definition: Bool.h:33

◆ Bool() [2/2]

Bool::Bool ( bool  b)
inline

Definition at line 20 of file Bool.h.

20 : _value(b) {}
bool _value
Definition: Bool.h:33

Member Function Documentation

◆ operator bool &()

Bool::operator bool & ( )
inline

Definition at line 24 of file Bool.h.

24 { return _value; }
bool _value
Definition: Bool.h:33

◆ operator const bool &()

Bool::operator const bool & ( ) const
inline

Definition at line 25 of file Bool.h.

25 { return _value; }
bool _value
Definition: Bool.h:33

◆ operator=()

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

Definition at line 27 of file Bool.h.

28  {
29  _value = other;
30  return *this;
31  }
bool _value
Definition: Bool.h:33

Member Data Documentation

◆ _value

bool Bool::_value

Definition at line 33 of file Bool.h.

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


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