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