OpendTect  6.6
Classes | Namespaces | Macros | Functions
odset.h File Reference
Include dependency graph for odset.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  OD::Set
 Base class for all sets used in OpendTect. More...
 

Namespaces

 OD
 OpendTect.
 

Macros

#define mTypeName   typename
 
#define mIsContainer(clss, typ, memb)
 
#define mDefContainerSwapFunction(mod, clss)
 
#define mODSetApplyToAll(itp, os, op)
 

Functions

template<class ODSET , class size_type >
void removeRange (ODSET &inst, size_type start, size_type stop)
 Removes a range from the set. More...
 
template<class ODSET , class SET >
void addNames (const ODSET &inp, SET &setwithadd)
 Adds all names from a set to another set with an add() function (typically a BufferStringSet) More...
 

Macro Definition Documentation

◆ mDefContainerSwapFunction

#define mDefContainerSwapFunction (   mod,
  clss 
)
Value:
mGlobal(mod) inline void swap( clss& o1, clss& o2 ) \
{ \
o1.swap( o2 ); \
}

◆ mIsContainer

#define mIsContainer (   clss,
  typ,
  memb 
)
Value:
protected: \
\
typedef typ impl_type; \
impl_type memb; \
\
public: \
\
typedef mTypeName impl_type::size_type size_type; \
typedef mTypeName impl_type::idx_type idx_type; \
typedef mTypeName impl_type::object_type object_type; \
typedef mTypeName impl_type::value_type value_type; \
typedef mTypeName impl_type::iterator iterator; \
typedef mTypeName impl_type::const_iterator const_iterator; \
typedef mTypeName impl_type::difference_type difference_type; \
typedef mTypeName impl_type::reference reference; \
typedef mTypeName impl_type::const_reference const_reference; \
\
iterator begin() { return memb.begin(); } \
const_iterator begin() const { return memb.cbegin(); } \
const_iterator cbegin() const { return memb.cbegin(); } \
iterator end() { return memb.end(); } \
const_iterator end() const { return memb.cend(); } \
const_iterator cend() const { return memb.cend(); } \
inline size_type max_size() const { return memb.max_size(); } \
inline bool empty() const { return memb.empty(); } \
inline void swap( clss& oth ) { memb.swap(oth.memb); } \
\
size_type getIdx( iterator it ) const { return memb.getIdx(it); } \
size_type getIdx( const_iterator it ) const { return memb.getIdx(it); }

◆ mODSetApplyToAll

#define mODSetApplyToAll (   itp,
  os,
  op 
)
Value:
for ( itp idx=(itp) os.nrItems()-1; idx>=0; idx-- ) \
{ \
op; \
}

◆ mTypeName

#define mTypeName   typename

Function Documentation

◆ addNames()

template<class ODSET , class SET >
void addNames ( const ODSET &  inp,
SET &  setwithadd 
)
inline

Adds all names from a set to another set with an add() function (typically a BufferStringSet)

◆ removeRange()

template<class ODSET , class size_type >
void removeRange ( ODSET &  inst,
size_type  start,
size_type  stop 
)
inline

Removes a range from the set.

mGlobal
#define mGlobal(module)
Definition: commondefs.h:180
Gason::begin
JsonIterator begin(JsonValue o)
Definition: gason.h:114
Gason::end
JsonIterator end(JsonValue)
Definition: gason.h:117
mTypeName
#define mTypeName
Definition: odset.h:80
swap
void swap(BufferStringSet &o1, BufferStringSet &o2)
Definition: bufstringset.h:154

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