ESyS-Particle  2.3.4
BasicInteraction Class Reference

Class to represent the common part of a pair interaction, i.e. the IDs of the particles and the interaction tag. More...

#include <BasicInteraction.h>

Inheritance diagram for BasicInteraction:

Public Types

typedef int Id
 
typedef int Tag
 

Public Member Functions

 BasicInteraction (Id id1, Id id2, Tag tag=0)
 
Id first () const
 
Id second () const
 
Id getP1Id () const
 
Id getP2Id () const
 
Tag getTag () const
 
template<typename TmplVisitor >
void visit (TmplVisitor &visitor) const
 

Private Attributes

Id m_p1
 
Id m_p2
 
Tag m_tag
 

Friends

class BILess
 
std::ostream & operator<< (std::ostream &, const BasicInteraction &)
 

Detailed Description

Class to represent the common part of a pair interaction, i.e. the IDs of the particles and the interaction tag.

Author
Steffen Abe

Member Typedef Documentation

◆ Id

typedef int BasicInteraction::Id

◆ Tag

typedef int BasicInteraction::Tag

Constructor & Destructor Documentation

◆ BasicInteraction()

BasicInteraction::BasicInteraction ( Id  id1,
Id  id2,
Tag  tag = 0 
)

Member Function Documentation

◆ first()

◆ getP1Id()

Id BasicInteraction::getP1Id ( ) const
inline

References first().

Referenced by esys::lsm::TaggedIdConnectionPyPickleSuite::getinitargs().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getP2Id()

Id BasicInteraction::getP2Id ( ) const
inline

References second().

Referenced by esys::lsm::TaggedIdConnectionPyPickleSuite::getinitargs().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getTag()

Tag BasicInteraction::getTag ( ) const
inline

◆ second()

◆ visit()

template<typename TmplVisitor >
void BasicInteraction::visit ( TmplVisitor &  visitor) const
inline

Friends And Related Function Documentation

◆ BILess

friend class BILess
friend

◆ operator<<

std::ostream& operator<< ( std::ostream &  ,
const BasicInteraction  
)
friend

Member Data Documentation

◆ m_p1

Id BasicInteraction::m_p1
private

◆ m_p2

Id BasicInteraction::m_p2
private

◆ m_tag

Tag BasicInteraction::m_tag
private

Referenced by getTag(), and operator<<().


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