|
AGX Dynamics
2.37.3.2
|
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< T > &other) const |
| template<> | |
| bool | hasOverlap (const IndexRangeT< agx::UInt64 > &other) const |
| template<> | |
| bool | hasOverlap (const IndexRangeT< agx::UInt32 > &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 35 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.
| T & agx::IndexRangeT< T >::begin | ( | ) |
Definition at line 214 of file IndexRange.h.
Referenced by agxData::AbstractArray::AbstractArray(), agxData::Array< JacobianElementT >::Array(), agx::IndexListRange< T >::begin(), agxSDK::MergeSplitParallelReferencedDataKernel< T >::onPostExecute(), agx::ParallelRaContainerKernel< T >::onPostExecute(), agx::operator<<(), agxData::EntityRange::operator[](), agxData::Array< JacobianElementT >::slice(), and agxData::AbstractArray::sync().
| const T & agx::IndexRangeT< T >::begin | ( | ) | const |
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 | ( | ) | const |
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< JacobianElementT >::Array(), agx::createCell(), agxData::Vector< T >::decrement(), agx::IndexListRange< T >::end(), agxData::Vector< T >::increment(), agx::IndexListRange< T >::IndexListRange(), agxData::AbstractArray::init(), agxSDK::MergeSplitParallelReferencedDataKernel< T >::onPostExecute(), agx::ParallelRaContainerKernel< T >::onPostExecute(), agxData::EntityRange::operator[](), agxData::Vector< T >::pop_back(), agxData::Vector< T >::push_back(), agxData::AbstractArray::setRange(), agxData::Array< JacobianElementT >::slice(), and agxVehicle::utils::splitNonconsecutive().
| const T & agx::IndexRangeT< T >::end | ( | ) | const |
Definition at line 224 of file IndexRange.h.
| bool agx::IndexRangeT< T >::hasOverlap | ( | const IndexRangeT< T > & | other | ) | const |
Definition at line 177 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< agx::UInt32 >::hasOverlap | ( | const IndexRangeT< agx::UInt32 > & | other | ) | const |
Definition at line 192 of file IndexRange.h.
| agx::IndexRangeT< T >::operator IndexRangeT< T2 > | ( | ) | const |
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.
| T agx::IndexRangeT< T >::size | ( | ) | const |
Definition at line 168 of file IndexRange.h.
Referenced by agxData::AbstractArray::AbstractArray(), agxData::AbstractArray::empty(), agx::RangeJob::init(), agx::IndexListRange< T >::size(), and agxData::AbstractArray::size().
| bool agx::IndexRangeT< T >::valid | ( | ) | const |
Definition at line 207 of file IndexRange.h.