IMP  2.0.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 "Object.h"
#include "Pointer.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

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

Macros

#define IMP_CHECK_DECORATOR(Name, 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 
)
Value:
IMP::kernel::internal::ParticleCheck \
Name##pc(Name::particle_is_instance, 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 336 of file kernel/Decorator.h.