Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef MODEL_H
00028 #define MODEL_H
00029
00030 #include "DinverCoreDLLExport.h"
00031 #include "ModelSet.h"
00032
00033 namespace DinverCore {
00034
00035 class DINVERCORE_EXPORT Model
00036 {
00037 public:
00038 inline Model(int index, ModelSet * parent);
00039 inline Model(const Model& o);
00040
00041 bool operator==(const Model& o) const;
00042
00043 int parameterCount() const {return _parent->parameterCount();}
00044 const int * data() const {return _parent->model(_index);}
00045 int value(int index) const {return data()[index];}
00046
00047 void print() const;
00048 static void print(int parameterCount, const int * data);
00049 private:
00050 int _index;
00051 ModelSet * _parent;
00052 };
00053
00054 uint qHash(const Model& m);
00055
00056 inline Model::Model(int index, ModelSet * parent)
00057 {
00058 _index=index;
00059 _parent=parent;
00060 }
00061
00062 inline Model::Model(const Model& o)
00063 {
00064 _index=o._index;
00065 _parent=o._parent;
00066 }
00067
00068
00069 }
00070
00071 #endif // MODEL_H