ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
|
#include "config/config.hpp"
#include "exclusions.hpp"
#include "Particle.hpp"
#include <utils/contains.hpp>
#include <algorithm>
Go to the source code of this file.
Functions | |
void | add_exclusion (Particle &p, int p_id) |
Insert an exclusion if not already set. | |
void | delete_exclusion (Particle &p, int p_id) |
Remove exclusion from particle if possible. | |
void add_exclusion | ( | Particle & | p, |
int | p_id | ||
) |
Insert an exclusion if not already set.
Definition at line 34 of file exclusions.cpp.
References Utils::contains(), and Particle::exclusions().
Referenced by ScriptInterface::Particles::auto_exclusions(), and ScriptInterface::Particles::local_add_exclusion().
void delete_exclusion | ( | Particle & | p, |
int | p_id | ||
) |
Remove exclusion from particle if possible.
Definition at line 41 of file exclusions.cpp.
References Particle::exclusions().
Referenced by ScriptInterface::Particles::local_remove_exclusion().