|
CbmRoot
|
#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< ConstraintType > | fConstraints |
| types of constraints applied to the set | |
Definition at line 17 of file CbmBbaConstraint.h.
| 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.
|
default |
Default constructor.
Referenced by ClassDefNV().
|
default |
Destructor.
|
inline |
Add a body to the constrained set.
Definition at line 40 of file CbmBbaConstraint.h.
References fBodies.
|
inline |
Add a constraint type to the set.
Definition at line 43 of file CbmBbaConstraint.h.
References fConstraints.
|
private |
References Constraint().
|
inline |
Get the indices of bodies in the constrained set.
Definition at line 46 of file CbmBbaConstraint.h.
References fBodies.
|
inline |
Get the types of constraints applied to the set.
Definition at line 49 of file CbmBbaConstraint.h.
References fConstraints.
|
inline |
Clear the set of bodies and constraints.
Definition at line 33 of file CbmBbaConstraint.h.
References fBodies, and fConstraints.
|
private |
indices of bodies in the constrained set
Definition at line 52 of file CbmBbaConstraint.h.
Referenced by AddBody(), GetBodies(), and Reset().
|
private |
types of constraints applied to the set
Definition at line 53 of file CbmBbaConstraint.h.
Referenced by AddConstraint(), GetConstraints(), and Reset().