MultiTabulatedFunction.h
Go to the documentation of this file.
1 #ifndef _utl_MultiTabulatedFunction_h_
2 #define _utl_MultiTabulatedFunction_h_
3 
4 #include <utl/TabulatedFunction.h>
5 #include <utl/MultiObject.h>
6 
7 
8 namespace utl {
9 
10 
11  class LabeledTabulatedFunction : public LabeledObject<TabulatedFunction> {
12 
13  public:
15  LabeledObject<TabulatedFunction>(label, tf) { }
16 
17  LabeledTabulatedFunction(const std::pair<int, TabulatedFunction*> pair) :
19 
24 
25  };
26 
27 
38  public MultiObject<TabulatedFunction, LabeledTabulatedFunction> {
39 
40  public:
44  const TabulatedFunction& GetTabulatedFunction(const int label = 0) const
46 
50  ConstIterator TabulatedFunctionsEnd() const { return End(); }
51 
53  void AddTabulatedFunction(const int label)
54  { AddObject(new TabulatedFunction, label); }
55 
58  void AddTabulatedFunction(const TabulatedFunction& tf, const int label)
60 
61  };
62 
63 }
64 
65 
66 #endif
67 
68 // Configure (x)emacs for this file ...
69 // Local Variables:
70 // mode: c++
71 // compile-command: "cd ..; make -k"
72 // End:
boost::transform_iterator< LabeledObjectFunctor, typename MultiObjectContainer::iterator, LabeledTabulatedFunction > Iterator
Definition: MultiObject.h:78
void AddTabulatedFunction(const TabulatedFunction &tf, const int label)
Class to hold collection (x,y) points and provide interpolation between them.
void AddTabulatedFunction(const int label)
ConstIterator TabulatedFunctionsEnd() const
boost::transform_iterator< LabeledObjectFunctor, typename MultiObjectContainer::const_iterator, LabeledTabulatedFunction > ConstIterator
Definition: MultiObject.h:81
TabulatedFunction & GetTabulatedFunction(const int label=0)
Returns the TabulatedFunction for /par source, throws an exception if na.
LabeledTabulatedFunction(const int label, TabulatedFunction &tf)
container for object and associated labels
Definition: MultiObject.h:71
const TabulatedFunction & GetTabulatedFunction(const int label=0) const
A collection of TabulatedFunction.
const TabulatedFunction & GetTabulatedFunction() const
ConstIterator TabulatedFunctionsBegin() const
TabulatedFunction & GetTabulatedFunction()
Class for attaching a label to an object.
Definition: MultiObject.h:22
void AddObject(const TabulatedFunction &obj, const int label)
add with deep copy of the object
Definition: MultiObject.h:128
T & GetObject(const int label=0)
LabeledTabulatedFunction(const std::pair< int, TabulatedFunction * > pair)

, generated on Tue Sep 26 2023.