|
libcrn
3.9.5
A document image processing library
|
A ternary proposition. More...
#include <CRNProp3.h>
Inheritance diagram for crn::Prop3:
Collaboration diagram for crn::Prop3:Public Member Functions | |
| Prop3 () noexcept | |
| Default constructor. More... | |
| Prop3 (int val) noexcept | |
| Constructor from value. More... | |
| Prop3 (bool val) noexcept | |
| Prop3 (const Prop3 &)=default | |
| Prop3 (Prop3 &&)=default | |
| ~Prop3 ()=default | |
| Prop3 & | operator= (const Prop3 &)=default |
| Prop3 & | operator= (Prop3 &&)=default |
| Prop3 | operator| (const Prop3 &prop) const noexcept |
| Logical OR operator. More... | |
| Prop3 & | operator|= (const Prop3 &prop) noexcept |
| Logical OR operator. More... | |
| Prop3 | operator& (const Prop3 &prop) const noexcept |
| Logical AND operator. More... | |
| Prop3 & | operator&= (const Prop3 &prop) noexcept |
| Logical AND operator. More... | |
| bool | operator== (const Prop3 &prop) const noexcept |
| Comparison. More... | |
| Prop3 & | operator= (const int &prop) noexcept |
| Assignment operator. More... | |
| Prop3 | operator! () const noexcept |
| Complementary operator. More... | |
| bool | IsTrue () const noexcept |
| Is true? More... | |
| bool | IsFalse () const noexcept |
| Is false? More... | |
| bool | IsUnknown () const noexcept |
| Is unknown? More... | |
| String | ToString () const |
| Dumps value to a string. More... | |
| int | GetValue () const noexcept |
| Returns the internal integer value. More... | |
| void | Deserialize (xml::Element &el) |
| Initializes the object from an XML element. Unsafe. More... | |
| xml::Element | Serialize (xml::Element &parent) const |
| Dumps the object to an XML element. Unsafe. More... | |
Public Member Functions inherited from crn::Object | |
| virtual | ~Object ()=default |
Static Public Member Functions | |
| static Prop3 | True () |
| static Prop3 | False () |
| static Prop3 | Unknown () |
Static Public Attributes | |
| static constexpr int | FALSEval = 0 |
| static constexpr int | TRUEval = 1 |
| static constexpr int | UNKNOWNval = 2 |
A ternary proposition.
A class for handling ternary logic
Definition at line 40 of file CRNProp3.h.
|
inlinenoexcept |
Default constructor.
Definition at line 44 of file CRNProp3.h.
|
noexcept |
Constructor from value.
Constructor from integer value
| [in] | val | the value (TRUEval, FALSEval, anything else is UNKNOWNval) |
Definition at line 38 of file CRNProp3.cpp.
|
inlinenoexcept |
Definition at line 49 of file CRNProp3.h.
|
default |
|
default |
|
default |
| void Prop3::Deserialize | ( | xml::Element & | el | ) |
Initializes the object from an XML element. Unsafe.
Unknown constant
Initialize the object from an XML element. Unsafe.
| ExceptionInvalidArgument | not a Prop3 |
| ExceptionNotFound | attribute not found |
| ExceptionDomain | wrong attribute |
| [in] | el | the element to read |
Definition at line 189 of file CRNProp3.cpp.
|
inlinestatic |
True constant
Definition at line 89 of file CRNProp3.h.
|
inlinenoexcept |
Returns the internal integer value.
Definition at line 83 of file CRNProp3.h.
|
noexcept |
Is false?
Definition at line 177 of file CRNProp3.cpp.
|
noexcept |
Is true?
Definition at line 175 of file CRNProp3.cpp.
|
noexcept |
Is unknown?
Definition at line 179 of file CRNProp3.cpp.
|
noexcept |
Complementary operator.
Complementary operator
Definition at line 129 of file CRNProp3.cpp.
Logical AND operator.
Logical AND operator
| [in] | prop | the other value |
Definition at line 91 of file CRNProp3.cpp.
Logical AND operator.
Logical AND operator
| [in] | prop | the other value |
Definition at line 163 of file CRNProp3.cpp.
|
noexcept |
Assignment operator.
Assignment operator
| [in] | prop | the new value |
Definition at line 119 of file CRNProp3.cpp.
|
noexcept |
Comparison.
Tests equality
| [in] | prop | the other value |
Definition at line 107 of file CRNProp3.cpp.
Logical OR operator.
Logical OR operator
| [in] | prop | the other value |
Definition at line 75 of file CRNProp3.cpp.
Logical OR operator.
Logical OR operator
| [in] | prop | the other value |
Definition at line 145 of file CRNProp3.cpp.
| xml::Element Prop3::Serialize | ( | xml::Element & | parent | ) | const |
Dumps the object to an XML element. Unsafe.
Dump the object to an XML element. Unsafe.
| [in] | parent | the parent element |
Definition at line 206 of file CRNProp3.cpp.
| String Prop3::ToString | ( | ) | const |
Dumps value to a string.
Dump value to a string
Definition at line 54 of file CRNProp3.cpp.
|
inlinestatic |
Definition at line 88 of file CRNProp3.h.
|
inlinestatic |
False constant
Definition at line 90 of file CRNProp3.h.
|
static |
Definition at line 85 of file CRNProp3.h.
|
static |
Definition at line 86 of file CRNProp3.h.
|
static |
Definition at line 87 of file CRNProp3.h.
1.8.6