OpendTect  6.6
Public Member Functions | Protected Types | Static Protected Member Functions | Protected Attributes | List of all members
UndefArrayHandler Class Reference

Class that handles undefvalues in arrays that are in a format described by a BinDataDesc. More...

Public Member Functions

 UndefArrayHandler (const BinDataDesc &desc)
 
bool isOK () const
 
bool isUdf (const void *ptr, od_int64 idx) const
 
bool set (const BinDataDesc &desc)
 
void setUdf (void *ptr, od_int64 idx) const
 
void unSetUdf (void *ptr, od_int64 idx) const
 

Protected Types

typedef bool(* IsUdfFunc) (const void *, od_int64 idx)
 
typedef void(* SetUdfFunc) (void *, od_int64 idx)
 
typedef void(* UnsetUdfFunc) (void *, od_int64 idx)
 

Static Protected Member Functions

static bool isUdfChar (const void *, od_int64)
 
static bool isUdfDouble (const void *, od_int64)
 
static bool isUdfFloat (const void *, od_int64)
 
static bool isUdfInt32 (const void *, od_int64)
 
static bool isUdfInt64 (const void *, od_int64)
 
static bool isUdfShort (const void *, od_int64)
 
static bool isUdfUChar (const void *, od_int64)
 
static bool isUdfUInt32 (const void *, od_int64)
 
static bool isUdfUInt64 (const void *, od_int64)
 
static bool isUdfUShort (const void *, od_int64)
 
static void setUdfChar (void *, od_int64)
 
static void setUdfDouble (void *, od_int64)
 
static void setUdfFloat (void *, od_int64)
 
static void setUdfInt32 (void *, od_int64)
 
static void setUdfInt64 (void *, od_int64)
 
static void setUdfShort (void *, od_int64)
 
static void setUdfUChar (void *, od_int64)
 
static void setUdfUInt32 (void *, od_int64)
 
static void setUdfUInt64 (void *, od_int64)
 
static void setUdfUShort (void *, od_int64)
 
static void unsetUdfChar (void *, od_int64)
 
static void unsetUdfDouble (void *, od_int64)
 
static void unsetUdfFloat (void *, od_int64)
 
static void unsetUdfInt32 (void *, od_int64)
 
static void unsetUdfInt64 (void *, od_int64)
 
static void unsetUdfShort (void *, od_int64)
 
static void unsetUdfUChar (void *, od_int64)
 
static void unsetUdfUInt32 (void *, od_int64)
 
static void unsetUdfUInt64 (void *, od_int64)
 
static void unsetUdfUShort (void *, od_int64)
 

Protected Attributes

IsUdfFunc isudf_
 
UnsetUdfFunc limitrange_
 
SetUdfFunc setudf_
 

Detailed Description

Class that handles undefvalues in arrays that are in a format described by a BinDataDesc.

<>

Member Typedef Documentation

◆ IsUdfFunc

typedef bool(* UndefArrayHandler::IsUdfFunc) (const void *, od_int64 idx)
protected

◆ SetUdfFunc

typedef void(* UndefArrayHandler::SetUdfFunc) (void *, od_int64 idx)
protected

◆ UnsetUdfFunc

typedef void(* UndefArrayHandler::UnsetUdfFunc) (void *, od_int64 idx)
protected

Constructor & Destructor Documentation

◆ UndefArrayHandler()

UndefArrayHandler::UndefArrayHandler ( const BinDataDesc desc)

Member Function Documentation

◆ isOK()

bool UndefArrayHandler::isOK ( ) const

◆ isUdf()

bool UndefArrayHandler::isUdf ( const void *  ptr,
od_int64  idx 
) const

◆ isUdfChar()

static bool UndefArrayHandler::isUdfChar ( const void *  ,
od_int64   
)
staticprotected

◆ isUdfDouble()

static bool UndefArrayHandler::isUdfDouble ( const void *  ,
od_int64   
)
staticprotected

◆ isUdfFloat()

static bool UndefArrayHandler::isUdfFloat ( const void *  ,
od_int64   
)
staticprotected

◆ isUdfInt32()

static bool UndefArrayHandler::isUdfInt32 ( const void *  ,
od_int64   
)
staticprotected

◆ isUdfInt64()

static bool UndefArrayHandler::isUdfInt64 ( const void *  ,
od_int64   
)
staticprotected

◆ isUdfShort()

static bool UndefArrayHandler::isUdfShort ( const void *  ,
od_int64   
)
staticprotected

◆ isUdfUChar()

static bool UndefArrayHandler::isUdfUChar ( const void *  ,
od_int64   
)
staticprotected

◆ isUdfUInt32()

static bool UndefArrayHandler::isUdfUInt32 ( const void *  ,
od_int64   
)
staticprotected

◆ isUdfUInt64()

static bool UndefArrayHandler::isUdfUInt64 ( const void *  ,
od_int64   
)
staticprotected

◆ isUdfUShort()

static bool UndefArrayHandler::isUdfUShort ( const void *  ,
od_int64   
)
staticprotected

◆ set()

bool UndefArrayHandler::set ( const BinDataDesc desc)

◆ setUdf()

void UndefArrayHandler::setUdf ( void *  ptr,
od_int64  idx 
) const

◆ setUdfChar()

static void UndefArrayHandler::setUdfChar ( void *  ,
od_int64   
)
staticprotected

◆ setUdfDouble()

static void UndefArrayHandler::setUdfDouble ( void *  ,
od_int64   
)
staticprotected

◆ setUdfFloat()

static void UndefArrayHandler::setUdfFloat ( void *  ,
od_int64   
)
staticprotected

◆ setUdfInt32()

static void UndefArrayHandler::setUdfInt32 ( void *  ,
od_int64   
)
staticprotected

◆ setUdfInt64()

static void UndefArrayHandler::setUdfInt64 ( void *  ,
od_int64   
)
staticprotected

◆ setUdfShort()

static void UndefArrayHandler::setUdfShort ( void *  ,
od_int64   
)
staticprotected

◆ setUdfUChar()

static void UndefArrayHandler::setUdfUChar ( void *  ,
od_int64   
)
staticprotected

◆ setUdfUInt32()

static void UndefArrayHandler::setUdfUInt32 ( void *  ,
od_int64   
)
staticprotected

◆ setUdfUInt64()

static void UndefArrayHandler::setUdfUInt64 ( void *  ,
od_int64   
)
staticprotected

◆ setUdfUShort()

static void UndefArrayHandler::setUdfUShort ( void *  ,
od_int64   
)
staticprotected

◆ unSetUdf()

void UndefArrayHandler::unSetUdf ( void *  ptr,
od_int64  idx 
) const

If the value is undef, it is replaced by a similar value that isn't undef.

◆ unsetUdfChar()

static void UndefArrayHandler::unsetUdfChar ( void *  ,
od_int64   
)
staticprotected

◆ unsetUdfDouble()

static void UndefArrayHandler::unsetUdfDouble ( void *  ,
od_int64   
)
staticprotected

◆ unsetUdfFloat()

static void UndefArrayHandler::unsetUdfFloat ( void *  ,
od_int64   
)
staticprotected

◆ unsetUdfInt32()

static void UndefArrayHandler::unsetUdfInt32 ( void *  ,
od_int64   
)
staticprotected

◆ unsetUdfInt64()

static void UndefArrayHandler::unsetUdfInt64 ( void *  ,
od_int64   
)
staticprotected

◆ unsetUdfShort()

static void UndefArrayHandler::unsetUdfShort ( void *  ,
od_int64   
)
staticprotected

◆ unsetUdfUChar()

static void UndefArrayHandler::unsetUdfUChar ( void *  ,
od_int64   
)
staticprotected

◆ unsetUdfUInt32()

static void UndefArrayHandler::unsetUdfUInt32 ( void *  ,
od_int64   
)
staticprotected

◆ unsetUdfUInt64()

static void UndefArrayHandler::unsetUdfUInt64 ( void *  ,
od_int64   
)
staticprotected

◆ unsetUdfUShort()

static void UndefArrayHandler::unsetUdfUShort ( void *  ,
od_int64   
)
staticprotected

Member Data Documentation

◆ isudf_

IsUdfFunc UndefArrayHandler::isudf_
protected

◆ limitrange_

UnsetUdfFunc UndefArrayHandler::limitrange_
protected

◆ setudf_

SetUdfFunc UndefArrayHandler::setudf_
protected

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