ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
exclusions.cpp File Reference
#include "config/config.hpp"
#include "exclusions.hpp"
#include "Particle.hpp"
#include <utils/contains.hpp>
#include <algorithm>
+ Include dependency graph for exclusions.cpp:

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.
 

Function Documentation

◆ add_exclusion()

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().

◆ delete_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().