Go to the documentation of this file.
74 #define XSRANGE_INITIALIZER { 0, -1 }
92 inline explicit XsRange(
int f = 0,
int l = -1)
113 inline int count()
const
119 inline int interval()
const
125 inline bool contains(
int i)
const
131 inline void setRange(
int f,
int l)
138 inline bool empty()
const
144 inline int first()
const
150 inline int last()
const
162 bool operator < (
const XsRange& other)
const
176 #if defined(__cplusplus) && !defined(XSENS_NO_STL)
179 template<
typename _CharT,
typename _Traits>
180 std::basic_ostream<_CharT, _Traits>&
operator<<(std::basic_ostream<_CharT, _Traits>& o,
XsRange const& xs)
182 return (o <<
"(" << xs.first() <<
", " << xs.last() <<
"]");
int m_first
Storage for the lower end of the range.
int XsRange_empty(const XsRange *thisPtr)
Test if the range is empty.
int XsRange_interval(const XsRange *thisPtr)
Get the number of values in the range.
void XsRange_setRange(XsRange *thisPtr, int f, int l)
Set a new range.
A class whose objects can be used to store a range. It provides method to check whether a value is in...
bool operator==(const XsFilterProfile &lhs, const XsFilterProfile &rhs)
Returns true if lhs has the same type as rhs.
int m_last
Storage for the upper end of the range.
int XsRange_contains(const XsRange *thisPtr, int i)
Test if the range contains the given value i.
std::ostream & operator<<(std::ostream &os, JlHexLogger< char > const &hex)
int XsRange_count(const XsRange *thisPtr)
Get the number of values in the range.