Chemical Data Processing Library C++ API - Version 1.1.1
Public Types | Public Member Functions | Friends | List of all members
CDPL::Math::Range< S > Class Template Reference

#include <Range.hpp>

+ Inheritance diagram for CDPL::Math::Range< S >:

Public Types

typedef S SizeType
 

Public Member Functions

 Range ()
 
 Range (SizeType start, SizeType stop)
 
SizeType operator() (SizeType i) const
 
SizeType getStart () const
 
SizeType getStop () const
 
SizeType getSize () const
 
bool isEmpty () const
 
bool operator== (const Range &r) const
 
bool operator!= (const Range &r) const
 
void swap (Range &r)
 

Friends

void swap (Range &r1, Range &r2)
 

Member Typedef Documentation

◆ SizeType

template<typename S >
typedef S CDPL::Math::Range< S >::SizeType

Constructor & Destructor Documentation

◆ Range() [1/2]

template<typename S >
CDPL::Math::Range< S >::Range ( )
inline

◆ Range() [2/2]

template<typename S >
CDPL::Math::Range< S >::Range ( SizeType  start,
SizeType  stop 
)
inline

Member Function Documentation

◆ operator()()

template<typename S >
SizeType CDPL::Math::Range< S >::operator() ( SizeType  i) const
inline

◆ getStart()

template<typename S >
SizeType CDPL::Math::Range< S >::getStart ( ) const
inline

◆ getStop()

template<typename S >
SizeType CDPL::Math::Range< S >::getStop ( ) const
inline

◆ getSize()

template<typename S >
SizeType CDPL::Math::Range< S >::getSize ( ) const
inline

◆ isEmpty()

template<typename S >
bool CDPL::Math::Range< S >::isEmpty ( ) const
inline

◆ operator==()

template<typename S >
bool CDPL::Math::Range< S >::operator== ( const Range< S > &  r) const
inline

◆ operator!=()

template<typename S >
bool CDPL::Math::Range< S >::operator!= ( const Range< S > &  r) const
inline

◆ swap()

template<typename S >
void CDPL::Math::Range< S >::swap ( Range< S > &  r)
inline

Friends And Related Function Documentation

◆ swap

template<typename S >
void swap ( Range< S > &  r1,
Range< S > &  r2 
)
friend

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