ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
BondView Class Reference

Immutable view on a bond. More...

#include <BondList.hpp>

Public Member Functions

 BondView ()=default
 
 BondView (int id, Utils::Span< const int > partners)
 
int bond_id () const
 
Utils::Span< const int > const & partner_ids () const
 
bool operator== (BondView const &rhs) const
 
bool operator!= (BondView const &rhs) const
 

Detailed Description

Immutable view on a bond.

The bond id and ids of the partner particles of a bond can be inspected (but not changed) via this view.

Definition at line 45 of file BondList.hpp.

Constructor & Destructor Documentation

◆ BondView() [1/2]

BondView::BondView ( )
default

◆ BondView() [2/2]

BondView::BondView ( int  id,
Utils::Span< const int >  partners 
)
inline

Definition at line 52 of file BondList.hpp.

Member Function Documentation

◆ bond_id()

int BondView::bond_id ( ) const
inline

Definition at line 55 of file BondList.hpp.

Referenced by BondList::insert().

◆ operator!=()

bool BondView::operator!= ( BondView const &  rhs) const
inline

Definition at line 62 of file BondList.hpp.

◆ operator==()

bool BondView::operator== ( BondView const &  rhs) const
inline

Definition at line 58 of file BondList.hpp.

◆ partner_ids()

Utils::Span< const int > const & BondView::partner_ids ( ) const
inline

Definition at line 56 of file BondList.hpp.

Referenced by BondList::insert().


The documentation for this class was generated from the following file: