Singleton null-object class and instance. More...
Public Member Functions | |
const void * | pointer () const |
A nullptr pointer content. More... | |
unsigned long | value () const |
Zero valued integer content. More... | |
bool | empty () const |
No elements. More... | |
label | size () const |
Zero elements. More... | |
const NullObject & | toc () const |
No-op method (for HashTable replacement) More... | |
const NullObject & | sortedToc () const |
No-op method (for HashTable replacement) More... | |
Static Public Attributes | |
static const NullObject | nullObject |
A unique null object. More... | |
Singleton null-object class and instance.
Its contents occupy enough space to also be reinterpreted as another class with a null pointer or zero long for its first member, with additional zero parameters for safe casting to List etc.
Definition at line 58 of file nullObject.H.
|
inline |
A nullptr pointer content.
Definition at line 101 of file nullObject.H.
|
inline |
Zero valued integer content.
Definition at line 107 of file nullObject.H.
|
inline |
No elements.
Definition at line 113 of file nullObject.H.
|
inline |
Zero elements.
Definition at line 119 of file nullObject.H.
|
inline |
No-op method (for HashTable replacement)
Definition at line 125 of file nullObject.H.
|
inline |
No-op method (for HashTable replacement)
Definition at line 131 of file nullObject.H.
|
static |
A unique null object.
Definition at line 95 of file nullObject.H.