![]() |
OpendTect-6_4
6.4
|
Public Member Functions | |
| DataPackRef (DataPack *p) | |
| Assumes p is obtained. More... | |
| DataPackRef (const DataPackRef< T > &) | |
| DataPackRef< T > & | operator= (const DataPackRef< T > &) |
| void | releaseNow () |
| T * | operator-> () |
| T & | operator* () |
| T * | ptr () |
| DataPack * | dataPack () |
Public Member Functions inherited from ConstDataPackRef< T > | |
| ConstDataPackRef (const DataPack *p) | |
| Assumes p is obtained. More... | |
| ConstDataPackRef (const ConstDataPackRef< T > &) | |
| virtual | ~ConstDataPackRef () |
| ConstDataPackRef< T > & | operator= (const ConstDataPackRef< T > &) |
| void | releaseNow () |
| operator bool () const | |
| const T * | operator-> () const |
| const T & | operator* () const |
| const T * | ptr () const |
| const DataPack * | dataPack () const |
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. 2019