59 for (
iterator it = begin(); it != end(); it++, np++)
80 while(!end && m_table->nparts_at_gridpoint(m_table->index(ix,iy,iz))==0){
109 return iterator(
this,m_xmax+1,m_ymax+1,m_zmax+1,0);
136 a_idx.first=m_table->
index(ix,iy,iz);
139 return m_table->
ptr(a_idx);
149 a_idx.first=m_table->
index(ix,iy,iz);
152 return m_table->
ref(a_idx);
158 template <
typename T>
173 template <
typename T>
192 template <
typename T>
193 ostream& operator<<(ostream& ost,const NTBlock<T>& NTB)
195 ost <<
"---NTBlock---"<< endl;
196 ost <<
"range: " << endl;
197 ost <<
"x: " << NTB.m_xmin <<
"-" << NTB.m_xmax << endl;
198 ost <<
"y: " << NTB.m_ymin <<
"-" << NTB.m_ymax << endl;
199 ost <<
"z: " << NTB.m_zmin <<
"-" << NTB.m_zmax << endl;
200 ost <<
"indices:" << endl;
201 for (
int ix=NTB.m_xmin;ix<=NTB.m_xmax;ix++){
202 for (
int iy=NTB.m_ymin;iy<=NTB.m_ymax;iy++){
203 for (
int iz=NTB.m_zmin;iz<=NTB.m_zmax;iz++){
204 ost << NTB.m_table->index(ix,iy,iz) <<
" ";