17 #ifndef AGXDATA_RANGE_H
18 #define AGXDATA_RANGE_H
41 template <
typename T2>
113 template <
typename T>
119 template <
typename T>
126 iterator& operator++();
127 iterator operator++(
int);
150 template <
typename T>
153 template <
typename T>
156 template <
typename T>
template <
typename T2>
163 template <
typename T>
167 template <
typename T>
170 template <
typename T>
173 template <
typename T>
176 template <
typename T>
188 return a != 0 && b != 0 && (a >> 63) != (b >> 63);
196 return a != 0 && b != 0 && (a >> 31) != (b >> 31);
199 template <
typename T>
202 if (m_start < other.m_start) m_start = other.m_start;
203 if (m_end > other.m_end) m_end = other.m_end;
206 template <
typename T>
209 return m_start <= m_end;
213 template <
typename T>
216 template <
typename T>
220 template <
typename T>
223 template <
typename T>
226 template <
typename T>
230 template <
typename T>
233 return m_start == other.m_start && m_end == other.m_end;
236 template <
typename T>
239 return m_start != other.m_start || m_end != other.m_end;
243 template <
typename T>
246 template <
typename T>
249 template <
typename T>
252 template <
typename T>
257 template <
typename T>
260 output << (T)range.
begin() <<
":" << (T)range.
end();
267 template <
typename T>
277 template <
typename T>
282 template <
typename T>
287 template <
typename T>
294 template <
typename T>
301 template <
typename T>
304 template <
typename T>
IndexRangeT< T > & operator+=(T rhs)
bool contains(T index) const
IndexRangeT< T > & operator-=(T rhs)
IndexRangeT< T > operator-(T rhs) const
void set(T begin, T end)
Set the range.
IndexRangeT(T start, T end)
bool operator==(const IndexRangeT< T > &other) const
bool operator!=(const IndexRangeT< T > &other) const
IndexRangeT< T > operator+(T rhs) const
void clamp(const IndexRangeT< T > &other)
Clamp range using another range as limits.
T operator[](T localIndex) const
[]-operator
bool hasOverlap(const IndexRangeT< T > &other) const
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
IndexRangeT< agx::UInt32 > IndexRange32
IndexRangeT< agx::UInt > IndexRange
LinearProbingHashSetImplementation< KeyT, HashT >::iterator begin(LinearProbingHashSetImplementation< KeyT, HashT > &set)
VectorPOD< IndexRange > IndexRangeVector
IndexRangeT< agx::UInt64 > IndexRange64
VectorPOD< IndexRange32 > IndexRange32Vector
Vec3T< T > operator*(const Vec3T< T > &v, const AffineMatrix4x4T< T > &m)
LinearProbingHashSetImplementation< KeyT, HashT >::iterator end(LinearProbingHashSetImplementation< KeyT, HashT > &set)
AGXCORE_EXPORT const InvalidIndexStruct InvalidIndex
IndexRangeT< T > makeIndexRange(const T begin, const T end)
std::ostream & operator<<(std::ostream &stream, const AtomicValueT< T > &value)
VectorPOD< IndexRange64 > IndexRange64Vector