18 #ifndef EQFABRIC_RANGE_H
19 #define EQFABRIC_RANGE_H
22 #include <lunchbox/bitOperation.h>
39 Range(
const float start_,
const float end_ )
57 void invalidate() {
start=0.f;
end=0.f; }
64 bool hasData()
const {
return (
end -
start) > 0.f; }
67 void apply(
const Range& rhs )
70 end = start + rhs.end * w;
71 start += rhs.start * w;
81 inline std::ostream& operator << ( std::ostream& os,
const Range& range )
83 os <<
"range [ " << range.
start <<
" " << range.
end <<
" ]";
93 byteswap( value.
start );
94 byteswap( value.
end );
97 #endif // EQFABRIC_RANGE_H
Range(const float start_, const float end_)
Construct a new range with default values.
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
float end
The end position.
Range()
Construct a new range covering all data.
A fractional database range with methods for manipulation.