Walls And Holes  1
m2mpropertyinstance.h
Go to the documentation of this file.
1 #ifndef M2MPROPERTYINSTANCE_H
2 #define M2MPROPERTYINSTANCE_H
3 
4 #include <QVector>
5 #include <QString>
6 #include <QMap>
7 #include <QPair>
8 
9 #include "triplet.h"
10 #include "m2mpropertyclass.h"
11 
12 
17 public:
18 
20 
31 
32 
40  static M2MPropertyInstance createInstance(M2MPropertyClass *ofClass, QVector<ParamTriplet> params);
41 
42 
49  double getParameter(M2MPropertyClass *owningClass, QString param) const;
50 
51 
56  M2MPropertyClass *getClass() const;
57 
58 
59 
60  bool operator==(const M2MPropertyInstance &other) const;
61  bool operator!=(const M2MPropertyInstance &other) const;
62 
63 
64 protected:
66 
71 
78  QMap<M2MPropertyClass *, QMap<QString, double>> mParameters;
79 };
80 
81 
82 
83 #endif // M2MPROPERTYINSTANCE_H
M2MPropertyInstance()
Definition: m2mpropertyinstance.cpp:3
bool operator!=(const M2MPropertyInstance &other) const
Definition: m2mpropertyinstance.cpp:79
M2MPropertyClass * mClassPtr
A pointer to the class that this is directly an instance of.
Definition: m2mpropertyinstance.h:70
double getParameter(M2MPropertyClass *owningClass, QString param) const
Gets the value of the parameter.
Definition: m2mpropertyinstance.cpp:54
static M2MPropertyInstance createInstance(M2MPropertyClass *ofClass)
Creates an instance of the class with default parameter values.
Definition: m2mpropertyinstance.cpp:9
The M2MPropertyClass represents a property class in Tima&#39;s Map2Mesh code.
Definition: m2mpropertyclass.h:11
bool operator==(const M2MPropertyInstance &other) const
Definition: m2mpropertyinstance.cpp:75
Definition: triplet.h:6
The M2MPropertyInstance class represents an instance of a property class in Tima&#39;s map2mesh code...
Definition: m2mpropertyinstance.h:16
M2MPropertyClass * getClass() const
Get the class of the instance.
Definition: m2mpropertyinstance.cpp:69
QMap< M2MPropertyClass *, QMap< QString, double > > mParameters
The parameters for this object. All parameters are double values.
Definition: m2mpropertyinstance.h:78