DCMTK
Version 3.6.5
OFFIS DICOM Toolkit
|
Helper class for resolving overloaded functions. More...
Public Member Functions | |
OFExplicitBool (explicit OFBool value) | |
Construct an OFExplicitBool object from an explicit OFBool value. More... | |
operator OFBool () const | |
Implicit conversion to OFBool. More... | |
OFBool | operator! () const |
Negation operator. More... | |
Private Attributes | |
OFBool | m_Value |
The underlying boolean value. | |
Helper class for resolving overloaded functions.
OFExplicitBool can be used to restrict an overloaded function's parameter to "real" OFBool values, e.g. pointers and numeric values can NOT be converted to OFExplicitBool implicitly.
|
inline |
Construct an OFExplicitBool object from an explicit OFBool value.
value | either OFTrue or OFFalse. |
|
inline |
Implicit conversion to OFBool.
This allows to use OFExplicitBool like a normal OFBool value, for example in if-statements.
|
inline |
Negation operator.
This allows to negate OFExplicitBool like a normal OFBool value, for example to use the negated value in if-statements.