JX Application Framework
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
JRange< T > Class Template Reference

#include <JRange.h>

Public Member Functions

 JRange ()
 
 JRange (const T firstIndex, const T lastIndex)
 
bool Is (const T firstIndex, const T lastIndex) const
 
bool IsEmpty () const
 
JSize GetCount () const
 
bool Contains (const T index) const
 
bool Contains (const JRange< T > &range) const
 
void Set (const T firstIndex, const T lastIndex)
 
void SetFirstAndCount (const T firstIndex, const JSize count)
 
bool IsNothing () const
 
void SetToNothing ()
 
void SetToEmptyAt (const T firstIndex)
 
JRangeoperator+= (const T offset)
 
JRangeoperator-= (const T offset)
 
JRangeoperator+= (const JRange &range)
 

Public Attributes

first
 
last
 

Constructor & Destructor Documentation

◆ JRange() [1/2]

template<class T >
JRange< T >::JRange ( )

◆ JRange() [2/2]

template<class T >
JRange< T >::JRange ( const T  firstIndex,
const T  lastIndex 
)

Member Function Documentation

◆ Contains() [1/2]

template<class T >
bool JRange< T >::Contains ( const JRange< T > &  range) const
inline

◆ Contains() [2/2]

template<class T >
bool JRange< T >::Contains ( const T  index) const
inline

◆ GetCount()

template<class T >
JSize JRange< T >::GetCount ( ) const
inline

◆ Is()

template<class T >
bool JRange< T >::Is ( const T  firstIndex,
const T  lastIndex 
) const
inline

◆ IsEmpty()

template<class T >
bool JRange< T >::IsEmpty ( ) const
inline

◆ IsNothing()

template<class T >
bool JRange< T >::IsNothing ( ) const
inline

◆ operator+=() [1/2]

template<class T >
JRange< T > & JRange< T >::operator+= ( const JRange< T > &  range)

◆ operator+=() [2/2]

template<class T >
JRange & JRange< T >::operator+= ( const T  offset)
inline

◆ operator-=()

template<class T >
JRange & JRange< T >::operator-= ( const T  offset)
inline

◆ Set()

template<class T >
void JRange< T >::Set ( const T  firstIndex,
const T  lastIndex 
)
inline

◆ SetFirstAndCount()

template<class T >
void JRange< T >::SetFirstAndCount ( const T  firstIndex,
const JSize  count 
)
inline

◆ SetToEmptyAt()

template<class T >
void JRange< T >::SetToEmptyAt ( const T  firstIndex)
inline

◆ SetToNothing()

template<class T >
void JRange< T >::SetToNothing ( )
inline

Member Data Documentation

◆ first

template<class T >
T JRange< T >::first

◆ last

template<class T >
T JRange< T >::last

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