|
Evo C++ Library v0.5.1
|
#include <evo/type.h>

Basic boolean type.
A basic Evo container for boolean values.
Public Types | |
| typedef void | EvoNullableType |
| Identify as nullable type. More... | |
| typedef bool | Type |
| Wrapped type (bool) More... | |
Public Member Functions | |
| Bool () | |
| Constructor. More... | |
| Bool (const Bool &val) | |
| Copy constructor. More... | |
| Bool (bool val) | |
| Constructor. More... | |
| int | compare (const Nullable< bool > &val) const |
| Comparison. More... | |
| int | compare (bool val) const |
| Comparison. More... | |
| bool & | denull () |
| Clears null flag and returns value reference. More... | |
| bool | null () const |
| Get whether null. More... | |
| operator SafeBoolType () const | |
| Safe (explicit) evaluation as bool type. More... | |
| bool | operator! () const |
| Negation operator returns whether null or 0. More... | |
| bool | operator!= (const Nullable< bool > &val) const |
| Inequality operator. More... | |
| bool | operator!= (bool val) const |
| Inequality operator. More... | |
| const bool & | operator* () const |
| Dereference for explicit conversion to underlying type (const). More... | |
| bool & | operator* () |
| Dereference for explicit conversion to underlying type. More... | |
| bool | operator< (const Nullable< bool > &val) const |
| Less than operator. More... | |
| bool | operator< (bool val) const |
| Less than operator. More... | |
| bool | operator<= (const Nullable< bool > &val) const |
| Less than or equal operator. More... | |
| bool | operator<= (bool val) const |
| Less than or equal operator. More... | |
| Bool & | operator= (const Bool &val) |
| Assignment operator. More... | |
| Bool & | operator= (bool val) |
| Assignment operator. More... | |
| Bool & | operator= (ValNull) |
| Assignment operator to set as null. More... | |
| bool | operator== (const Nullable< bool > &val) const |
| Equality operator. More... | |
| bool | operator== (bool val) const |
| Equality operator. More... | |
| bool | operator> (const Nullable< bool > &val) const |
| Greater than operator. More... | |
| bool | operator> (bool val) const |
| Greater than operator. More... | |
| bool | operator>= (const Nullable< bool > &val) const |
| Greater than or equal operator. More... | |
| bool | operator>= (bool val) const |
| Greater than or equal operator. More... | |
| Nullable< bool > & | set () |
| Set as null. More... | |
| Nullable< bool > & | set (const Nullable< bool > &src) |
| Set as copy of given value. More... | |
| Nullable< bool > & | set (bool src) |
| Set as given value. More... | |
| bool | valid () const |
| Get whether valid (not null). More... | |
| const bool & | value () const |
| Get underlying value (const). More... | |
| bool & | value () |
| Get underlying value. More... | |
Static Public Attributes | |
| static const int | BITS = 1 |
| Type size in bits (1) More... | |
| static const int | BYTES = sizeof(bool) |
| Type size in bytes, usually 1. More... | |
|
inherited |
Identify as nullable type.
| typedef bool Type |
Wrapped type (bool)
|
inline |
Constructor.
|
inline |
Constructor.
| val | Value to set |
|
inlineinherited |
Comparison.
| val | Value to compare to |
|
inlineinherited |
Comparison.
| val | Value to compare to |
|
inlineinherited |
Clears null flag and returns value reference.
Nullable<bool> template specialization returns by value instead of reference
|
inlineinherited |
Get whether null.
|
inlineinherited |
Safe (explicit) evaluation as bool type.
|
inlineinherited |
Negation operator returns whether null or 0.
Inequality operator.
| val | Value to compare to |
|
inlineinherited |
Inequality operator.
| val | Value to compare to |
|
inlineinherited |
Dereference for explicit conversion to underlying type (const).
Alternative to value().
|
inlineinherited |
Dereference for explicit conversion to underlying type.
Alternative to value().
|
inlineinherited |
Less than operator.
| val | Value to compare to |
val
|
inlineinherited |
Less than operator.
| val | Value to compare to |
val
|
inlineinherited |
Less than or equal operator.
| val | Value to compare to |
val, true if null
|
inlineinherited |
Less than or equal operator.
| val | Value to compare to |
val, true if null Assignment operator.
| val | Value to copy |
|
inline |
Assignment operator.
| val | Value to set |
|
inlineinherited |
Equality operator.
| val | Value to compare to |
|
inlineinherited |
Equality operator.
| val | Value to compare to |
|
inlineinherited |
Greater than operator.
| val | Value to compare to |
val, false if null
|
inlineinherited |
Greater than operator.
| val | Value to compare to |
val, false if null
|
inlineinherited |
Greater than or equal operator.
| val | Value to compare to |
val
|
inlineinherited |
Greater than or equal operator.
| val | Value to compare to |
val
|
inlineinherited |
Set as null.
Set as copy of given value.
| src | Source to copy |
|
inlineinherited |
Set as given value.
| src | Source to set |
|
inlineinherited |
Get whether valid (not null).
|
inlineinherited |
|
inlineinherited |
|
static |
Type size in bits (1)
|
static |
Type size in bytes, usually 1.
1.8.13