OpendTect-6_4  6.4
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
CallBackSet Class Reference

TypeSet of CallBacks with a few extras. More...

Inheritance diagram for CallBackSet:
[legend]

Public Member Functions

 CallBackSet ()
 
 CallBackSet (const CallBackSet &)
 
CallBackSetoperator= (const CallBackSet &)
 
void doCall (CallBacker *, CallBacker *exclude=0)
 
void removeWith (CallBacker *)
 
void removeWith (CallBackFunction)
 
void removeWith (StaticCallBackFunction)
 
bool isEnabled () const
 
bool doEnable (bool yn=true)
 Returns old state. More...
 
- Public Member Functions inherited from TypeSet< CallBack >
 TypeSet ()
 
 TypeSet (int nr, CallBack typ)
 
 TypeSet (const CallBack *t, int nr)
 
 TypeSet (const TypeSet< CallBack > &t)
 
- Public Member Functions inherited from TypeSetBase< CallBack, int >
virtual ~TypeSetBase ()
 
TypeSetBase< CallBack, int > & operator= (const TypeSetBase< CallBack, int > &ts)
 
size_type size () const
 
virtual int64_t nrItems () const
 
virtual bool setSize (size_type, CallBack val=CallBack())
 
virtual bool setCapacity (size_type sz, bool withmargin)
 
virtual size_type getCapacity () const
 
void setAll (CallBack)
 
void replace (CallBack, CallBack)
 
CallBackoperator[] (size_type)
 
const CallBackoperator[] (size_type) const
 
CallBackfirst ()
 
const CallBackfirst () const
 
CallBacklast ()
 
const CallBacklast () const
 
virtual bool validIdx (int64_t) const
 
virtual size_type indexOf (CallBack, bool forward=true, size_type start=-1) const
 
bool isPresent (const CallBack &) const
 
size_type count (const CallBack &) const
 
TypeSetBase< CallBack, int > & add (const CallBack &)
 
virtual void insert (size_type, const CallBack &)
 
bool push (const CallBack &)
 
CallBack pop ()
 
TypeSetBase< CallBack, int > & operator+= (const CallBack &t)
 
virtual bool append (const CallBack *, size_type)
 
virtual bool append (const TypeSetBase< CallBack, int > &)
 
virtual bool addIfNew (const CallBack &)
 
virtual TypeSetBase< CallBack, int > & copy (const CallBack *, size_type)
 
virtual TypeSetBase< CallBack, int > & copy (const TypeSetBase< CallBack, int > &)
 
virtual void createUnion (const TypeSetBase< CallBack, int > &)
 
virtual void createIntersection (const TypeSetBase< CallBack, int > &)
 Only keeps common items. More...
 
virtual void createDifference (const TypeSetBase< CallBack, int > &, bool must_preserve_order=false)
 Removes all items present in other set. More...
 
virtual void swap (int64_t, int64_t)
 
virtual void move (size_type from, size_type to)
 
virtual void getReOrdered (const size_type *, TypeSetBase< CallBack, int > &)
 Fills as per the given array of indexes. More...
 
virtual void reverse ()
 
virtual void erase ()
 
virtual void removeSingle (size_type, bool preserver_order=true)
 
TypeSetBase< CallBack, int > & operator-= (const CallBack &)
 
virtual void removeRange (size_type from, size_type to)
 
virtual CallBackarr ()
 3rd party access More...
 
virtual const CallBackarr () const
 
std::vector< CallBack > & vec ()
 
const std::vector< CallBack > & vec () const
 
- Public Member Functions inherited from OD::Set
virtual ~Set ()
 
bool isEmpty () const
 
void setEmpty ()
 

Public Attributes

Threads::Lock lock_
 

Private Member Functions

 mRefCountImplWithDestructor (CallBackSet, virtual ~CallBackSet(), delete this;)
 

Private Attributes

bool enabled_
 

Additional Inherited Members

- Public Types inherited from TypeSetBase< CallBack, int >
typedef int size_type
 
typedef CallBack object_type
 
- Protected Member Functions inherited from TypeSetBase< CallBack, int >
 TypeSetBase ()
 
 TypeSetBase (size_type nr, CallBack typ)
 
 TypeSetBase (const CallBack *, size_type nr)
 
 TypeSetBase (const TypeSetBase< CallBack, size_type > &)
 
virtual CallBackgtArr () const
 
- Protected Attributes inherited from TypeSetBase< CallBack, int >
VectorAccess< CallBack, int > vec_
 

Detailed Description

TypeSet of CallBacks with a few extras.

Constructor & Destructor Documentation

CallBackSet::CallBackSet ( )
CallBackSet::CallBackSet ( const CallBackSet )

Member Function Documentation

void CallBackSet::doCall ( CallBacker ,
CallBacker exclude = 0 
)
Parameters
enabledflagif non-null, content will be checked between each call, caling will stop if false.
Note
Will lock in the apropriate moment.
bool CallBackSet::doEnable ( bool  yn = true)

Returns old state.

bool CallBackSet::isEnabled ( ) const
inline
CallBackSet::mRefCountImplWithDestructor ( CallBackSet  ,
virtual ~  CallBackSet(),
delete this;   
)
private
CallBackSet& CallBackSet::operator= ( const CallBackSet )
void CallBackSet::removeWith ( CallBacker )
Note
Should be locked before calling
void CallBackSet::removeWith ( CallBackFunction  )
Note
Should be locked before calling
void CallBackSet::removeWith ( StaticCallBackFunction  )
Note
Should be locked before calling

Member Data Documentation

bool CallBackSet::enabled_
private
Threads::Lock CallBackSet::lock_
mutable

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019