26 #ifndef AMR_PARTICLE_LEVEL_COUNTER_H
27 #define AMR_PARTICLE_LEVEL_COUNTER_H
37 class Compare = std::less<Key>,
38 class Allocator = std::allocator<std::pair<const Key, T> >
44 typedef typename std::map<Key, T>::size_type
size_type;
93 return std::accumulate(
count_m.begin(),
end, 0,
95 return sum + value_pair.second;
115 while ( inum > -1 ) {
138 for (
T i = 0; i <= level; ++i) {
162 while ( idx >=
end(level) && level <
size() )
T * value_type(const SliceIterator< T > &)
T::PETE_Expr_t::PETE_Return_t sum(const PETE_Expr< T > &expr)
std::string::iterator iterator
std::map< Key, T >::value_type value_type
const T & operator[](T level) const
const_iterator begin() const
std::map< Key, T >::const_iterator const_iterator
std::map< Key, T >::size_type size_type
void remove(T num, T begin)
std::map< Key, T >::iterator iterator
void increment(const Key &level, T nTimes=T(1))
T getLocalNumAtLevel(T level) const
AmrParticleLevelCounter()
void decrement(const Key &level, T nTimes=T(1))
T getLocalNumUpToLevel(T level) const
std::map< Key, T > count_m
const_iterator end() const