57 ptr_ = ap().clone().
ptr();
104 <<
"object of type " <<
typeid(
T).
name()
105 <<
" already allocated"
156 <<
"object of type " <<
typeid(
T).
name()
157 <<
" is not allocated"
171 <<
"object of type " <<
typeid(
T).
name()
172 <<
" is not allocated"
186 <<
"object of type " <<
typeid(
T).
name()
187 <<
" is not allocated"
201 <<
"object of type " <<
typeid(
T).
name()
202 <<
" is not allocated"
223 <<
"object of type " <<
typeid(
T).
name()
224 <<
" is not allocated"
235 return const_cast<autoPtr<T>&
>(*this).operator->();
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
bool cleared()
Delete object if the pointer is valid and return true.
autoPtr(T *=nullptr)
Store object pointer.
~autoPtr()
Destructor, delete object if pointer is not nullptr.
void operator=(T *)
Take over the object pointer from parameter.
bool valid() const
Return true if the autoPtr valid (ie, the pointer is set)
T & operator*()
Return reference to the object data.
T * operator->()
Return object pointer.
T & operator()()
Return reference to the object data.
bool empty() const
Return true if the autoPtr is empty (ie, no pointer set)
T * ptr()
Return object pointer for reuse.
void clear()
Delete object (if the pointer is valid) and set pointer to.
void reset(T *=nullptr)
If object pointer already set, delete object and set to given.
void set(T *)
Set pointer to that given.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManip< error > abort(error &err)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
void T(GeometricField< Type, GeoMesh, PrimitiveField1 > &gf, const GeometricField< Type, GeoMesh, PrimitiveField2 > &gf1)