Geant4
10.03
|
G4ArrayOps is a namespace that provides template functions for performing basic arithmatic operations on any data type that is accessed with the [] operator. More...
Functions | |
template<class T > | |
void | Set (G4int Elements, T *To, T Value) |
Set's all the values in an array to a constant. More... | |
template<class T > | |
void | Copy (G4int Elements, T *To, T *From) |
Copy values from one array to another. More... | |
template<class T > | |
void | Add (G4int Elements, T *To, T *A1, T *A2=NULL) |
Add two arrays together. More... | |
template<class T > | |
void | Add (G4int Elements, T *To, T A1, T *A2=NULL) |
Add a constant to an array. More... | |
template<class T > | |
void | Subtract (G4int Elements, T *To, T *Minuend, T *Subtrahend=NULL) |
Subtract an array from another. More... | |
template<class T > | |
void | Multiply (G4int Elements, T *To, T *M1, T *M2=NULL) |
Multiply two arrays together. More... | |
template<class T > | |
void | Multiply (G4int Elements, T *To, T M1, T *M2=NULL) |
Multiply an array by a constant. More... | |
template<class T > | |
void | Divide (G4int Elements, T *To, T *Numerator, T *Denominator=NULL) |
Divide an array by another. More... | |
template<class T > | |
void | Divide (G4int Elements, T *To, T Numerator, T *Denominator=NULL) |
Divide a constant by an array. More... | |
template<class T > | |
void | DeleteVectorOfPointers (std::vector< T > &Vector) |
G4ArrayOps is a namespace that provides template functions for performing basic arithmatic operations on any data type that is accessed with the [] operator.
void G4ArrayOps::Add | ( | G4int | Elements, |
T * | To, | ||
T * | A1, | ||
T * | A2 = NULL |
||
) |
Add two arrays together.
If the second array is NULL then the 'To' array is used as if the function were the += operator.
Definition at line 77 of file G4ArrayOps.hh.
References position.
Referenced by G4FissionProductYieldDist::Renormalize(), and G4FissionProductYieldDist::SortProbability().
void G4ArrayOps::Add | ( | G4int | Elements, |
T * | To, | ||
T | A1, | ||
T * | A2 = NULL |
||
) |
Add a constant to an array.
If the second array is NULL then the 'To' array is used as if the function were the += operator.
Definition at line 97 of file G4ArrayOps.hh.
References position.
void G4ArrayOps::Copy | ( | G4int | Elements, |
T * | To, | ||
T * | From | ||
) |
Copy values from one array to another.
Definition at line 63 of file G4ArrayOps.hh.
References position.
Referenced by G4FissionProductYieldDist::Initialize(), G4FissionProductYieldDist::ReadProbabilities(), G4FissionProductYieldDist::Renormalize(), G4ENDFYieldDataContainer::SetYieldError(), G4ENDFYieldDataContainer::SetYieldProbability(), and G4FissionProductYieldDist::SortProbability().
void G4ArrayOps::DeleteVectorOfPointers | ( | std::vector< T > & | Vector | ) |
Definition at line 216 of file G4ArrayOps.hh.
Referenced by G4FissionProductYieldDist::G4GetFission().
void G4ArrayOps::Divide | ( | G4int | Elements, |
T * | To, | ||
T * | Numerator, | ||
T * | Denominator = NULL |
||
) |
Divide an array by another.
If the second array is NULL then the 'To' array is used as if the function were the /= operator.
Definition at line 178 of file G4ArrayOps.hh.
References position.
Referenced by G4FissionProductYieldDist::ReadProbabilities().
void G4ArrayOps::Divide | ( | G4int | Elements, |
T * | To, | ||
T | Numerator, | ||
T * | Denominator = NULL |
||
) |
Divide a constant by an array.
If the second array is NULL then the 'To' array is used as if the function were the /= operator.
Definition at line 199 of file G4ArrayOps.hh.
References position.
void G4ArrayOps::Multiply | ( | G4int | Elements, |
T * | To, | ||
T * | M1, | ||
T * | M2 = NULL |
||
) |
Multiply two arrays together.
If the second array is NULL then the 'To' array is used as if the function were the *= operator.
Definition at line 138 of file G4ArrayOps.hh.
References position.
Referenced by G4FissionProductYieldDist::Renormalize().
void G4ArrayOps::Multiply | ( | G4int | Elements, |
T * | To, | ||
T | M1, | ||
T * | M2 = NULL |
||
) |
Multiply an array by a constant.
If the second array is NULL then the 'To' array is used as if the function were the *= operator.
Definition at line 158 of file G4ArrayOps.hh.
References position.
void G4ArrayOps::Set | ( | G4int | Elements, |
T * | To, | ||
T | Value | ||
) |
Set's all the values in an array to a constant.
Definition at line 51 of file G4ArrayOps.hh.
References position.
Referenced by G4FissionProductYieldDist::ReadProbabilities(), G4ModelColourMap< T >::Set(), G4VisCommandGeometrySetColour::SetNewValue(), G4VisCommandGeometrySetDaughtersInvisible::SetNewValue(), G4VisCommandGeometrySetForceAuxEdgeVisible::SetNewValue(), G4VisCommandGeometrySetForceSolid::SetNewValue(), G4VisCommandGeometrySetForceLineSegmentsPerCircle::SetNewValue(), G4VisCommandGeometrySetForceWireframe::SetNewValue(), G4VisCommandGeometrySetLineStyle::SetNewValue(), G4VisCommandGeometrySetLineWidth::SetNewValue(), and G4VisCommandGeometrySetVisibility::SetNewValue().
void G4ArrayOps::Subtract | ( | G4int | Elements, |
T * | To, | ||
T * | Minuend, | ||
T * | Subtrahend = NULL |
||
) |
Subtract an array from another.
If the second array is NULL then the 'To' array is used as if the function were the -= operator.
Definition at line 117 of file G4ArrayOps.hh.
References position.