IMP Reference Guide
2.13.0
The Integrative Modeling Platform
|
Various general useful macros for IMP. More...
Go to the source code of this file.
Macros | |
#define | IMP_REF_COUNTED_DESTRUCTOR(Name) |
Ref counted objects should have private destructors. More... | |
#define | IMP_REF_COUNTED_INLINE_DESTRUCTOR(Name, destructor) |
#define | IMP_REF_COUNTED_NONTRIVIAL_DESTRUCTOR(Name) |
Various general useful macros for IMP.
Copyright 2007-2020 IMP Inventors. All rights reserved.
Definition in file ref_counted_macros.h.
#define IMP_REF_COUNTED_DESTRUCTOR | ( | Name | ) |
Ref counted objects should have private destructors.
This macro defines a private destructor and adds the appropriate friend methods so that the class can be used with ref counting. By defining a private destructor, you make it so that the object cannot be declared on the stack and so must be ref counted.
Definition at line 60 of file ref_counted_macros.h.
#define IMP_REF_COUNTED_INLINE_DESTRUCTOR | ( | Name, | |
destructor | |||
) |
Like IMP_REF_COUNTED_DESTRUCTOR(), but the destructor is declared inline.
Definition at line 70 of file ref_counted_macros.h.
#define IMP_REF_COUNTED_NONTRIVIAL_DESTRUCTOR | ( | Name | ) |
Like IMP_REF_COUNTED_DESTRUCTOR(), but the destructor is only declared, not defined.
Definition at line 65 of file ref_counted_macros.h.