CbmRoot
Loading...
Searching...
No Matches
cbm::bba::Constraint Class Reference

#include <CbmBbaConstraint.h>

Public Types

enum  ConstraintType { kShiftX , kShiftY , kShiftZ }
 

Public Member Functions

 Constraint ()=default
 Default constructor.
 
 ~Constraint ()=default
 Destructor.
 
void Reset ()
 Clear the set of bodies and constraints.
 
void AddBody (int bodyIndex)
 Add a body to the constrained set.
 
void AddConstraint (ConstraintType type)
 Add a constraint type to the set.
 
const std::set< int > & GetBodies () const
 Get the indices of bodies in the constrained set.
 
const std::set< ConstraintType > & GetConstraints () const
 Get the types of constraints applied to the set.
 

Private Member Functions

 ClassDefNV (Constraint, 0)
 

Private Attributes

std::set< int > fBodies
 indices of bodies in the constrained set
 
std::set< ConstraintTypefConstraints
 types of constraints applied to the set
 

Detailed Description

Definition at line 17 of file CbmBbaConstraint.h.

Member Enumeration Documentation

◆ ConstraintType

Enumerator
kShiftX 

mean shift in X is zero

kShiftY 

mean shift in Y is zero

kShiftZ 

mean shift in Z is zero

Definition at line 19 of file CbmBbaConstraint.h.

Constructor & Destructor Documentation

◆ Constraint()

cbm::bba::Constraint::Constraint ( )
default

Default constructor.

Referenced by ClassDefNV().

◆ ~Constraint()

cbm::bba::Constraint::~Constraint ( )
default

Destructor.

Member Function Documentation

◆ AddBody()

void cbm::bba::Constraint::AddBody ( int bodyIndex)
inline

Add a body to the constrained set.

Definition at line 40 of file CbmBbaConstraint.h.

References fBodies.

◆ AddConstraint()

void cbm::bba::Constraint::AddConstraint ( ConstraintType type)
inline

Add a constraint type to the set.

Definition at line 43 of file CbmBbaConstraint.h.

References fConstraints.

◆ ClassDefNV()

cbm::bba::Constraint::ClassDefNV ( Constraint ,
0  )
private

References Constraint().

◆ GetBodies()

const std::set< int > & cbm::bba::Constraint::GetBodies ( ) const
inline

Get the indices of bodies in the constrained set.

Definition at line 46 of file CbmBbaConstraint.h.

References fBodies.

◆ GetConstraints()

const std::set< ConstraintType > & cbm::bba::Constraint::GetConstraints ( ) const
inline

Get the types of constraints applied to the set.

Definition at line 49 of file CbmBbaConstraint.h.

References fConstraints.

◆ Reset()

void cbm::bba::Constraint::Reset ( )
inline

Clear the set of bodies and constraints.

Definition at line 33 of file CbmBbaConstraint.h.

References fBodies, and fConstraints.

Member Data Documentation

◆ fBodies

std::set<int> cbm::bba::Constraint::fBodies
private

indices of bodies in the constrained set

Definition at line 52 of file CbmBbaConstraint.h.

Referenced by AddBody(), GetBodies(), and Reset().

◆ fConstraints

std::set<ConstraintType> cbm::bba::Constraint::fConstraints
private

types of constraints applied to the set

Definition at line 53 of file CbmBbaConstraint.h.

Referenced by AddConstraint(), GetConstraints(), and Reset().


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