IMP  2.2.1
The Integrative Modeling Platform
base/live_objects.h
Go to the documentation of this file.
1 /**
2  * \file IMP/base/live_objects.h
3  * \brief A shared base class to help in debugging and things.
4  *
5  * Copyright 2007-2014 IMP Inventors. All rights reserved.
6  *
7  */
8 
9 #ifndef IMPBASE_LIVE_OBJECTS_H
10 #define IMPBASE_LIVE_OBJECTS_H
11 
12 #include <IMP/base/base_config.h>
13 #include "Object.h"
14 #include "types.h"
15 
16 IMPBASE_BEGIN_NAMESPACE
17 #if IMP_HAS_CHECKS
18 /** Return the names of all live objects, use this to check for memory
19  leaks.*/
20 IMPBASEEXPORT Strings get_live_object_names();
21 /** Return the points to all live objects, use this to check for memory
22  leaks.*/
23 IMPBASEEXPORT Objects get_live_objects();
24 
25 /** Set whether to complain about objects not being properly cleaned up.
26  */
27 IMPBASEEXPORT void set_show_leaked_objects(bool tf);
28 #endif
29 
30 IMPBASE_END_NAMESPACE
31 
32 #endif /* IMPBASE_LIVE_OBJECTS_H */
Basic types used by IMP.
IMP::base::Vector< IMP::base::Pointer< Object > > Objects
A list of objects.
Definition: base/types.h:61
IMP::base::Vector< String > Strings
Standard way to pass a bunch of String values.
Definition: base/types.h:51
void set_show_leaked_objects(bool tf)
A shared base class to help in debugging and things.
Objects get_live_objects()
Strings get_live_object_names()