OpendTect-6_4  6.4
Classes | Macros | Functions
objectset.h File Reference
Include dependency graph for objectset.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ObjectSet< T >
 Set of pointers to objects. More...
 

Macros

#define mObjectSetApplyToAll(os, op)   mODSetApplyToAll( ObjectSet<int>::size_type, os, op )
 
#define mObjectSetApplyToAllFunc(fn, op, extra)
 

Functions

template<class T >
void deepErase (ObjectSet< T > &os)
 empty the ObjectSet deleting all objects pointed to. More...
 
template<class T >
void deepEraseArr (ObjectSet< T > &os)
 empty the ObjectSet deleting all objects pointed to. More...
 
template<class T , class S >
void deepAppend (ObjectSet< T > &to, const ObjectSet< S > &from)
 append copies of one set's objects to another ObjectSet. More...
 
template<class T , class S >
void deepAppendClone (ObjectSet< T > &to, const ObjectSet< S > &from)
 append clones of one set's objects to another ObjectSet. More...
 
template<class T , class S >
void deepCopy (ObjectSet< T > &to, const ObjectSet< S > &from)
 fill an ObjectSet with copies of the objects in the other set. More...
 
template<class T , class S >
void deepCopyClone (ObjectSet< T > &to, const ObjectSet< S > &from)
 fill an ObjectSet with clones of the objects in the other set. More...
 
template<class T , class S >
ObjectSet< T >::size_type indexOf (const ObjectSet< T > &os, const S &val)
 Locate object in set. More...
 
template<class T , class S >
const T * find (const ObjectSet< T > &os, const S &val)
 Get const object in set. More...
 
template<class T , class S >
T * find (ObjectSet< T > &os, const S &val)
 Get object in set. More...
 
template<class T >
void _ObjectSet_sortWithNull (ObjectSet< T > &os)
 Sort ObjectSet when nulls are allowed no need to call. More...
 
template<class T >
void sort (ObjectSet< T > &os)
 Sort ObjectSet. Must have operator > defined for elements. More...
 
template<class T >
bool equalObjects (const ObjectSet< T > &os1, const ObjectSet< T > &os2)
 See if all objects are equal. More...
 
template<class T >
bool equalContents (const ObjectSet< T > &os1, const ObjectSet< T > &os2)
 See if all objects pointed to are equal. More...
 

Macro Definition Documentation

#define mObjectSetApplyToAll (   os,
  op 
)    mODSetApplyToAll( ObjectSet<int>::size_type, os, op )
#define mObjectSetApplyToAllFunc (   fn,
  op,
  extra 
)
Value:
template <class T> \
inline void fn( ObjectSet<T>& os ) \
{ \
mObjectSetApplyToAll( os, op ); \
extra; \
}
Set of pointers to objects.
Definition: commontypes.h:32

Function Documentation

template<class T >
void _ObjectSet_sortWithNull ( ObjectSet< T > &  os)
inline

Sort ObjectSet when nulls are allowed no need to call.

template<class T , class S >
void deepAppend ( ObjectSet< T > &  to,
const ObjectSet< S > &  from 
)
inline

append copies of one set's objects to another ObjectSet.

template<class T , class S >
void deepAppendClone ( ObjectSet< T > &  to,
const ObjectSet< S > &  from 
)
inline

append clones of one set's objects to another ObjectSet.

template<class T , class S >
void deepCopy ( ObjectSet< T > &  to,
const ObjectSet< S > &  from 
)
inline

fill an ObjectSet with copies of the objects in the other set.

template<class T , class S >
void deepCopyClone ( ObjectSet< T > &  to,
const ObjectSet< S > &  from 
)
inline

fill an ObjectSet with clones of the objects in the other set.

template<class T >
void deepErase ( ObjectSet< T > &  os)
inline

empty the ObjectSet deleting all objects pointed to.

template<class T >
void deepEraseArr ( ObjectSet< T > &  os)
inline

empty the ObjectSet deleting all objects pointed to.

template<class T >
bool equalContents ( const ObjectSet< T > &  os1,
const ObjectSet< T > &  os2 
)
inline

See if all objects pointed to are equal.

template<class T >
bool equalObjects ( const ObjectSet< T > &  os1,
const ObjectSet< T > &  os2 
)
inline

See if all objects are equal.

template<class T , class S >
const T* find ( const ObjectSet< T > &  os,
const S &  val 
)
inline

Get const object in set.

template<class T , class S >
T* find ( ObjectSet< T > &  os,
const S &  val 
)
inline

Get object in set.

template<class T , class S >
ObjectSet<T>::size_type indexOf ( const ObjectSet< T > &  os,
const S &  val 
)
inline

Locate object in set.

template<class T >
void sort ( ObjectSet< T > &  os)
inline

Sort ObjectSet. Must have operator > defined for elements.


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