ESyS-Particle  2.3.4
NTSlab Class Reference

representation of a slab of the search array of a NeigborTable More...

#include <nt_slab.h>

Inheritance diagram for NTSlab:
Collaboration diagram for NTSlab:

Public Types

typedef NTSlab_iter< T > iterator
 
typedef NTSlab_iter< T > const_iterator
 
typedef T value_type
 

Public Member Functions

 NTSlab ()
 
 NTSlab (NeighborTable< T > *, DSlice)
 
unsigned int slab_size () const
 
unsigned int size () const
 
iterator begin ()
 
iterator end ()
 
iterator rbegin ()
 
iterator rend ()
 number of particles at a given gridpoint More...
 
unsigned int nparts_at_gridpoint (unsigned int idx) const
 
T * ptr (typename NeighborTable< T >::indextype)
 
T & ref (typename NeighborTable< T >::indextype)
 
void insert (iterator, const T &)
 
void erase (iterator)
 
void erase (iterator, iterator)
 

Private Attributes

NeighborTable< T > * m_table
 
DSlice m_sl
 

Friends

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

Detailed Description

representation of a slab of the search array of a NeigborTable

Member Typedef Documentation

◆ const_iterator

◆ iterator

◆ value_type

typedef T NTSlab::value_type

Constructor & Destructor Documentation

◆ NTSlab() [1/2]

NTSlab::NTSlab ( )

◆ NTSlab() [2/2]

NTSlab::NTSlab ( NeighborTable< T > *  ,
DSlice   
)

Member Function Documentation

◆ begin()

iterator NTSlab::begin ( )

Referenced by main().

Here is the caller graph for this function:

◆ end()

iterator NTSlab::end ( )

Referenced by main().

Here is the caller graph for this function:

◆ erase() [1/2]

void NTSlab::erase ( iterator  )

◆ erase() [2/2]

void NTSlab::erase ( iterator  ,
iterator   
)

◆ insert()

void NTSlab::insert ( iterator  ,
const T &   
)

Referenced by main().

Here is the caller graph for this function:

◆ nparts_at_gridpoint()

unsigned int NTSlab::nparts_at_gridpoint ( unsigned int  idx) const
inline

◆ ptr()

T* NTSlab::ptr ( typename NeighborTable< T >::indextype  )

◆ rbegin()

iterator NTSlab::rbegin ( )

Referenced by main().

Here is the caller graph for this function:

◆ ref()

T& NTSlab::ref ( typename NeighborTable< T >::indextype  )

◆ rend()

iterator NTSlab::rend ( )

number of particles at a given gridpoint

Referenced by main().

Here is the caller graph for this function:

◆ size()

unsigned int NTSlab::size ( ) const

Referenced by main().

Here is the caller graph for this function:

◆ slab_size()

unsigned int NTSlab::slab_size ( ) const
inline

Referenced by operator<<().

Here is the caller graph for this function:

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( const NTSlab ,
const NTSlab  
)
friend

◆ operator<<

ostream& operator<< ( ostream &  ,
const NTSlab  
)
friend

◆ operator==

bool operator== ( const NTSlab ,
const NTSlab  
)
friend

Member Data Documentation

◆ m_sl

◆ m_table

NeighborTable<T>* NTSlab::m_table
private

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