AGXDynamics  2.31.1.0
agxData::EntityRange Class Reference

#include <EntityPtr.h>

+ Inheritance diagram for agxData::EntityRange:

Public Types

typedef agx::UInt Type
 

Public Member Functions

 EntityRange ()
 
 EntityRange (EntityStorage *storage, size_t start, size_t end)
 
EntityPtr at (size_t index)
 
agx::UInt & begin ()
 
const agx::UInt & begin () const
 
void clamp (const IndexRangeT< agx::UInt > &other)
 Clamp range using another range as limits. More...
 
bool contains (agx::UInt index) const
 
bool empty () const
 
agx::UInt & end ()
 
const agx::UInt & end () const
 
bool hasOverlap (const IndexRangeT< agx::UInt > &other) const
 
bool hasOverlap (const IndexRangeT< agx::UInt64 > &other) const
 
bool hasOverlap (const IndexRangeT< agx::UInt32 > &other) const
 
 operator IndexRangeT< T2 > () const
 
bool operator!= (const IndexRangeT< agx::UInt > &other) const
 
IndexRangeT< agx::UInt > operator+ (agx::UInt rhs) const
 
IndexRangeT< agx::UInt > & operator+= (agx::UInt rhs)
 
IndexRangeT< agx::UInt > operator- (agx::UInt rhs) const
 
IndexRangeT< agx::UInt > & operator-= (agx::UInt rhs)
 
bool operator== (const IndexRangeT< agx::UInt > &other) const
 
agx::UInt operator[] (agx::UInt localIndex) const
 []-operator More...
 
EntityPtr operator[] (size_t index)
 
EntityRange operator[] (agx::IndexRange subRange)
 
void set (agx::UInt begin, agx::UInt end)
 Set the range. More...
 
agx::UInt size () const
 
bool valid () const
 

Detailed Description

Definition at line 247 of file EntityPtr.h.

Member Typedef Documentation

◆ Type

typedef agx::UInt agx::IndexRangeT< agx::UInt >::Type
inherited

Definition at line 35 of file IndexRange.h.

Constructor & Destructor Documentation

◆ EntityRange() [1/2]

agxData::EntityRange::EntityRange ( )

Definition at line 849 of file EntityStorage.h.

Referenced by operator[]().

◆ EntityRange() [2/2]

agxData::EntityRange::EntityRange ( EntityStorage *  storage,
size_t  start,
size_t  end 
)

Definition at line 852 of file EntityStorage.h.

Member Function Documentation

◆ at()

EntityPtr agxData::EntityRange::at ( size_t  index)
inline

Definition at line 856 of file EntityStorage.h.

References operator[]().

◆ begin() [1/2]

agx::UInt & agx::IndexRangeT< agx::UInt >::begin ( )
inherited
Returns
The beginning of the range.

Definition at line 214 of file IndexRange.h.

◆ begin() [2/2]

const agx::UInt & agx::IndexRangeT< agx::UInt >::begin ( ) const
inherited

Definition at line 221 of file IndexRange.h.

◆ clamp()

void agx::IndexRangeT< agx::UInt >::clamp ( const IndexRangeT< agx::UInt > &  other)
inherited

Clamp range using another range as limits.

Definition at line 200 of file IndexRange.h.

◆ contains()

bool agx::IndexRangeT< agx::UInt >::contains ( agx::UInt  index) const
inherited
Returns
True if the range contains a specified index.

Definition at line 174 of file IndexRange.h.

◆ empty()

bool agx::IndexRangeT< agx::UInt >::empty ( ) const
inherited
Returns
True if the range is empty.

Definition at line 171 of file IndexRange.h.

◆ end() [1/2]

agx::UInt & agx::IndexRangeT< agx::UInt >::end ( )
inherited
Returns
The end of the range.

Definition at line 217 of file IndexRange.h.

◆ end() [2/2]

const agx::UInt & agx::IndexRangeT< agx::UInt >::end ( ) const
inherited

Definition at line 224 of file IndexRange.h.

◆ hasOverlap() [1/3]

bool agx::IndexRangeT< agx::UInt >::hasOverlap ( const IndexRangeT< agx::UInt > &  other) const
inherited
Returns
True if the range has overlap with another range.

Definition at line 177 of file IndexRange.h.

References agxAbort.

◆ hasOverlap() [2/3]

bool agx::IndexRangeT< agx::UInt64 >::hasOverlap ( const IndexRangeT< agx::UInt64 > &  other) const
inherited

Definition at line 184 of file IndexRange.h.

◆ hasOverlap() [3/3]

bool agx::IndexRangeT< agx::UInt32 >::hasOverlap ( const IndexRangeT< agx::UInt32 > &  other) const
inherited

Definition at line 192 of file IndexRange.h.

◆ operator IndexRangeT< T2 >()

agx::IndexRangeT< agx::UInt >::operator IndexRangeT< T2 > ( ) const
inherited

Definition at line 157 of file IndexRange.h.

◆ operator!=()

bool agx::IndexRangeT< agx::UInt >::operator!= ( const IndexRangeT< agx::UInt > &  other) const
inherited

Definition at line 237 of file IndexRange.h.

◆ operator+()

IndexRangeT< agx::UInt > agx::IndexRangeT< agx::UInt >::operator+ ( agx::UInt  rhs) const
inherited

Definition at line 244 of file IndexRange.h.

◆ operator+=()

IndexRangeT< agx::UInt > & agx::IndexRangeT< agx::UInt >::operator+= ( agx::UInt  rhs)
inherited

Definition at line 247 of file IndexRange.h.

◆ operator-()

IndexRangeT< agx::UInt > agx::IndexRangeT< agx::UInt >::operator- ( agx::UInt  rhs) const
inherited

Definition at line 250 of file IndexRange.h.

◆ operator-=()

IndexRangeT< agx::UInt > & agx::IndexRangeT< agx::UInt >::operator-= ( agx::UInt  rhs)
inherited

Definition at line 253 of file IndexRange.h.

◆ operator==()

bool agx::IndexRangeT< agx::UInt >::operator== ( const IndexRangeT< agx::UInt > &  other) const
inherited

Definition at line 231 of file IndexRange.h.

◆ operator[]() [1/3]

agx::UInt agx::IndexRangeT< agx::UInt >::operator[] ( agx::UInt  localIndex) const
inherited

[]-operator

Definition at line 227 of file IndexRange.h.

◆ operator[]() [2/3]

EntityPtr agxData::EntityRange::operator[] ( size_t  index)
inline

◆ operator[]() [3/3]

EntityRange agxData::EntityRange::operator[] ( agx::IndexRange  subRange)

◆ set()

void agx::IndexRangeT< agx::UInt >::set ( agx::UInt  begin,
agx::UInt  end 
)
inherited

Set the range.

Definition at line 164 of file IndexRange.h.

References agxAssert, agx::begin(), and agx::end().

◆ size()

agx::UInt agx::IndexRangeT< agx::UInt >::size ( ) const
inherited
Returns
The size of the range.

Definition at line 168 of file IndexRange.h.

Referenced by operator[]().

◆ valid()

bool agx::IndexRangeT< agx::UInt >::valid ( ) const
inherited
Returns
false if begin > end

Definition at line 207 of file IndexRange.h.


The documentation for this class was generated from the following files: