Singleton null-object class and instance. More...
#include <nullObject.H>

Public Member Functions | |
| const void * | pointer () const noexcept |
| A nullptr pointer content. | |
| unsigned long | value () const noexcept |
| Zero valued integer content. | |
| bool | empty () const noexcept |
| No elements. | |
| label | size () const noexcept |
| Zero elements. | |
| const NullObject & | toc () const noexcept |
| No-op method (for HashTable replacement). | |
| const NullObject & | sortedToc () const noexcept |
| No-op method (for HashTable replacement). | |
| template<class T> | |
| const NullObject & | operator= (const T &) const noexcept |
| Swallow assignment (cf, std::ignore). | |
Static Public Attributes | |
| static const NullObject | nullObject |
| A unique null object. | |
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 56 of file nullObject.H.
|
inlinenoexcept |
|
inlinenoexcept |
Zero valued integer content.
Definition at line 122 of file nullObject.H.
References Foam::noexcept.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
No-op method (for HashTable replacement).
Definition at line 146 of file nullObject.H.
References Foam::noexcept.
|
inlinenoexcept |
No-op method (for HashTable replacement).
Definition at line 154 of file nullObject.H.
References Foam::noexcept.
Swallow assignment (cf, std::ignore).
Definition at line 166 of file nullObject.H.
References Foam::T().

|
static |
A unique null object.
Definition at line 106 of file nullObject.H.