OpendTect-6_4  6.4
binidvalue.h
Go to the documentation of this file.
1 #ifndef binidvalue_h
2 #define binidvalue_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: A.H.Bril
9  Date: 21-6-1996
10  Contents: Positions: Inline/crossline and Coordinate
11  RCS: $Id$
12 ________________________________________________________________________
13 
14 -*/
15 
16 #include "basicmod.h"
17 #include "posidxpairvalue.h"
18 #include "binid.h"
20 
23 
32 {
33 public:
34 
36  float v=mUdf(float) )
37  : BinIDValueIdxPair(i,c,v) {}
38  inline BinIDValue( const BinID& b, float v=mUdf(float) )
39  : BinIDValueIdxPair(b,v) {}
40  BinIDValue(const BinIDValues&,int idx);
41 
42 
43  inline bool operator==( const BinIDValueIdxPair& oth ) const
44  { return BinIDValueIdxPair::operator==(oth); }
45  inline bool operator!=( const BinIDValueIdxPair& oth ) const
46  { return BinIDValueIdxPair::operator!=(oth); }
47  bool operator==(const BinID&) const;
48  bool operator!=(const BinID&) const;
49 
50 };
51 
52 
62 {
63 public:
64 
66  int n=2 )
67  : BinIDIdxPairValues(i,c,n) {}
68  inline BinIDValues( const BinID& b, int n=2 )
69  : BinIDIdxPairValues(b,n) {}
70  inline BinIDValues( const BinIDValue& biv )
71  : BinIDIdxPairValues(biv) {}
72 
73  inline bool operator==( const BinIDIdxPairValues& oth ) const
74  { return BinIDIdxPairValues::operator==(oth); }
75  inline bool operator!=( const BinIDIdxPairValues& oth ) const
76  { return BinIDIdxPairValues::operator!=(oth); }
77 
78  bool operator==(const BinID&) const;
79  bool operator!=(const BinID&) const;
80 
81 };
82 
83 
84 #endif
#define mExpClass(module)
Definition: commondefs.h:160
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:53
bool operator==(const IdxPairValues &) const
Definition: posidxpairvalue.h:150
BinIDValues(const BinIDValue &biv)
Definition: binidvalue.h:70
BinIDValue(const BinID &b, float v=Values::Undef< float >::val())
Definition: binidvalue.h:38
IdxPair with a value.
Definition: posidxpairvalue.h:29
BinIDValues(const BinID &b, int n=2)
Definition: binidvalue.h:68
IdxPair with 0-N values.
Definition: posidxpairvalue.h:23
BinIDValue(BinID::IdxType i=0, BinID::IdxType c=0, float v=Values::Undef< float >::val())
Definition: binidvalue.h:35
bool operator==(const BinIDValueIdxPair &oth) const
Definition: binidvalue.h:43
#define mUdf(type)
Use this macro to get the undefined for simple types.
Definition: undefval.h:272
BinID and values. If one of the values is Z, make it the first one.
Definition: binidvalue.h:61
BinID and a value.
Definition: binidvalue.h:31
bool operator!=(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:62
bool operator!=(const IdxPairValues &ipvs) const
Definition: posidxpairvalue.h:96
Pos::ValueIdxPair< BinID, float > BinIDValueIdxPair
Definition: binidvalue.h:19
bool operator!=(const BinIDValueIdxPair &oth) const
Definition: binidvalue.h:45
Index_Type IdxType
Definition: idxpair.h:34
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:30
bool operator==(const BinIDIdxPairValues &oth) const
Definition: binidvalue.h:73
bool operator!=(const BinIDIdxPairValues &oth) const
Definition: binidvalue.h:75
bool operator==(const ValueIdxPair &) const
Definition: posidxpairvalue.h:137
bool operator!=(const ValueIdxPair &vip) const
Definition: posidxpairvalue.h:44
Pos::IdxPairValues< BinID, float > BinIDIdxPairValues
Definition: binidvalue.h:22
BinIDValues(BinID::IdxType i=0, BinID::IdxType c=0, int n=2)
Definition: binidvalue.h:65

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