Go to the documentation of this file.
42 for(
unsigned int i=0;i<m_sl.size();i++){
43 np+=m_table->nparts_at_gridpoint(m_sl[i]);
61 (m_table->nparts_at_gridpoint(m_sl[i]) == 0)
97 nparts_at_gridpoint(i)==0){
100 j=nparts_at_gridpoint(i)-1;
133 a_idx.first=m_sl[idx.first];
134 a_idx.second=idx.second;
136 return m_table->
ptr(a_idx);
149 a_idx.first=m_sl[idx.first];
150 a_idx.second=idx.second;
152 return m_table->
ref(a_idx);
165 m_table->insert(data);
180 a_idx.first=m_sl[pos.
index().first];
181 a_idx.second=pos.
index().second;
182 m_table->erase(a_idx);
206 template <
typename T>
212 template <
typename T>
227 ost <<
"---NTSlab---" << endl;
228 ost <<
"indices:" << endl;
229 for(
unsigned int i=0;i<NTS.
slab_size();i++){
230 ost << NTS.
m_sl[i] <<
" ";
bool operator==(const NTSlab< T > &s1, const NTSlab< T > &s2)
Definition: nt_slab.hpp:207
NeighborTable< T > * m_table
Definition: nt_slab.h:42
iterator rbegin()
Definition: nt_slab.hpp:90
T & ref(NeighborTable< T >::indextype)
Definition: ntable.hpp:225
void insert(iterator, const T &)
Definition: nt_slab.hpp:163
T * ptr(NeighborTable< T >::indextype)
Definition: ntable.hpp:216
NTSlab_iter< T > iterator
Definition: nt_slab.h:37
bool operator!=(const NTSlab< T > &s1, const NTSlab< T > &s2)
Definition: nt_slab.hpp:213
T * ptr(typename NeighborTable< T >::indextype)
Definition: nt_slab.hpp:130
iterator rend()
number of particles at a given gridpoint
Definition: nt_slab.hpp:114
unsigned int slab_size() const
Definition: nt_slab.h:50
pair< int, int > indextype
Definition: ntable.h:72
representation of a slab of the search array of a NeigborTable
Definition: nt_slab.h:35
NTSlab()
Definition: nt_slab.hpp:17
#define NULL
Definition: t_list.h:17
T & ref(typename NeighborTable< T >::indextype)
Definition: nt_slab.hpp:146
class for neighbor search
Definition: ntable.h:68
boost::python::object iter(const boost::python::object &pyOb)
Definition: Util.h:25
ostream & operator<<(ostream &ost, const NTSlab< T > &NTS)
Definition: nt_slab.hpp:225
unsigned int size() const
Definition: nt_slab.hpp:38
iterator for a NTSlab
Definition: nts_iter.h:39
iterator begin()
Definition: nt_slab.hpp:54
NeighborTable< T >::indextype index() const
Definition: nts_iter.hpp:118
DSlice m_sl
Definition: nt_slab.h:43
iterator end()
Definition: nt_slab.hpp:76