10#ifndef IMPNPCTRANSPORT_TRANSPORTING_H
11#define IMPNPCTRANSPORT_TRANSPORTING_H
13#include "npctransport_config.h"
17IMPNPCTRANSPORT_BEGIN_NAMESPACE
41 bool is_last_entry_from_top =
false);
76 is_last_entry_from_top ? 1 : 0);
138IMPNPCTRANSPORT_END_NAMESPACE
The base class for decorators.
Interface to specialized Particle types (e.g. atoms).
Particle * get_particle() const
Returns the particle decorated by this decorator.
Class for storing model, its restraints, constraints, and particles.
A decorator for a particle transporting through a barrier.
void set_n_entries_bottom(int n)
static FloatKey get_last_tracked_z_key()
Get the decorator key last_tracked_z value.
int get_n_entries_top() const
static bool get_is_setup(Model *m, ParticleIndex pi)
Return true if the particle is an instance of an Transporting.
void set_n_entries_top(int n)
double get_last_tracked_z() const
void set_last_tracked_z(double last_tracked_z)
static IntKey get_n_entries_bottom_key()
Get the decorator key n_entries_bottom value.
static IntKey get_n_entries_top_key()
Get the decorator key n_entries_top value.
static IntKey get_is_last_entry_from_top_key()
Get the decorator key for is_last_entry_from_top.
bool get_is_last_entry_from_top() const
returns whether the particle last entered the transport moiety from its
void set_is_last_entry_from_top(bool is_last_entry_from_top)
sets whether the particle last entered the transport moiety from its top
int get_n_entries_bottom() const
Helper macros for implementing Decorators.
#define IMP_DECORATOR_SETUP_1(Name, FirstArgumentType, first_argument_name)
#define IMP_DECORATORS(Name, PluralName, Parent)
Define the types for storing sets of decorators.
#define IMP_DECORATOR_METHODS(Name, Parent)
Index< ParticleIndexTag > ParticleIndex
Key< 0 > FloatKey
The type used to identify float attributes in the Particles.
Key< 1 > IntKey
The type used to identify int attributes in the Particles.