![]() |
OpendTect
7.0
|
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_ = nullptr |
| T * | ptr_ = nullptr |
This class is obsolete and will be removed. Use RefMan<T> instead.
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-2024