1 // -*- C++ -*- 2 /** 3 * @brief Abstract top-level class for all ComparisonOperatorImplementation 4 * 5 * Copyright 2005-2021 Airbus-EDF-IMACS-ONERA-Phimeca 6 * 7 * This library is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU Lesser General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * This library is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU Lesser General Public License for more details. 16 * 17 * You should have received a copy of the GNU Lesser General Public License 18 * along with this library. If not, see <http://www.gnu.org/licenses/>. 19 * 20 */ 21 #include "openturns/PersistentObjectFactory.hxx" 22 #include "openturns/ComparisonOperatorImplementation.hxx" 23 24 BEGIN_NAMESPACE_OPENTURNS 25 26 CLASSNAMEINIT(ComparisonOperatorImplementation) 27 28 static const Factory<ComparisonOperatorImplementation> Factory_ComparisonOperatorImplementation; 29 30 /* Default constructor */ ComparisonOperatorImplementation()31ComparisonOperatorImplementation::ComparisonOperatorImplementation() 32 : PersistentObject() 33 { 34 // Nothing to do 35 } 36 37 /* Virtual constructor */ clone() const38ComparisonOperatorImplementation * ComparisonOperatorImplementation::clone() const 39 { 40 return new ComparisonOperatorImplementation(*this); 41 } 42 43 /* Evaluation operator */ operator ()(const Scalar,const Scalar) const44Bool ComparisonOperatorImplementation::operator() (const Scalar, 45 const Scalar ) const 46 { 47 throw NotYetImplementedException(HERE) << "In ComparisonOperatorImplementation::operator() (const Scalar a, const Scalar b) const"; 48 } 49 50 /* String converter */ __repr__() const51String ComparisonOperatorImplementation::__repr__() const 52 { 53 return OSS() << "class=" << ComparisonOperatorImplementation::GetClassName() 54 << " name=" << getName(); 55 } 56 57 58 /* Here is the interface that all derived class must implement */ 59 60 /* Method save() stores the object through the StorageManager */ save(Advocate & adv) const61void ComparisonOperatorImplementation::save(Advocate & adv) const 62 { 63 PersistentObject::save(adv); 64 } 65 66 /* Method load() reloads the object from the StorageManager */ load(Advocate & adv)67void ComparisonOperatorImplementation::load(Advocate & adv) 68 { 69 PersistentObject::load(adv); 70 } 71 72 73 END_NAMESPACE_OPENTURNS 74