OpendTect
6.6
|
Public Member Functions | |
DataPackRef (const DataPackRef< T > &) | |
DataPackRef (DataPack *p) | |
Assumes p is obtained. More... | |
DataPack * | dataPack () |
T & | operator* () |
T * | operator-> () |
DataPackRef< T > & | operator= (const DataPackRef< T > &) |
T * | ptr () |
void | releaseNow () |
Public Member Functions inherited from ConstDataPackRef< T > | |
ConstDataPackRef (const ConstDataPackRef< T > &) | |
ConstDataPackRef (const DataPack *p) | |
Assumes p is obtained. More... | |
virtual | ~ConstDataPackRef () |
const DataPack * | dataPack () const |
operator bool () const | |
const T & | operator* () const |
const T * | operator-> () const |
ConstDataPackRef< T > & | operator= (const ConstDataPackRef< T > &) |
const T * | ptr () const |
void | releaseNow () |
Additional Inherited Members | |
Protected Attributes inherited from ConstDataPackRef< T > | |
DataPack * | dp_ |
T * | ptr_ |
Provides safe&easy access to DataPack subclass.
Obtains the pack, and releases it when it goes out of scope. Typically used to hold a datapack as a local variable. Will also work when there are multiple return points.
Example of usage:
<>
|
inline |
Assumes p is obtained.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void DataPackRef< T >::releaseNow | ( | ) |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022