A class for managing references or pointers (no reference counting) More...
Public Types | |
typedef T | element_type |
typedef T * | pointer |
typedef Foam::refCount::zero | refCount |
Public Member Functions | |
constexpr | refPtr () noexcept |
constexpr | refPtr (std::nullptr_t) noexcept |
constexpr | refPtr (T *p) noexcept |
refPtr (autoPtr< T > &&ptr) noexcept | |
refPtr (std::unique_ptr< T > &&ptr) noexcept | |
constexpr | refPtr (const T &obj) noexcept |
refPtr (refPtr< T > &&rhs) noexcept | |
refPtr (const refPtr< T > &rhs) | |
refPtr (const refPtr< T > &rhs, bool reuse) | |
~refPtr () | |
bool | good () const noexcept |
bool | is_const () const noexcept |
bool | is_pointer () const noexcept |
bool | movable () const noexcept |
T * | get () noexcept |
const T * | get () const noexcept |
const T & | cref () const |
T & | ref () const |
T & | constCast () const |
refPtr< T > | shallowClone () const noexcept |
T * | release () noexcept |
T * | ptr () const |
void | clear () const noexcept |
void | reset (refPtr< T > &&other) noexcept |
void | reset (T *p=nullptr) noexcept |
void | reset (autoPtr< T > &&other) noexcept |
void | reset (std::unique_ptr< T > &&other) |
void | cref (const refPtr< T > &other) noexcept |
void | cref (const T &obj) noexcept |
void | cref (const T *p) noexcept |
void | ref (T &obj) noexcept |
void | ref (T *p) noexcept |
void | swap (refPtr< T > &other) noexcept |
const T & | operator* () const |
T & | operator* () |
const T * | operator-> () const |
T * | operator-> () |
const T & | operator() () const |
operator bool () const noexcept | |
operator const T & () const | |
void | operator= (const refPtr< T > &other) |
void | operator= (refPtr< T > &&other) noexcept |
void | operator= (T *p) |
void | operator= (std::nullptr_t) noexcept |
operator tmp< T > () | |
bool | valid () const noexcept |
bool | empty () const noexcept |
template<class... Args> | |
Foam::refPtr< T > | New (Args &&... args) |
template<class U , class... Args> | |
Foam::refPtr< T > | NewFrom (Args &&... args) |
Static Public Member Functions | |
template<class... Args> | |
static refPtr< T > | New (Args &&... args) |
template<class U , class... Args> | |
static refPtr< T > | NewFrom (Args &&... args) |
static word | typeName () |
A class for managing references or pointers (no reference counting)
typedef T element_type |
typedef Foam::refCount::zero refCount |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
Referenced by AMIInterpolation::calculate(), RASModelVariables::cloneRefPtr(), fileOperation::lookupAndCacheProcessorsPath(), and blockMesh::topology().
|
inlinestatic |
|
inlinenoexcept |
Definition at line 150 of file refPtr.H.
Referenced by PrecisionAdaptor< Type, InputType, Container >::commit().
|
inlinenoexcept |
Definition at line 156 of file refPtr.H.
Referenced by regIOobject::store().
|
inlinenoexcept |
Definition at line 165 of file refPtr.H.
Referenced by PrecisionAdaptor< Type, InputType, Container >::set(), and regIOobject::store().
|
inline |
Definition at line 182 of file refPtrI.H.
Referenced by parseDriver::getField(), fvExprDriver::getTopoSetLabels(), fvExprDriver::getVariable(), parseDriver::getVariableIfAvailable(), refPtr< Foam::OSstream >::operator const T &(), refPtr< Foam::OSstream >::operator()(), and regIOobject::store().
|
inline |
Definition at line 196 of file refPtrI.H.
Referenced by PrecisionAdaptor< Type, InputType, Container >::commit(), mappedPolyPatch::mapCollocatedFaces(), mappedWallPolyPatch::mapCollocatedFaces(), and cyclicPolyPatch::mapCollocatedFaces().
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 239 of file refPtrI.H.
Referenced by regIOobject::store().
|
inline |
Definition at line 253 of file refPtrI.H.
Referenced by PtrList< transferModel >::append(), PtrDynList< Foam::profilingInformation >::append(), PtrList< transferModel >::set(), and PtrDynList< Foam::profilingInformation >::set().
|
inlinenoexcept |
Definition at line 213 of file refPtr.H.
Referenced by refPtr< Foam::OSstream >::reset().
|
inline |
Definition at line 216 of file refPtr.H.
Referenced by refPtr< Foam::OSstream >::reset().
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 296 of file refPtr.H.
Referenced by parseDriver::getField(), fvExprDriver::getTopoSetLabels(), fvExprDriver::getVariable(), and parseDriver::getVariableIfAvailable().
|
inline |
|
inline |
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.