AGXDynamics  2.35.0.2
agxData::EntityRange Class Reference

#include <EntityPtr.h>

+ Inheritance diagram for agxData::EntityRange:

Public Member Functions

 EntityRange ()
 
 EntityRange (EntityStorage *storage, size_t start, size_t end)
 
EntityPtr at (size_t index)
 
EntityRange operator[] (agx::IndexRange subRange)
 
EntityPtr operator[] (size_t index)
 
- Public Member Functions inherited from agx::IndexRangeT< T >
 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
 

Additional Inherited Members

- Public Types inherited from agx::IndexRangeT< T >
typedef T Type
 

Detailed Description

Definition at line 247 of file EntityPtr.h.

Constructor & Destructor Documentation

◆ EntityRange() [1/2]

agxData::EntityRange::EntityRange ( )

Definition at line 848 of file EntityStorage.h.

Referenced by operator[]().

◆ EntityRange() [2/2]

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

Definition at line 851 of file EntityStorage.h.

Member Function Documentation

◆ at()

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

Definition at line 855 of file EntityStorage.h.

References operator[]().

◆ operator[]() [1/2]

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

◆ operator[]() [2/2]

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

Definition at line 858 of file EntityStorage.h.

References agxAssert, agxData::EntityStorage::indexToId(), and agx::IndexRangeT< T >::size().

Referenced by at().


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