OpendTect
7.0
|
Manages DataPacks. More...
Public Types | |
using | MgrID = DataPackMgrID |
using | PackID = DataPackID |
Public Member Functions | |
DataPackMgr (DataPackMgrID) | |
~DataPackMgr () | |
template<class T > | |
bool | add (const T &p) |
template<class T > | |
bool | add (const T *p) |
template<class T > | |
bool | add (ConstRefMan< T > &p) |
template<class T > | |
bool | add (RefMan< T > &p) |
template<class T > | |
bool | add (T &p) |
template<class T > | |
bool | add (T *p) |
DataPack * | addAndObtain (DataPack *) |
const char * | categoryOf (DataPackID) const |
void | dumpInfo (od_ostream &) const |
virtual void | dumpInfoFor (DataPackID, StringPairSet &) const |
template<class T > | |
RefMan< T > | get (DataPackID) |
template<class T > | |
ConstRefMan< T > | get (DataPackID) const |
RefMan< DataPack > | getDP (DataPackID) |
ConstRefMan< DataPack > | getDP (DataPackID) const |
void | getPackIDs (TypeSet< DataPackID > &) const |
bool | haveID (const DataPack::FullID &fid) const |
bool | haveID (DataPackID pid) const |
DataPackMgrID | id () const |
bool | isPresent (const DataPack::FullID &fid) const |
bool | isPresent (DataPackID) const |
const char * | nameOf (DataPackID) const |
float | nrKBytes () const |
virtual float | nrKBytesOf (DataPackID) const |
template<class T > | |
WeakPtr< T > | observe (DataPackID) const |
Dynamic casts to T and returns results. More... | |
WeakPtr< DataPack > | observeDP (DataPackID) const |
DataPack * | obtain (DataPackID) |
const DataPack * | obtain (DataPackID) const |
const ObjectSet< const DataPack > & | packs () const |
bool | ref (DataPackID) |
void | release (const DataPack *dp) |
void | release (DataPackID) |
void | releaseAll (bool donotify) |
bool | unRef (DataPackID) |
Public Member Functions inherited from CallBacker | |
CallBacker () | |
CallBacker (const CallBacker &) | |
virtual | ~CallBacker () |
bool | attachCB (const NotifierAccess &, const CallBack &, bool onlyifnew=false) const |
bool | attachCB (const NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) const |
void | detachAllNotifiers () const |
Call from the destructor of your inherited object. More... | |
void | detachCB (const NotifierAccess &, const CallBack &) const |
void | detachCB (const NotifierAccess *notif, const CallBack &cb) const |
virtual bool | isCapsule () const |
bool | isNotifierAttached (const NotifierAccess *) const |
Only for debugging purposes, don't use. More... | |
void | stopReceivingNotifications () const |
virtual CallBacker * | trueCaller () |
Static Public Member Functions | |
static DataPackMgrID | BufID () |
Simple data buffer: 1. More... | |
static const char * | categoryOf (const DataPack::FullID &) |
static DataPackMgrID | cUdfID () |
static DataPackMgr & | DPM (const DataPack::FullID &fid) |
static DataPackMgr & | DPM (DataPackMgrID) |
static void | dumpDPMs (od_ostream &) |
static DataPackMgrID | FlatID () |
Flat (N1xN2) data: 4. More... | |
static DataPackMgrID | getID (const DataPack::FullID &fid) |
static DataPackMgr * | gtDPM (DataPackMgrID, bool) |
static const char * | nameOf (const DataPack::FullID &) |
static DataPackMgrID | PointID () |
Sets of 'unconnected' points: 2. More... | |
static DataPackMgrID | SeisID () |
Cube/Block (N1xN2xN3) data: 3. More... | |
static DataPackMgrID | SurfID () |
Surface (triangulated) data: 5. More... | |
Static Public Member Functions inherited from CallBacker | |
static void | createReceiverForCurrentThread () |
static void | removeReceiverForCurrentThread () |
Public Attributes | |
Notifier< DataPackMgr > | newPack |
Passed CallBacker* = Pack. More... | |
Notifier< DataPackMgr > | packToBeRemoved |
Passed CallBacker* = Pack. More... | |
Private Member Functions | |
bool | doAdd (const DataPack *) |
DataPack * | doObtain (DataPackMgrID, bool) const |
int | indexOf (DataPackMgrID) const |
void | packDeleted (CallBacker *) |
Private Attributes | |
DataPackMgrID | id_ |
WeakPtrSet< DataPack > | packs_ |
Static Private Attributes | |
static Threads::Lock | mgrlistlock_ |
static ManagedObjectSet< DataPackMgr > | mgrs_ |
Manages DataPacks.
DataPacks will be managed with everything in it. If you add a Pack, you will get the ID of the pack.
When you obtain the data for looking at it, you can choose to 'only observe'. In that case, you'd better use the packToBeRemoved notifier, as the data may be deleted at any time. Normally, you want to obtain a reference whilst making sure the data is not thrown away.
This means you must release the data pack once you no longer use it, but NEVER* release a pack when you used the 'observing_only' option.
You can get an appropriate DataPackMgr from the DPM() function.
<>
using DataPackMgr::MgrID = DataPackMgrID |
using DataPackMgr::PackID = DataPackID |
DataPackMgr::DataPackMgr | ( | DataPackMgrID | ) |
You can, but normally should not, construct a manager. In general, leave it to DPM().
DataPackMgr::~DataPackMgr | ( | ) |
Delete a DataPackMgr only when you have created it with the constructor.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
Simple data buffer: 1.
|
static |
const char* DataPackMgr::categoryOf | ( | DataPackID | ) | const |
|
inlinestatic |
|
private |
|
private |
|
inlinestatic |
|
static |
|
static |
void DataPackMgr::dumpInfo | ( | od_ostream & | ) | const |
|
virtual |
|
static |
Flat (N1xN2) data: 4.
|
inline |
|
inline |
RefMan<DataPack> DataPackMgr::getDP | ( | DataPackID | ) |
ConstRefMan<DataPack> DataPackMgr::getDP | ( | DataPackID | ) | const |
|
inlinestatic |
void DataPackMgr::getPackIDs | ( | TypeSet< DataPackID > & | ) | const |
|
static |
|
inline |
|
inline |
|
inline |
|
private |
|
inline |
bool DataPackMgr::isPresent | ( | DataPackID | ) | const |
|
static |
const char* DataPackMgr::nameOf | ( | DataPackID | ) | const |
float DataPackMgr::nrKBytes | ( | ) | const |
|
virtual |
|
inline |
Dynamic casts to T and returns results.
WeakPtr<DataPack> DataPackMgr::observeDP | ( | DataPackID | ) | const |
DataPack* DataPackMgr::obtain | ( | DataPackID | ) |
const DataPack* DataPackMgr::obtain | ( | DataPackID | ) | const |
|
private |
|
static |
Sets of 'unconnected' points: 2.
bool DataPackMgr::ref | ( | DataPackID | ) |
|
inline |
void DataPackMgr::release | ( | DataPackID | ) |
void DataPackMgr::releaseAll | ( | bool | donotify | ) |
|
static |
Cube/Block (N1xN2xN3) data: 3.
|
static |
Surface (triangulated) data: 5.
bool DataPackMgr::unRef | ( | DataPackID | ) |
|
private |
|
staticprivate |
|
staticprivate |
Notifier<DataPackMgr> DataPackMgr::newPack |
Passed CallBacker* = Pack.
|
mutableprivate |
Notifier<DataPackMgr> DataPackMgr::packToBeRemoved |
Passed CallBacker* = Pack.
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024