|
AGX Dynamics
2.35.0.1
|
A range of indices. More...
#include <IndexRange.h>
Classes | |
| class | iterator |
| Index range iterator. More... | |
Public Types | |
| typedef T | Type |
Public Member Functions | |
| IndexRangeT () | |
| IndexRangeT (T start, T end) | |
| T & | begin () |
| const T & | begin () const |
| void | clamp (const IndexRangeT< T > &other) |
| Clamp range using another range as limits. More... | |
| bool | contains (T index) const |
| bool | empty () const |
| T & | end () |
| const T & | end () const |
| bool | hasOverlap (const IndexRangeT< agx::UInt32 > &other) const |
| bool | hasOverlap (const IndexRangeT< agx::UInt64 > &other) const |
| bool | hasOverlap (const IndexRangeT< T > &other) const |
| template<typename T2 > | |
| operator IndexRangeT< T2 > () const | |
| bool | operator!= (const IndexRangeT< T > &other) const |
| IndexRangeT< T > | operator+ (T rhs) const |
| IndexRangeT< T > & | operator+= (T rhs) |
| IndexRangeT< T > | operator- (T rhs) const |
| IndexRangeT< T > & | operator-= (T rhs) |
| bool | operator== (const IndexRangeT< T > &other) const |
| T | operator[] (T localIndex) const |
| []-operator More... | |
| void | set (T begin, T end) |
| Set the range. More... | |
| T | size () const |
| bool | valid () const |
A range of indices.
Definition at line 32 of file IndexRange.h.
| typedef T agx::IndexRangeT< T >::Type |
Definition at line 36 of file IndexRange.h.
| agx::IndexRangeT< T >::IndexRangeT |
Definition at line 151 of file IndexRange.h.
| agx::IndexRangeT< T >::IndexRangeT | ( | T | start, |
| T | end | ||
| ) |
Definition at line 154 of file IndexRange.h.
References agxAssert, and agx::IndexRangeT< T >::end().
| T & agx::IndexRangeT< T >::begin |
Definition at line 214 of file IndexRange.h.
Referenced by agxData::AbstractArray::AbstractArray(), agxData::Array< T >::Array(), agx::operator<<(), agxData::EntityRange::operator[](), agxData::Array< T >::slice(), and agxData::AbstractArray::sync().
| const T & agx::IndexRangeT< T >::begin |
Definition at line 221 of file IndexRange.h.
| void agx::IndexRangeT< T >::clamp | ( | const IndexRangeT< T > & | other | ) |
Clamp range using another range as limits.
Definition at line 200 of file IndexRange.h.
| bool agx::IndexRangeT< T >::contains | ( | T | index | ) | const |
Definition at line 174 of file IndexRange.h.
| bool agx::IndexRangeT< T >::empty |
Definition at line 171 of file IndexRange.h.
| T & agx::IndexRangeT< T >::end |
Definition at line 217 of file IndexRange.h.
Referenced by agxData::AbstractArray::AbstractArray(), agxData::Array< T >::Array(), agx::IndexListRange< T >::IndexListRange(), agx::IndexRangeT< T >::IndexRangeT(), agx::createCell(), agxData::AbstractArray::init(), agx::operator<<(), agxData::EntityRange::operator[](), agxData::AbstractArray::setRange(), agxData::Array< T >::slice(), and agxVehicle::utils::splitNonconsecutive().
| const T & agx::IndexRangeT< T >::end |
Definition at line 224 of file IndexRange.h.
| bool agx::IndexRangeT< agx::UInt32 >::hasOverlap | ( | const IndexRangeT< agx::UInt32 > & | other | ) | const |
Definition at line 192 of file IndexRange.h.
| bool agx::IndexRangeT< agx::UInt64 >::hasOverlap | ( | const IndexRangeT< agx::UInt64 > & | other | ) | const |
Definition at line 184 of file IndexRange.h.
| bool agx::IndexRangeT< T >::hasOverlap | ( | const IndexRangeT< T > & | other | ) | const |
Definition at line 177 of file IndexRange.h.
References agxAbort.
Definition at line 157 of file IndexRange.h.
| bool agx::IndexRangeT< T >::operator!= | ( | const IndexRangeT< T > & | other | ) | const |
Definition at line 237 of file IndexRange.h.
| IndexRangeT< T > agx::IndexRangeT< T >::operator+ | ( | T | rhs | ) | const |
Definition at line 244 of file IndexRange.h.
| IndexRangeT< T > & agx::IndexRangeT< T >::operator+= | ( | T | rhs | ) |
Definition at line 247 of file IndexRange.h.
| IndexRangeT< T > agx::IndexRangeT< T >::operator- | ( | T | rhs | ) | const |
Definition at line 250 of file IndexRange.h.
| IndexRangeT< T > & agx::IndexRangeT< T >::operator-= | ( | T | rhs | ) |
Definition at line 253 of file IndexRange.h.
| bool agx::IndexRangeT< T >::operator== | ( | const IndexRangeT< T > & | other | ) | const |
Definition at line 231 of file IndexRange.h.
| T agx::IndexRangeT< T >::operator[] | ( | T | localIndex | ) | const |
[]-operator
Definition at line 227 of file IndexRange.h.
| void agx::IndexRangeT< T >::set | ( | T | begin, |
| T | end | ||
| ) |
Set the range.
Definition at line 164 of file IndexRange.h.
References agxAssert, agx::begin(), and agx::end().
| T agx::IndexRangeT< T >::size |
Definition at line 168 of file IndexRange.h.
Referenced by agxData::AbstractArray::AbstractArray(), agxData::AbstractArray::empty(), agx::RangeJob::init(), and agxData::AbstractArray::size().
| bool agx::IndexRangeT< T >::valid |
Definition at line 207 of file IndexRange.h.