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

#include <Slice.hpp>

+ Inheritance diagram for CDPL::Math::Slice< S, D >:

Public Types

typedef S SizeType
 
typedef D DifferenceType
 

Public Member Functions

 Slice ()
 
 Slice (SizeType start, DifferenceType stride, SizeType size)
 
SizeType operator() (SizeType i) const
 
SizeType getStart () const
 
DifferenceType getStride () const
 
SizeType getSize () const
 
bool isEmpty () const
 
bool operator== (const Slice &s) const
 
bool operator!= (const Slice &s) const
 
void swap (Slice &s)
 

Friends

void swap (Slice &s1, Slice &s2)
 

Member Typedef Documentation

◆ SizeType

template<typename S , typename D >
typedef S CDPL::Math::Slice< S, D >::SizeType

◆ DifferenceType

template<typename S , typename D >
typedef D CDPL::Math::Slice< S, D >::DifferenceType

Constructor & Destructor Documentation

◆ Slice() [1/2]

template<typename S , typename D >
CDPL::Math::Slice< S, D >::Slice ( )
inline

◆ Slice() [2/2]

template<typename S , typename D >
CDPL::Math::Slice< S, D >::Slice ( SizeType  start,
DifferenceType  stride,
SizeType  size 
)
inline

Member Function Documentation

◆ operator()()

template<typename S , typename D >
SizeType CDPL::Math::Slice< S, D >::operator() ( SizeType  i) const
inline

◆ getStart()

template<typename S , typename D >
SizeType CDPL::Math::Slice< S, D >::getStart ( ) const
inline

◆ getStride()

template<typename S , typename D >
DifferenceType CDPL::Math::Slice< S, D >::getStride ( ) const
inline

◆ getSize()

template<typename S , typename D >
SizeType CDPL::Math::Slice< S, D >::getSize ( ) const
inline

◆ isEmpty()

template<typename S , typename D >
bool CDPL::Math::Slice< S, D >::isEmpty ( ) const
inline

◆ operator==()

template<typename S , typename D >
bool CDPL::Math::Slice< S, D >::operator== ( const Slice< S, D > &  s) const
inline

◆ operator!=()

template<typename S , typename D >
bool CDPL::Math::Slice< S, D >::operator!= ( const Slice< S, D > &  s) const
inline

◆ swap()

template<typename S , typename D >
void CDPL::Math::Slice< S, D >::swap ( Slice< S, D > &  s)
inline

Friends And Related Function Documentation

◆ swap

template<typename S , typename D >
void swap ( Slice< S, D > &  s1,
Slice< S, D > &  s2 
)
friend

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