Ocean
|
This class implements a 2D lookup object allowing to separate a two dimensional lookup area into individual bins. More...
Public Types | |
typedef T | Type |
Definition of the lookup data type. More... | |
Public Member Functions | |
const T * | data () const |
Returns a pointer to the constant bin data (row aligned). More... | |
T * | data () |
Returns a pointer to the bin data (row aligned). More... | |
size_t | sizeX () const |
Returns the horizontal dimension of this lookup object. More... | |
size_t | sizeY () const |
Returns the vertical dimension of this lookup object. More... | |
size_t | binsX () const |
Returns the number of horizontal bins of this lookup object. More... | |
size_t | binsY () const |
Returns the number of vertical bins of this lookup object. More... | |
bool | isEmpty () const |
Returns whether this lookup object does not hold any lookup bin. More... | |
operator bool () const | |
Returns whether this lookup object holds at least one lookup bin. More... | |
bool | operator== (const Lookup2< T, TScalar > &lookup) const |
Returns whether two lookup objects are identical. More... | |
bool | operator!= (const Lookup2< T, TScalar > &lookup) const |
Returns whether two lookup objects are not identical. More... | |
Protected Types | |
typedef std::vector< T > | Values |
Definition of a vector holding lookup values. More... | |
Protected Member Functions | |
Lookup2 ()=default | |
Creates a new empty lookup object. More... | |
Lookup2 (const Lookup2< T, TScalar > &lookup) | |
Copy constructor. More... | |
Lookup2 (Lookup2< T, TScalar > &&lookup) noexcept | |
Move constructor. More... | |
Lookup2< T, TScalar > & | operator= (const Lookup2< T, TScalar > &lookup) |
Assign operator. More... | |
Lookup2< T, TScalar > & | operator= (Lookup2< T, TScalar > &&lookup) noexcept |
Move operator. More... | |
Protected Attributes | |
size_t | sizeX_ = 0 |
Horizontal dimension of this lookup object. More... | |
size_t | sizeY_ = 0 |
Vertical dimension of this lookup object. More... | |
size_t | binsX_ = 0 |
Number of horizontal bins. More... | |
size_t | binsY_ = 0 |
Number of vertical bins. More... | |
TScalar | invSizeX_ = 0 |
Inverse horizontal dimension of this lookup object. More... | |
TScalar | invSizeY_ = 0 |
Inverse vertical dimension of this lookup object. More... | |
TScalar | invBinsX_ = 0 |
Inverse number of horizontal bins. More... | |
TScalar | invBinsY_ = 0 |
Inverse number of vertical bins. More... | |
Values | values_ |
The values of the lookup bins. More... | |
This class implements a 2D lookup object allowing to separate a two dimensional lookup area into individual bins.
The entire lookup area covers an integer two-dimensional space starting at the origin.
Lookup values are generated by interpolating lookup values between neighboring bins.
T | The data type of the stored lookup values |
TScalar | The data type of the scalar values, either 'float' or 'double' |
typedef T Ocean::Lookup2< T, TScalar >::Type |
Definition of the lookup data type.
|
protected |
Definition of a vector holding lookup values.
|
protecteddefault |
Creates a new empty lookup object.
|
inlineprotected |
Copy constructor.
lookup | The lookup object to be moved |
|
inlineprotectednoexcept |
Move constructor.
lookup | The lookup object to be moved |
|
inline |
Returns the number of horizontal bins of this lookup object.
|
inline |
Returns the number of vertical bins of this lookup object.
|
inline |
Returns a pointer to the bin data (row aligned).
|
inline |
Returns a pointer to the constant bin data (row aligned).
|
inline |
Returns whether this lookup object does not hold any lookup bin.
|
inlineexplicit |
Returns whether this lookup object holds at least one lookup bin.
|
inline |
Returns whether two lookup objects are not identical.
lookup | Second lookup object |
|
protected |
Assign operator.
lookup | The lookup object that will be moved |
|
protectednoexcept |
Move operator.
lookup | The lookup object that will be moved |
bool Ocean::Lookup2< T, TScalar >::operator== | ( | const Lookup2< T, TScalar > & | lookup | ) | const |
Returns whether two lookup objects are identical.
lookup | Second lookup object |
|
inline |
Returns the horizontal dimension of this lookup object.
|
inline |
Returns the vertical dimension of this lookup object.
|
protected |
Number of horizontal bins.
|
protected |
Number of vertical bins.
|
protected |
Inverse number of horizontal bins.
|
protected |
Inverse number of vertical bins.
|
protected |
Inverse horizontal dimension of this lookup object.
|
protected |
Inverse vertical dimension of this lookup object.
|
protected |
Horizontal dimension of this lookup object.
|
protected |
Vertical dimension of this lookup object.
|
protected |
The values of the lookup bins.