9#ifndef IMPRMF_ASSOCIATIONS_H
10#define IMPRMF_ASSOCIATIONS_H
12#include <IMP/rmf/rmf_config.h>
22typedef Object *AssociationType;
24IMPRMFEXPORT
void set_association(RMF::NodeConstHandle nh, Object *o,
25 bool overwrite =
false);
28inline T *get_association(RMF::NodeConstHandle nh) {
29 AssociationType o = nh.get_association<AssociationType>();
31 if (!op)
return nullptr;
32 return dynamic_cast<T *
>(op);
41IMPRMFEXPORT RMF::NodeConstHandle get_node_from_association(
42 RMF::FileConstHandle nh, Object *oi);
44IMPRMFEXPORT RMF::NodeHandle get_node_from_association(RMF::FileHandle nh,
46IMPRMFEXPORT
bool get_has_associated_node(RMF::FileConstHandle nh,
A shared base class to help in debugging and things.
A nullptr-initialized pointer to an IMP Object.
Manage links between IMP objects and a part of the RMF file.
Logging and error reporting support.
Helper macros for implementing IMP Objects.