MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / tmp

Method tmp

src/OpenFOAM/memory/tmp/tmpI.H:49–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47
48template<class T>
49inline Foam::tmp<T>::tmp(T* tPtr)
50:
51 type_(TMP),
52 ptr_(tPtr)
53{
54 if (tPtr && !tPtr->unique())
55 {
56 FatalErrorInFunction
57 << "Attempted construction of a " << typeName()
58 << " from non-unique pointer"
59 << abort(FatalError);
60 }
61}
62
63
64template<class T>

Callers

nothing calls this directly

Calls 2

uniqueMethod · 0.80
abortFunction · 0.50

Tested by

no test coverage detected