20 #ifndef MINMAXPROPERTY_H
21 #define MINMAXPROPERTY_H
23 #include <tulip/tuliphash.h>
24 #include <tulip/Observable.h>
25 #include <tulip/AbstractProperty.h>
35 template<
typename nodeType,
typename edgeType,
typename propType=PropertyInterface>
49 typename nodeType::RealType NodeMax,
typename edgeType::RealType EdgeMin,
typename edgeType::RealType EdgeMax);
124 TLP_HASH_MAP<unsigned int, typename nodeType::RealType> maxNode, minNode;
125 TLP_HASH_MAP<unsigned int, typename edgeType::RealType> maxEdge, minEdge;
126 TLP_HASH_MAP<unsigned int, bool> nodeValueUptodate;
127 TLP_HASH_MAP<unsigned int, bool> edgeValueUptodate;
129 typename nodeType::RealType _nodeMin;
130 typename nodeType::RealType _nodeMax;
131 typename edgeType::RealType _edgeMin;
132 typename edgeType::RealType _edgeMax;
134 void computeMinMaxNode(
Graph* graph);
135 void computeMinMaxEdge(
Graph* graph);
140 #include "cxx/minmaxproperty.cxx"
142 #endif //MINMAXPROPERTY_H