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
const_iterator begin() const
void remove(T num, T begin)
void increment(const Key &level, T nTimes=T(1))
T getLocalNumAtLevel(T level) const
const T & operator[](T level) const
std::map< Key, T >::size_type size_type
AmrParticleLevelCounter()
std::map< Key, T >::value_type value_type
void decrement(const Key &level, T nTimes=T(1))
T getLocalNumUpToLevel(T level) const
std::map< Key, T > count_m
std::map< Key, T >::iterator iterator
const_iterator end() const
std::map< Key, T >::const_iterator const_iterator