20 #ifndef LIBMESH_REFERENCE_COUNTER_H 21 #define LIBMESH_REFERENCE_COUNTER_H 96 #if defined(LIBMESH_ENABLE_REFERENCE_COUNTING) && defined(DEBUG) 116 typedef std::map<std::string, std::pair<
unsigned int,
179 #if defined(LIBMESH_ENABLE_REFERENCE_COUNTING) && defined(DEBUG) 184 std::pair<unsigned int, unsigned int> & p =
_counts[
name];
192 #if defined(LIBMESH_ENABLE_REFERENCE_COUNTING) && defined(DEBUG) 197 std::pair<unsigned int, unsigned int> & p =
_counts[
name];
207 #endif // LIBMESH_REFERENCE_COUNTER_H std::string name(const ElemQuality q)
static Threads::atomic< unsigned int > _n_objects
static unsigned int n_objects()
void increment_constructor_count(const std::string &name)
std::map< std::string, std::pair< unsigned int, unsigned int > > Counts
static std::string get_info()
Common base for all objects whose creations/destructions are counted.
static Threads::spin_mutex _mutex
void increment_destructor_count(const std::string &name)
static bool _enable_print_counter
static void enable_print_counter_info()
static void print_info(std::ostream &out=libMesh::out)
static void disable_print_counter_info()
OStreamProxy out(std::cout)