IMP logo
IMP Reference Guide  2.20.1
The Integrative Modeling Platform
distance_pair_score_macros.h File Reference

Various important macros for implementing decorators. More...

#include "DistancePairScore.h"
#include <cereal/access.hpp>
#include <cereal/types/base_class.hpp>
+ Include dependency graph for distance_pair_score_macros.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define IMP_FUNCTOR_DISTANCE_PAIR_SCORE(Name, Functor, Args, PassArgs)
 

Detailed Description

Various important macros for implementing decorators.

Copyright 2007-2022 IMP Inventors. All rights reserved.

Definition in file distance_pair_score_macros.h.

Macro Definition Documentation

#define IMP_FUNCTOR_DISTANCE_PAIR_SCORE (   Name,
  Functor,
  Args,
  PassArgs 
)

Use this macro to define PairScores based on the IMP::score_functor::DistancePairScore as it works around various complications caused by SWIG.

To use it do something like IMP_FUNCTOR_DISTANCE_PAIR_SCORE(DistancePairScore, score_functor::UnaryFunctionEvaluate, (UnaryFunction *uf, std::string name = "DistancePairScore%1%"), (uf));

Definition at line 28 of file distance_pair_score_macros.h.