nullObject.H File Reference
Include dependency graph for nullObject.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  NullObject
 Singleton null-object class and instance. More...
 

Namespaces

 Foam
 Namespace for OpenFOAM.
 

Functions

Istream & operator>> (Istream &is, const NullObject &) noexcept
 Read from Istream consumes no content. More...
 
Ostream & operator<< (Ostream &os, const NullObject &) noexcept
 Write to Ostream emits no content. More...
 
template<class T >
const TNullObjectPtr ()
 Pointer (of type T) to the nullObject. More...
 
template<class T >
const TNullObjectRef ()
 Reference (of type T) to the nullObject. More...
 
template<class T >
bool isNull (const T *ptr)
 True if ptr is a pointer (of type T) to the nullObject. More...
 
template<class T >
bool isNull (const T &obj)
 True if obj is a reference (of type T) to the nullObject. More...
 
template<class T >
bool notNull (const T *ptr)
 True if ptr is not a pointer (of type T) to the nullObject. More...
 
template<class T >
bool notNull (const T &obj)
 True if obj is not a reference (of type T) to the nullObject. More...
 

Variables

const NullObject * nullObjectPtr = &Foam::NullObject::nullObject
 Pointer to the unique nullObject. More...
 

Detailed Description

Original source file nullObject.H

Definition in file nullObject.H.