19#ifndef BDSARRAYOPERATORVALUEV_H
20#define BDSARRAYOPERATORVALUEV_H
21#include "BDSArrayOperatorValue.hh"
41 for (
auto op : operators)
49 virtual G4String
Name()
const
51 G4String result = name;
52 for (
auto op : operators)
53 {result += op->Name() +
" ";}
67 for (
auto op : operators)
68 {tempV = op->Apply(tempV, xInd, yInd, zInd, tInd);}
72 std::vector<BDSArrayOperatorValue*> operators;
A vectorised version of BDSArrayOperatorValueV.
virtual BDSFieldValue Apply(BDSFieldValue v, G4int xInd, G4int yInd=0, G4int zInd=0, G4int tInd=0) const
void push_back(BDSArrayOperatorValue *operatorIn)
Append an operator to the vector.
virtual G4String Name() const
Return a name of the operator for feedback to the user in print out.
Interface for modifying field values.