IMP logo
IMP Reference Guide  2.7.0
The Integrative Modeling Platform
ref_counted_macros.h File Reference

Various general useful macros for IMP. More...

#include <IMP/kernel_config.h>
#include "utility_macros.h"
+ Include dependency graph for ref_counted_macros.h:
+ This graph shows which files directly or indirectly include this file:

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)
 

Detailed Description

Various general useful macros for IMP.

Copyright 2007-2017 IMP Inventors. All rights reserved.

Definition in file ref_counted_macros.h.

Macro Definition Documentation

#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.

See Also
IMP_REF_COUNTED_NONTRIVIAL_DESTRUCTOR()

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.