18 #ifndef EQFABRIC_RANGE_H 19 #define EQFABRIC_RANGE_H 22 #include <lunchbox/bitOperation.h> 40 Range(
const float start_,
const float end_ )
58 void invalidate() {
start=0.f;
end=0.f; }
65 bool hasData()
const {
return (
end -
start) > 0.f; }
68 void apply(
const Range& rhs )
72 start += rhs.
start * w;
90 os <<
"range [ " << range.
start <<
" " << range.
end <<
" ]";
100 byteswap( value.
start );
101 byteswap( value.
end );
104 #endif // EQFABRIC_RANGE_H Range(const float start_, const float end_)
Construct a new range with default values.
void merge(const Range &rhs)
Merge the two ranges (form the union).
bool operator==(const Range &rhs) const
Defines export visibility macros for library EqualizerFabric.
static EQFABRIC_API const Range ALL
A full database range.
float start
The start position.
bool operator!=(const Range &rhs) const
The Equalizer client library.
std::ostream & operator<<(std::ostream &os, const AxisEvent &event)
Print the axis event to the given output stream.
float end
The end position.
Range()
Construct a new range covering all data.
A fractional database range with methods for manipulation.