AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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::UIntindex) const
 
bool empty () const
 
agx::UInt & end ()
 
const agx::UInt & end () const
 
bool hasOverlap (const IndexRangeT< agx::UInt > &other) const
 
 operator IndexRangeT< T2 > () const
 
bool operator!= (const IndexRangeT< agx::UInt > &other) const
 
IndexRangeT< agx::UInt > operator+ (agx::UIntrhs) const
 
IndexRangeT< agx::UInt > & operator+= (agx::UIntrhs)
 
IndexRangeT< agx::UInt > operator- (agx::UIntrhs) const
 
IndexRangeT< agx::UInt > & operator-= (agx::UIntrhs)
 
bool operator== (const IndexRangeT< agx::UInt > &other) const
 
agx::UInt operator[] (agx::UIntlocalIndex) const
 []-operator More...
 
EntityPtr operator[] (size_t index)
 
EntityRange operator[] (agx::IndexRange subRange)
 
void set (agx::UIntbegin, agx::UIntend)
 Set the range. More...
 
agx::UInt size () const
 
bool valid () const
 

Detailed Description

Definition at line 247 of file EntityPtr.h.

Member Typedef Documentation

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

Definition at line 35 of file IndexRange.h.

Constructor & Destructor Documentation

agxData::EntityRange::EntityRange ( )

Definition at line 849 of file EntityStorage.h.

Referenced by operator[]().

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

Definition at line 852 of file EntityStorage.h.

Member Function Documentation

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

Definition at line 856 of file EntityStorage.h.

References operator[]().

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

Clamp range using another range as limits.

bool agx::IndexRangeT< agx::UInt >::contains ( agx::UInt  index) const
inherited
Returns
True if the range contains a specified index.
bool agx::IndexRangeT< agx::UInt >::empty ( ) const
inherited
Returns
True if the range is empty.
agx::UInt & agx::IndexRangeT< agx::UInt >::end ( )
inherited
Returns
The end of the range.
const agx::UInt & agx::IndexRangeT< agx::UInt >::end ( ) const
inherited
bool agx::IndexRangeT< agx::UInt >::hasOverlap ( const IndexRangeT< agx::UInt > &  other) const
inherited
Returns
True if the range has overlap with another range.
agx::IndexRangeT< agx::UInt >::operator IndexRangeT< T2 > ( ) const
inherited
bool agx::IndexRangeT< agx::UInt >::operator!= ( const IndexRangeT< agx::UInt > &  other) const
inherited
IndexRangeT<agx::UInt > agx::IndexRangeT< agx::UInt >::operator+ ( agx::UInt  rhs) const
inherited
IndexRangeT<agx::UInt >& agx::IndexRangeT< agx::UInt >::operator+= ( agx::UInt  rhs)
inherited
IndexRangeT<agx::UInt > agx::IndexRangeT< agx::UInt >::operator- ( agx::UInt  rhs) const
inherited
IndexRangeT<agx::UInt >& agx::IndexRangeT< agx::UInt >::operator-= ( agx::UInt  rhs)
inherited
bool agx::IndexRangeT< agx::UInt >::operator== ( const IndexRangeT< agx::UInt > &  other) const
inherited
agx::UInt agx::IndexRangeT< agx::UInt >::operator[] ( agx::UInt  localIndex) const
inherited

[]-operator

EntityPtr agxData::EntityRange::operator[] ( size_t  index)
inline
EntityRange agxData::EntityRange::operator[] ( agx::IndexRange  subRange)
void agx::IndexRangeT< agx::UInt >::set ( agx::UInt  begin,
agx::UInt  end 
)
inherited

Set the range.

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

Referenced by operator[]().

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

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