ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
BondList.hpp File Reference
#include <utils/compact_vector.hpp>
#include <boost/container/vector.hpp>
#include <boost/iterator/iterator_facade.hpp>
#include <boost/serialization/access.hpp>
#include <boost/serialization/array.hpp>
#include <boost/version.hpp>
#include <algorithm>
#include <cassert>
#include <cstddef>
#include <memory>
#include <span>
#include <type_traits>
+ Include dependency graph for BondList.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  BondView
 Immutable view on a bond. More...
 
class  BondList
 Bond storage. More...
 
class  BondList::Iterator
 

Functions

bool pair_bond_exists_on (BondList const &bonds, int partner_id, int bond_id)
 Check if there is a specific bond in a bond list.
 

Function Documentation

◆ pair_bond_exists_on()

bool pair_bond_exists_on ( BondList const &  bonds,
int  partner_id,
int  bond_id 
)
inline

Check if there is a specific bond in a bond list.

Parameters
bondsList of bonds to check
partner_idId of the bond partner
bond_idId of the bond parameters.
Returns
True iff there is a bond to the specified id of the specified type.

Definition at line 238 of file BondList.hpp.

References BondList::begin(), and BondList::end().

Referenced by PairCriteria::BondCriterion::decide(), and CollisionDetection::detect_collision_common().