-// Copyright (C) 2007-2013 CEA/DEN, EDF R&D
+// Copyright (C) 2007-2014 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
class INTERPKERNEL_EXPORT FunctionsFactory
{
public:
- static Function *buildFuncFromString(const char *type, int nbOfParams) throw(INTERP_KERNEL::Exception);
- static Function *buildUnaryFuncFromString(const char *type) throw(INTERP_KERNEL::Exception);
- //static Function *buildUnaryFuncFromString(char type) throw(INTERP_KERNEL::Exception);
- static Function *buildBinaryFuncFromString(const char *type) throw(INTERP_KERNEL::Exception);
- static Function *buildBinaryFuncFromString(char type) throw(INTERP_KERNEL::Exception);
- static Function *buildTernaryFuncFromString(const char *type) throw(INTERP_KERNEL::Exception);
+ static Function *buildFuncFromString(const char *type, int nbOfParams);
+ static Function *buildUnaryFuncFromString(const char *type);
+ //static Function *buildUnaryFuncFromString(char type);
+ static Function *buildBinaryFuncFromString(const char *type);
+ static Function *buildBinaryFuncFromString(char type);
+ static Function *buildTernaryFuncFromString(const char *type);
};
class INTERPKERNEL_EXPORT Function
public:
virtual ~Function();
virtual int getNbInputParams() const = 0;
- virtual void operate(std::vector<Value *>& stack) const throw(INTERP_KERNEL::Exception) = 0;
- virtual void operateX86(std::vector<std::string>& asmb) const throw(INTERP_KERNEL::Exception) = 0;
+ virtual void operate(std::vector<Value *>& stack) const = 0;
+ virtual void operateX86(std::vector<std::string>& asmb) const = 0;
virtual const char *getRepr() const = 0;
virtual bool isACall() const = 0;
};
{
public:
~IdentityFunction();
- void operate(std::vector<Value *>& stack) const throw(INTERP_KERNEL::Exception);
- void operateX86(std::vector<std::string>& asmb) const throw(INTERP_KERNEL::Exception);
+ void operate(std::vector<Value *>& stack) const;
+ void operateX86(std::vector<std::string>& asmb) const;
const char *getRepr() const;
bool isACall() const;
public:
{
public:
~PositiveFunction();
- void operate(std::vector<Value *>& stack) const throw(INTERP_KERNEL::Exception);
- void operateX86(std::vector<std::string>& asmb) const throw(INTERP_KERNEL::Exception);
+ void operate(std::vector<Value *>& stack) const;
+ void operateX86(std::vector<std::string>& asmb) const;
const char *getRepr() const;
bool isACall() const;
public:
{
public:
~NegateFunction();
- void operate(std::vector<Value *>& stack) const throw(INTERP_KERNEL::Exception);
- void operateX86(std::vector<std::string>& asmb) const throw(INTERP_KERNEL::Exception);
+ void operate(std::vector<Value *>& stack) const;
+ void operateX86(std::vector<std::string>& asmb) const;
const char *getRepr() const;
bool isACall() const;
public:
{
public:
~CosFunction();
- void operate(std::vector<Value *>& stack) const throw(INTERP_KERNEL::Exception);
- void operateX86(std::vector<std::string>& asmb) const throw(INTERP_KERNEL::Exception);
+ void operate(std::vector<Value *>& stack) const;
+ void operateX86(std::vector<std::string>& asmb) const;
const char *getRepr() const;
bool isACall() const;
public:
{
public:
~SinFunction();
- void operate(std::vector<Value *>& stack) const throw(INTERP_KERNEL::Exception);
- void operateX86(std::vector<std::string>& asmb) const throw(INTERP_KERNEL::Exception);
+ void operate(std::vector<Value *>& stack) const;
+ void operateX86(std::vector<std::string>& asmb) const;
const char *getRepr() const;
bool isACall() const;
public:
{
public:
~TanFunction();
- void operate(std::vector<Value *>& stack) const throw(INTERP_KERNEL::Exception);
- void operateX86(std::vector<std::string>& asmb) const throw(INTERP_KERNEL::Exception);
+ void operate(std::vector<Value *>& stack) const;
+ void operateX86(std::vector<std::string>& asmb) const;
const char *getRepr() const;
bool isACall() const;
public:
{
public:
~ACosFunction();
- void operate(std::vector<Value *>& stack) const throw(INTERP_KERNEL::Exception);
- void operateX86(std::vector<std::string>& asmb) const throw(INTERP_KERNEL::Exception);
+ void operate(std::vector<Value *>& stack) const;
+ void operateX86(std::vector<std::string>& asmb) const;
const char *getRepr() const;
bool isACall() const;
public:
{
public:
~ASinFunction();
- void operate(std::vector<Value *>& stack) const throw(INTERP_KERNEL::Exception);
- void operateX86(std::vector<std::string>& asmb) const throw(INTERP_KERNEL::Exception);
+ void operate(std::vector<Value *>& stack) const;
+ void operateX86(std::vector<std::string>& asmb) const;
const char *getRepr() const;
bool isACall() const;
public:
{
public:
~ATanFunction();
- void operate(std::vector<Value *>& stack) const throw(INTERP_KERNEL::Exception);
- void operateX86(std::vector<std::string>& asmb) const throw(INTERP_KERNEL::Exception);
+ void operate(std::vector<Value *>& stack) const;
+ void operateX86(std::vector<std::string>& asmb) const;
const char *getRepr() const;
bool isACall() const;
public:
{
public:
~CoshFunction();
- void operate(std::vector<Value *>& stack) const throw(INTERP_KERNEL::Exception);
- void operateX86(std::vector<std::string>& asmb) const throw(INTERP_KERNEL::Exception);
+ void operate(std::vector<Value *>& stack) const;
+ void operateX86(std::vector<std::string>& asmb) const;
const char *getRepr() const;
bool isACall() const;
public:
{
public:
~SinhFunction();
- void operate(std::vector<Value *>& stack) const throw(INTERP_KERNEL::Exception);
- void operateX86(std::vector<std::string>& asmb) const throw(INTERP_KERNEL::Exception);
+ void operate(std::vector<Value *>& stack) const;
+ void operateX86(std::vector<std::string>& asmb) const;
const char *getRepr() const;
bool isACall() const;
public:
{
public:
~TanhFunction();
- void operate(std::vector<Value *>& stack) const throw(INTERP_KERNEL::Exception);
- void operateX86(std::vector<std::string>& asmb) const throw(INTERP_KERNEL::Exception);
+ void operate(std::vector<Value *>& stack) const;
+ void operateX86(std::vector<std::string>& asmb) const;
const char *getRepr() const;
bool isACall() const;
public:
{
public:
~SqrtFunction();
- void operate(std::vector<Value *>& stack) const throw(INTERP_KERNEL::Exception);
- void operateX86(std::vector<std::string>& asmb) const throw(INTERP_KERNEL::Exception);
+ void operate(std::vector<Value *>& stack) const;
+ void operateX86(std::vector<std::string>& asmb) const;
const char *getRepr() const;
bool isACall() const;
public:
{
public:
~AbsFunction();
- void operate(std::vector<Value *>& stack) const throw(INTERP_KERNEL::Exception);
- void operateX86(std::vector<std::string>& asmb) const throw(INTERP_KERNEL::Exception);
+ void operate(std::vector<Value *>& stack) const;
+ void operateX86(std::vector<std::string>& asmb) const;
const char *getRepr() const;
bool isACall() const;
public:
{
public:
~ExpFunction();
- void operate(std::vector<Value *>& stack) const throw(INTERP_KERNEL::Exception);
- void operateX86(std::vector<std::string>& asmb) const throw(INTERP_KERNEL::Exception);
+ void operate(std::vector<Value *>& stack) const;
+ void operateX86(std::vector<std::string>& asmb) const;
const char *getRepr() const;
bool isACall() const;
public:
{
public:
~LnFunction();
- void operate(std::vector<Value *>& stack) const throw(INTERP_KERNEL::Exception);
- void operateX86(std::vector<std::string>& asmb) const throw(INTERP_KERNEL::Exception);
+ void operate(std::vector<Value *>& stack) const;
+ void operateX86(std::vector<std::string>& asmb) const;
const char *getRepr() const;
bool isACall() const;
public:
{
public:
~LogFunction();
- void operate(std::vector<Value *>& stack) const throw(INTERP_KERNEL::Exception);
- void operateX86(std::vector<std::string>& asmb) const throw(INTERP_KERNEL::Exception);
+ void operate(std::vector<Value *>& stack) const;
+ void operateX86(std::vector<std::string>& asmb) const;
const char *getRepr() const;
bool isACall() const;
public:
{
public:
~Log10Function();
- void operate(std::vector<Value *>& stack) const throw(INTERP_KERNEL::Exception);
- void operateX86(std::vector<std::string>& asmb) const throw(INTERP_KERNEL::Exception);
+ void operate(std::vector<Value *>& stack) const;
+ void operateX86(std::vector<std::string>& asmb) const;
const char *getRepr() const;
bool isACall() const;
public:
{
public:
~PlusFunction();
- void operate(std::vector<Value *>& stack) const throw(INTERP_KERNEL::Exception);
- void operateX86(std::vector<std::string>& asmb) const throw(INTERP_KERNEL::Exception);
+ void operate(std::vector<Value *>& stack) const;
+ void operateX86(std::vector<std::string>& asmb) const;
const char *getRepr() const;
bool isACall() const;
public:
{
public:
~MinusFunction();
- void operate(std::vector<Value *>& stack) const throw(INTERP_KERNEL::Exception);
- void operateX86(std::vector<std::string>& asmb) const throw(INTERP_KERNEL::Exception);
+ void operate(std::vector<Value *>& stack) const;
+ void operateX86(std::vector<std::string>& asmb) const;
const char *getRepr() const;
bool isACall() const;
public:
{
public:
~MultFunction();
- void operate(std::vector<Value *>& stack) const throw(INTERP_KERNEL::Exception);
- void operateX86(std::vector<std::string>& asmb) const throw(INTERP_KERNEL::Exception);
+ void operate(std::vector<Value *>& stack) const;
+ void operateX86(std::vector<std::string>& asmb) const;
const char *getRepr() const;
bool isACall() const;
public:
{
public:
~DivFunction();
- void operate(std::vector<Value *>& stack) const throw(INTERP_KERNEL::Exception);
- void operateX86(std::vector<std::string>& asmb) const throw(INTERP_KERNEL::Exception);
+ void operate(std::vector<Value *>& stack) const;
+ void operateX86(std::vector<std::string>& asmb) const;
const char *getRepr() const;
bool isACall() const;
public:
{
public:
~PowFunction();
- void operate(std::vector<Value *>& stack) const throw(INTERP_KERNEL::Exception);
- void operateX86(std::vector<std::string>& asmb) const throw(INTERP_KERNEL::Exception);
+ void operate(std::vector<Value *>& stack) const;
+ void operateX86(std::vector<std::string>& asmb) const;
const char *getRepr() const;
bool isACall() const;
public:
{
public:
~MaxFunction();
- void operate(std::vector<Value *>& stack) const throw(INTERP_KERNEL::Exception);
- void operateX86(std::vector<std::string>& asmb) const throw(INTERP_KERNEL::Exception);
+ void operate(std::vector<Value *>& stack) const;
+ void operateX86(std::vector<std::string>& asmb) const;
const char *getRepr() const;
bool isACall() const;
public:
{
public:
~MinFunction();
- void operate(std::vector<Value *>& stack) const throw(INTERP_KERNEL::Exception);
- void operateX86(std::vector<std::string>& asmb) const throw(INTERP_KERNEL::Exception);
+ void operate(std::vector<Value *>& stack) const;
+ void operateX86(std::vector<std::string>& asmb) const;
const char *getRepr() const;
bool isACall() const;
public:
{
public:
~GreaterThanFunction();
- void operate(std::vector<Value *>& stack) const throw(INTERP_KERNEL::Exception);
- void operateX86(std::vector<std::string>& asmb) const throw(INTERP_KERNEL::Exception);
+ void operate(std::vector<Value *>& stack) const;
+ void operateX86(std::vector<std::string>& asmb) const;
const char *getRepr() const;
bool isACall() const;
public:
{
public:
~LowerThanFunction();
- void operate(std::vector<Value *>& stack) const throw(INTERP_KERNEL::Exception);
- void operateX86(std::vector<std::string>& asmb) const throw(INTERP_KERNEL::Exception);
+ void operate(std::vector<Value *>& stack) const;
+ void operateX86(std::vector<std::string>& asmb) const;
const char *getRepr() const;
bool isACall() const;
public:
{
public:
~IfFunction();
- void operate(std::vector<Value *>& stack) const throw(INTERP_KERNEL::Exception);
- void operateX86(std::vector<std::string>& asmb) const throw(INTERP_KERNEL::Exception);
+ void operate(std::vector<Value *>& stack) const;
+ void operateX86(std::vector<std::string>& asmb) const;
const char *getRepr() const;
bool isACall() const;
public: