#ifndef _utl_MultiTabulatedFunctionErrors_h_ #define _utl_MultiTabulatedFunctionErrors_h_ // $Id$ #include #include namespace utl { class LabeledTabulatedFunctionErrors : public LabeledObject { public: LabeledTabulatedFunctionErrors(const int label, TabulatedFunctionErrors& tf) : LabeledObject(label, tf) { } LabeledTabulatedFunctionErrors(const std::pair pair) : LabeledObject(pair) { } TabulatedFunctionErrors& GetTabulatedFunctionErrors() { return LabeledObject::GetObject(); } const TabulatedFunctionErrors& GetTabulatedFunctionErrors() const { return LabeledObject::GetObject(); } }; /** \brief A collection of TabulatedFunctionErrors, which provides methods to access different sources. \author Stefano Argiro', Darko Veberic \date 14 Nov 2005 */ class MultiTabulatedFunctionErrors : public MultiObject { public: /// Returns the TabulatedFunctionErrors for /par source TabulatedFunctionErrors& GetTabulatedFunctionErrors(const int label = 0) { return MultiObject::GetObject(label); } const TabulatedFunctionErrors& GetTabulatedFunctionErrors(const int label = 0) const { return MultiObject::GetObject(label); } Iterator TabulatedFunctionsErrorsBegin() { return Begin(); } ConstIterator TabulatedFunctionsErrorsBegin() const { return Begin(); } Iterator TabulatedFunctionsErrorsEnd() { return End(); } ConstIterator TabulatedFunctionsErrorsEnd() const { return End(); } /** Creates a new TabulatedFunctionErrors and assign source /par source */ void AddTabulatedFunctionErrors(const int label) { AddObject(new TabulatedFunctionErrors, label); } /** Copies the TabulatedFunctionErrors in the internal list * and assign source /par source -The original can be deleted */ void AddTabulatedFunctionErrors(const TabulatedFunctionErrors& tf, const int label) { AddObject(tf, label); } }; } #endif // Configure (x)emacs for this file ... // Local Variables: // mode: c++ // compile-command: "cd ..; make -k" // End: