IMP  2.2.0
The Integrative Modeling Platform
base/ref_counted_macros.h File Reference

Various general useful macros for IMP. More...

#include <IMP/base/base_config.h>
#include "utility_macros.h"
+ Include dependency graph for base/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

Copyright 2007-2014 IMP Inventors. All rights reserved.

Definition in file base/ref_counted_macros.h.

Macro Definition Documentation

#define IMP_REF_COUNTED_DESTRUCTOR (   Name)

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 base/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 base/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 base/ref_counted_macros.h.