IMP  2.1.1
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)
 
#define IMP_REF_COUNTED_NONTRIVIAL_VIRTUAL_DESTRUCTOR(Name)
 

Detailed Description

Copyright 2007-2013 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()
IMP::base::RefCounted

Definition at line 61 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 76 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 66 of file base/ref_counted_macros.h.

#define IMP_REF_COUNTED_NONTRIVIAL_VIRTUAL_DESTRUCTOR (   Name)

Like IMP_REF_COUNTED_DESTRUCTOR(), but the destructor is only declared, not defined and is virtual.

Definition at line 71 of file base/ref_counted_macros.h.