17 #ifndef AGXDATA_RANGE_H 18 #define AGXDATA_RANGE_H 41 template <
typename T2>
48 const T&
begin()
const;
113 template <
typename T>
119 template <
typename T>
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>
258 std::ostream& operator << ( std::ostream& output, const IndexRangeT<T>& range )
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>
bool operator==(const IndexRangeT< T > &other) const
IndexRangeT< T > operator-(T rhs) const
bool operator!=(const IndexRangeT< T > &other) const
bool hasOverlap(const IndexRangeT< T > &other) const
bool operator==(T val, InvalidIndexStruct)
AGXCORE_EXPORT const InvalidIndexStruct InvalidIndex
void clamp(const IndexRangeT< T > &other)
Clamp range using another range as limits.
IndexRangeT< T > & operator+=(T rhs)
IndexRangeT< T > makeIndexRange(const T begin, const T end)
AgXString< T > operator+(const Indentation &indentation, const AgXString< T > &str)
VectorPOD< IndexRange > IndexRangeVector
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
ItT operator-(const ItT &it, const agx::ItOp &inc)
IndexRangeT< agx::UInt > IndexRange
IndexRangeT< agx::UInt64 > IndexRange64
T operator[](T localIndex) const
[]-operator
LinearProbingHashSetImplementation< KeyT, HashT >::iterator begin(LinearProbingHashSetImplementation< KeyT, HashT > &set)
VectorPOD< IndexRange64 > IndexRange64Vector
IndexRangeT< T > & operator-=(T rhs)
IndexRangeT< T > operator+(T rhs) const
T1 clamp(T1 v, T2 minimum, T3 maximum)
LinearProbingHashSetImplementation< KeyT, HashT >::iterator end(LinearProbingHashSetImplementation< KeyT, HashT > &set)
bool operator!=(T val, InvalidIndexStruct)
VectorPOD< IndexRange32 > IndexRange32Vector
IndexRangeT< agx::UInt32 > IndexRange32
Vec3T< T > operator*(const Vec3T< T > &v, const AffineMatrix4x4T< T > &m)
bool contains(T index) const
AGXCABLE_EXPORT SegmentDamage & operator+=(SegmentDamage &lhs, const SegmentDamage &rhs)