ATLAS Offline Software
Loading...
Searching...
No Matches
TestProxyLoader.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 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
19namespace ExpressionParsing {
21 public:
23 virtual ~TestProxyLoader();
24
25 virtual void reset() override;
26
27 virtual IAccessor::VariableType variableTypeFromString(const std::string &varname) const override;
28
29 virtual int loadInt(const EventContext& ctx,const std::string &varname) const override;
30 virtual double loadDouble(const EventContext& ctx,const std::string &varname) const override;
31 virtual std::vector<int> loadVecInt(const EventContext& ctx,const std::string &varname) const override;
32 virtual std::vector<double> loadVec(const EventContext& ctx,const std::string &varname) const override;
33
34 private:
35 mutable std::atomic<unsigned int> m_intAccessCount;
36 };
37}
38
39#endif // TEST_PROXY_LOADER_H
std::atomic< unsigned int > m_intAccessCount
virtual std::vector< double > loadVec(const EventContext &ctx, const std::string &varname) const override
virtual double loadDouble(const EventContext &ctx, const std::string &varname) const override
virtual int loadInt(const EventContext &ctx, const std::string &varname) const override
virtual std::vector< int > loadVecInt(const EventContext &ctx, const std::string &varname) const override
virtual IAccessor::VariableType variableTypeFromString(const std::string &varname) const override
Namespace holding all the expression evaluation code.