42 #ifndef Foam_nullObject_H 43 #define Foam_nullObject_H 83 data_{{
nullptr}, {
nullptr}, {
nullptr}, {
nullptr}}
204 return *
reinterpret_cast<T*
>(
const_cast<NullObject*
>(
nullObjectPtr));
212 return ptr == NullObjectPtr<T>();
219 return &obj == NullObjectPtr<T>();
227 return ptr != NullObjectPtr<T>();
234 return &obj != NullObjectPtr<T>();
const NullObject & toc() const noexcept
No-op method (for HashTable replacement)
const T & NullObjectRef() noexcept
Const reference (of type T) to the nullObject.
T & NullObjectRef_constCast() noexcept
Non-const reference (of type T) to the nullObject Only use when nothing will be written into it! ...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
unsigned long value() const noexcept
Zero valued integer content.
const NullObject & sortedToc() const noexcept
No-op method (for HashTable replacement)
const void * pointer() const noexcept
A nullptr pointer content.
label size() const noexcept
Zero elements.
const T * NullObjectPtr() noexcept
Const pointer (of type T) to the nullObject.
Typedefs for label/uLabel without requiring label.H.
T * NullObjectPtr_constCast() noexcept
Non-const pointer (of type T) to the nullObject. Only use when nothing will be written into it! ...
Istream & operator>>(Istream &, directionInfo &)
static const NullObject nullObject
A unique null object.
bool isNull(const T *ptr) noexcept
True if ptr is a pointer (of type T) to the nullObject.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
const NullObject * nullObjectPtr
Pointer to the unique nullObject.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
bool notNull(const T *ptr) noexcept
True if ptr is not a pointer (of type T) to the nullObject.
Singleton null-object class and instance.
bool empty() const noexcept
No elements.