Warning, /include/Geant4/tools/ival_func is written in an unsupported language. File is not indexed.
0001 // Copyright (C) 2010, Guy Barrand. All rights reserved.
0002 // See the file tools.license for terms.
0003
0004 #ifndef tools_ival_func
0005 #define tools_ival_func
0006
0007 #include "value"
0008
0009 namespace tools {
0010
0011 class ival_func {
0012 public:
0013 virtual ~ival_func() {}
0014 public:
0015 virtual void* cast(const std::string&) const = 0;
0016 public:
0017 virtual const std::string& name() const = 0;
0018 virtual size_t number_of_arguments() const = 0;
0019 typedef std::vector<value> args;
0020 virtual bool eval(const args&,value&,std::string&) = 0;
0021 virtual ival_func* copy() const = 0;
0022 };
0023
0024 }
0025
0026 #endif
0027
0028
0029