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

Go to the source code of this file.

Classes

class  ValueSeries< T >
 Interface to a series of values. More...
 
class  MemSetter< T >
 Sets large amounts of values to a constant using multiple threads. More...
 
class  MemCopier< T >
 ValueSeries Copier. More...
 
class  MemValReplacer< T >
 Goes through some mem or a ValSeries and replaces one value with another. More...
 

Namespaces

 OD
 OpendTect.
 

Macros

#define mODMemMinThreadSize   131072
 
#define mODMemSetterFullImpl(Type)
 
#define mODMemSpecialImpl(Type)
 
#define cMinMemValSetParallelSize   400
 size determined experimentally on different Linux and Windows systems More...
 

Enumerations

enum  OD::PtrPolicy { OD::UsePtr, OD::CopyPtr, OD::TakeOverPtr }
 

Functions

template<class T >
void OD::memValueSet (T *, T, int64_t, TaskRunner *taskrun=0)
 
void OD::sysMemCopy (void *, const void *, int64_t)
 
void OD::sysMemSet (void *, int, size_t)
 
template<class T >
T * OD::sysMemValueSet (T *, T, int64_t nrsamp)
 
void OD::sysMemZero (void *, size_t)
 

Macro Definition Documentation

#define cMinMemValSetParallelSize   400

size determined experimentally on different Linux and Windows systems

#define mODMemMinThreadSize   131072
#define mODMemSetterFullImpl (   Type)
Value:
Type* ptr = ptr_ + start; \
const Type* stopptr = ptr + size; \
while ( ptr != stopptr ) \
{ \
*ptr = val_; \
ptr++; \
} \
\
return true;
Type
Definition: angles.h:27
#define mODMemSpecialImpl (   Type)
Value:
template <> inline \
{ \
if ( val_==0 ) \
OD::sysMemZero( ptr_+start, size*sizeof(Type) ); \
OD::sysMemValueSet( ptr_+start, val_, size ); \
\
addToNrDone( size ); \
return true; \
}
#define od_int64
Definition: plftypes.h:36
bool setPtr(int64_t start, int64_t size)
Definition: odmemory.h:325
void sysMemZero(void *, size_t)
Type
Definition: angles.h:27
T * sysMemValueSet(T *, T, int64_t nrsamp)
Definition: odmemory.h:466

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