|
ESyS-Particle
2.3.4
|
representation of a slab of the search array of a NeigborTable More...
#include <nt_slab.h>

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 &) |
representation of a slab of the search array of a NeigborTable
| typedef NTSlab_iter<T> NTSlab< T >::const_iterator |
| typedef NTSlab_iter<T> NTSlab< T >::iterator |
| typedef T NTSlab< T >::value_type |
Construct an empty NTSlab
References NTSlab< T >::m_table, and NULL.
| NTSlab< T >::NTSlab | ( | NeighborTable< T > * | t, |
| DSlice | s | ||
| ) |
Return an iterator pointing to the first particle in the slab
Referenced by ParallelParticleArray< T >::exchange_single(), ParallelParticleArray< T >::get2ndSlabIds(), ParallelParticleArray< T >::getBoundarySlabIds(), main(), and ParallelParticleArray< T >::rebuild().

Return an iterator pointing past the last particle in the slab
Referenced by ParallelParticleArray< T >::exchange_single(), ParallelParticleArray< T >::get2ndSlabIds(), ParallelParticleArray< T >::getBoundarySlabIds(), main(), and ParallelParticleArray< T >::rebuild().

Insert single item. The iterator parameter is only there to ensure inteface compatibility with STL containers and ignored otherwise.
| data | the item to be inserted |
Referenced by main().

|
inline |
References NTSlab< T >::m_sl, and NTSlab< T >::m_table.
| T * NTSlab< T >::ptr | ( | typename NeighborTable< T >::indextype | idx | ) |
Return pointer to particle at index. Does the translation from the slab index to the array index.
| idx | the index |
References NeighborTable< T >::ptr().

| T & NTSlab< T >::ref | ( | typename NeighborTable< T >::indextype | idx | ) |
Return reference to particle at index. Does the translation from the slab index to the array index.
| idx | the index |
References NeighborTable< T >::ref().

number of particles at a given gridpoint
Return an iterator pointing before the first particle in the slab
Referenced by main().

| unsigned int NTSlab< T >::size |
get the number of particles in the slab
Referenced by ParallelParticleArray< T >::exchange_single(), and main().

|
inline |
References NTSlab< T >::m_sl, and DSlice::size().
Referenced by operator<<().


|
friend |
Referenced by NTSlab< T >::nparts_at_gridpoint(), operator!=(), operator<<(), operator==(), and NTSlab< T >::slab_size().
|
private |
Referenced by NTSlab< T >::nparts_at_gridpoint(), NTSlab< T >::NTSlab(), operator!=(), and operator==().