Geant4  10.03
G4ArrayOps.hh File Reference
#include <vector>
#include "globals.hh"
+ Include dependency graph for G4ArrayOps.hh:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 G4ArrayOps
 G4ArrayOps is a namespace that provides template functions for performing basic arithmatic operations on any data type that is accessed with the [] operator.
 

Functions

template<class T >
void G4ArrayOps::Set (G4int Elements, T *To, T Value)
 Set's all the values in an array to a constant. More...
 
template<class T >
void G4ArrayOps::Copy (G4int Elements, T *To, T *From)
 Copy values from one array to another. More...
 
template<class T >
void G4ArrayOps::Add (G4int Elements, T *To, T *A1, T *A2=NULL)
 Add two arrays together. More...
 
template<class T >
void G4ArrayOps::Add (G4int Elements, T *To, T A1, T *A2=NULL)
 Add a constant to an array. More...
 
template<class T >
void G4ArrayOps::Subtract (G4int Elements, T *To, T *Minuend, T *Subtrahend=NULL)
 Subtract an array from another. More...
 
template<class T >
void G4ArrayOps::Multiply (G4int Elements, T *To, T *M1, T *M2=NULL)
 Multiply two arrays together. More...
 
template<class T >
void G4ArrayOps::Multiply (G4int Elements, T *To, T M1, T *M2=NULL)
 Multiply an array by a constant. More...
 
template<class T >
void G4ArrayOps::Divide (G4int Elements, T *To, T *Numerator, T *Denominator=NULL)
 Divide an array by another. More...
 
template<class T >
void G4ArrayOps::Divide (G4int Elements, T *To, T Numerator, T *Denominator=NULL)
 Divide a constant by an array. More...
 
template<class T >
void G4ArrayOps::DeleteVectorOfPointers (std::vector< T > &Vector)