IMP  2.4.0
The Integrative Modeling Platform
Macros
atom_macros.h File Reference

Various important macros for implementing decorators. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define IMP_ATOM_TYPE_INDEX   8974343
 
#define IMP_FORCE_FIELD_PARAMETERS(Name)   IMP_OBJECT_NO_WARNING(Name)
 Define the basic things you need for a ForceFieldParameters. More...
 
#define IMP_HIERARCHY_TYPE_INDEX   90784335
 
#define IMP_MOL2_SELECTOR(Name, selected, show)
 Define the basic things you need for a mol2 selector. More...
 
#define IMP_RESIDUE_TYPE_INDEX   90784334
 

Detailed Description

Various important macros for implementing decorators.

Copyright 2007-2015 IMP Inventors. All rights reserved.

Definition in file atom_macros.h.

Macro Definition Documentation

#define IMP_FORCE_FIELD_PARAMETERS (   Name)    IMP_OBJECT_NO_WARNING(Name)

Define the basic things you need for a ForceFieldParameters.

In addition to the methods done by all the macros, it declares

  • IMP::Restraint::evaluate()
  • IMP::Restraint::incremental_evaluate() and it defines
  • IMP::Restraint::get_is_incremental() to return true

Definition at line 22 of file atom_macros.h.

#define IMP_MOL2_SELECTOR (   Name,
  selected,
  show 
)
Value:
bool get_is_selected(const std::string& mol2_line) const { selected; } \
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Definition: object_macros.h:25

Define the basic things you need for a mol2 selector.

In addition to the methods defined/declared by IMP_OBJECT, it defines:

  • IMP::Mol2Selector::get_is_selected() The selected argument should return true or false and use a string called pdb_line.

Definition at line 31 of file atom_macros.h.