IMP  2.1.0
The Integrative Modeling Platform
kernel/Decorator.h File Reference

The base class for decorators. More...

#include <IMP/kernel/kernel_config.h>
#include "base_types.h"
#include <IMP/base/Object.h>
#include <IMP/base/WeakPointer.h>
#include "Model.h"
#include "utility.h"
#include "Constraint.h"
#include "internal/utility.h"
#include <IMP/base/utility_macros.h>
#include <IMP/base/Vector.h>
#include <IMP/base/Value.h>
+ Include dependency graph for kernel/Decorator.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  IMP::kernel::Decorator
 

Namespaces

 IMP
 All IMP::kernel code is brought into the IMP namespace.
 
 IMP::kernel
 See IMP.kernel for more information.
 

Macros

#define IMP_CHECK_DECORATOR(Name, function)   IMP::kernel::internal::ParticleCheck Name##pc(Name::get_is_setup, function);
 

Detailed Description

Copyright 2007-2013 IMP Inventors. All rights reserved.

Definition in file kernel/Decorator.h.

Macro Definition Documentation

#define IMP_CHECK_DECORATOR (   Name,
  function 
)    IMP::kernel::internal::ParticleCheck Name##pc(Name::get_is_setup, function);

Register a function that can be used to check that the particle is valid with respect to the decorator. The function should take a Particle* as an argument and return a bool. It should throw an exception if something is wrong.

This macro should only be used in a .cpp file.

Definition at line 299 of file kernel/Decorator.h.