ESyS-Particle  2.3.4
DSlice Class Reference

#include <dslice.h>

Public Member Functions

 DSlice (int st, int l1, int s1, int l2, int s2)
 
unsigned int size () const
 
int operator[] (int idx) const
 

Private Attributes

int m_start
 
int m_length1
 
int m_length2
 
int m_stride1
 
int m_stride2
 

Friends

bool operator== (const DSlice &, const DSlice &)
 
bool operator!= (const DSlice &, const DSlice &)
 
ostream & operator<< (ostream &, const DSlice &)
 

Constructor & Destructor Documentation

◆ DSlice()

DSlice::DSlice ( int  st,
int  l1,
int  s1,
int  l2,
int  s2 
)
inline

Member Function Documentation

◆ operator[]()

int DSlice::operator[] ( int  idx) const
inline

References m_length1, m_start, m_stride1, and m_stride2.

◆ size()

unsigned int DSlice::size ( ) const
inline

References m_length1, and m_length2.

Referenced by NTSlab< T >::slab_size().

Here is the caller graph for this function:

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( const DSlice s1,
const DSlice s2 
)
friend

◆ operator<<

ostream& operator<< ( ostream &  ost,
const DSlice s 
)
friend

◆ operator==

bool operator== ( const DSlice s1,
const DSlice s2 
)
friend

Member Data Documentation

◆ m_length1

int DSlice::m_length1
private

◆ m_length2

int DSlice::m_length2
private

◆ m_start

int DSlice::m_start
private

◆ m_stride1

int DSlice::m_stride1
private

◆ m_stride2

int DSlice::m_stride2
private

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