ATLAS Offline Software
TestProxyLoader.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // TestProxyLoader.h, (c) ATLAS Detector software
8 // Author: Thomas Gillam (thomas.gillam@cern.ch)
9 // ExpressionParsing library
11 
12 #ifndef TEST_PROXY_LOADER_H
13 #define TEST_PROXY_LOADER_H
14 
16 
17 #include <atomic>
18 
19 namespace ExpressionParsing {
20  class TestProxyLoader : public IProxyLoader {
21  public:
23  virtual ~TestProxyLoader();
24 
25  virtual void reset();
26 
27  virtual IProxyLoader::VariableType variableTypeFromString(const std::string &varname) const;
28 
29  virtual int loadIntVariableFromString(const std::string &varname) const;
30  virtual double loadDoubleVariableFromString(const std::string &varname) const;
31  virtual std::vector<int> loadVecIntVariableFromString(const std::string &varname) const;
32  virtual std::vector<double> loadVecDoubleVariableFromString(const std::string &varname) const;
33 
34  private:
35  mutable std::atomic<unsigned int> m_intAccessCount;
36  };
37 }
38 
39 #endif // TEST_PROXY_LOADER_H
ExpressionParsing::TestProxyLoader::loadDoubleVariableFromString
virtual double loadDoubleVariableFromString(const std::string &varname) const
Definition: TestProxyLoader.cxx:43
ExpressionParsing::TestProxyLoader::~TestProxyLoader
virtual ~TestProxyLoader()
Definition: TestProxyLoader.cxx:17
ExpressionParsing::TestProxyLoader::loadVecDoubleVariableFromString
virtual std::vector< double > loadVecDoubleVariableFromString(const std::string &varname) const
Definition: TestProxyLoader.cxx:55
ExpressionParsing::TestProxyLoader
Definition: TestProxyLoader.h:20
ExpressionParsing::IProxyLoader
Definition: IProxyLoader.h:19
ExpressionParsing::TestProxyLoader::reset
virtual void reset()
Definition: TestProxyLoader.cxx:21
ExpressionParsing::IProxyLoader::VariableType
VariableType
Definition: IProxyLoader.h:21
ExpressionParsing::TestProxyLoader::m_intAccessCount
std::atomic< unsigned int > m_intAccessCount
Definition: TestProxyLoader.h:35
ExpressionParsing::TestProxyLoader::TestProxyLoader
TestProxyLoader()
Definition: TestProxyLoader.h:22
ExpressionParsing
Namespace holding all the expression evaluation code.
Definition: ExpressionParser.h:26
ExpressionParsing::TestProxyLoader::variableTypeFromString
virtual IProxyLoader::VariableType variableTypeFromString(const std::string &varname) const
Definition: TestProxyLoader.cxx:26
LArG4AODNtuplePlotter.varname
def varname(hname)
Definition: LArG4AODNtuplePlotter.py:37
ExpressionParsing::TestProxyLoader::loadVecIntVariableFromString
virtual std::vector< int > loadVecIntVariableFromString(const std::string &varname) const
Definition: TestProxyLoader.cxx:49
ExpressionParsing::TestProxyLoader::loadIntVariableFromString
virtual int loadIntVariableFromString(const std::string &varname) const
Definition: TestProxyLoader.cxx:36
IProxyLoader.h