Walls And Holes  1
m2mpropertyset.h
Go to the documentation of this file.
1 #ifndef M2MPROPERTYSET_H
2 #define M2MPROPERTYSET_H
3 
4 #include <QMap>
5 #include "m2mpropertyinstance.h"
6 
7 
12 public:
14 
15  bool containsProperty(M2MPropertyClass *prop) const;
16 
21  void addProperty(M2MPropertyInstance propInst);
22 
28 
29 
30  bool operator==(const M2MPropertySet &other) const;
31  bool operator!=(const M2MPropertySet &other) const;
32 
33 protected:
34  QMap<M2MPropertyClass *, M2MPropertyInstance> mProperties;
35 };
36 
37 #endif // M2MPROPERTYSET_H
The M2MPropertyClass represents a property class in Tima&#39;s Map2Mesh code.
Definition: m2mpropertyclass.h:11
The M2MPropertySet class represents a set of M2MPropertyInstances.
Definition: m2mpropertyset.h:11
bool operator!=(const M2MPropertySet &other) const
Definition: m2mpropertyset.cpp:42
bool containsProperty(M2MPropertyClass *prop) const
Definition: m2mpropertyset.cpp:9
bool operator==(const M2MPropertySet &other) const
Definition: m2mpropertyset.cpp:38
QMap< M2MPropertyClass *, M2MPropertyInstance > mProperties
Definition: m2mpropertyset.h:34
The M2MPropertyInstance class represents an instance of a property class in Tima&#39;s map2mesh code...
Definition: m2mpropertyinstance.h:16
void addProperty(M2MPropertyInstance propInst)
Adds the property to the set, ASSUMING IT IS NOT ALREADY THERE.
Definition: m2mpropertyset.cpp:29
M2MPropertySet()
Definition: m2mpropertyset.cpp:3
M2MPropertyInstance getProperty(M2MPropertyClass *ofType) const
Returns the property of the given type.
Definition: m2mpropertyset.cpp:15