C++QEDCore  v2 Milestone 10
a framework for simulating open quantum dynamics – core
cpputils::BooleanNegatedProxy Class Reference

Bound to a boolean lvalue, it behaves like a boolean always with opposite value. More...

#include <BooleanNegatedProxy.h>

Public Member Functions

 BooleanNegatedProxy (bool &v)
 
 operator bool () const
 Implicit conversion to boolean.
 
BooleanNegatedProxyoperator= (const BooleanNegatedProxy &other)
 
BooleanNegatedProxyoperator= (bool v)
 

Related Functions

(Note that these are not member functions.)

std::istream & operator>> (std::istream &, BooleanNegatedProxy &)
 Input operator (output is trivial because of implicit conversion to boolean) More...
 

Detailed Description

Bound to a boolean lvalue, it behaves like a boolean always with opposite value.

Definition at line 15 of file BooleanNegatedProxy.h.

Constructor & Destructor Documentation

cpputils::BooleanNegatedProxy::BooleanNegatedProxy ( bool &  v)
inline
Parameters
vThe boolean lvalue to which the proxy is bound

Definition at line 18 of file BooleanNegatedProxy.h.

Friends And Related Function Documentation

std::istream & operator>> ( std::istream &  ,
BooleanNegatedProxy  
)
related

Input operator (output is trivial because of implicit conversion to boolean)


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