26 #ifndef __TERRALIB_QT_WIDGETS_INTERNAL_HISTOGRAMUTILS_H 27 #define __TERRALIB_QT_WIDGETS_INTERNAL_HISTOGRAMUTILS_H 30 #include "../Config.h" 31 #include "../../../datatype/SimpleData.h" 32 #include "../../../dataaccess/dataset/ObjectId.h" 40 #include <boost/multi_index_container.hpp> 41 #include <boost/multi_index/ordered_index.hpp> 42 #include <boost/multi_index/identity.hpp> 43 #include <boost/multi_index/member.hpp> 44 #include <boost/multi_index/mem_fun.hpp> 62 return (static_cast<te::dt::Double*>(v1)->getValue() < static_cast<te::dt::Double*>(v2)->getValue());
64 return (static_cast<te::dt::String*>(v1)->getValue() < static_cast<te::dt::String*>(v2)->getValue());
71 typedef std::map<te::dt::AbstractData*, unsigned int, CompareHistogramInterval>
HistogramValues;
94 typedef boost::multi_index::multi_index_container<
96 boost::multi_index::indexed_by<
99 boost::multi_index::ordered_non_unique<
100 boost::multi_index::identity<IntervalToObjectId> >,
103 boost::multi_index::ordered_unique<
104 boost::multi_index::const_mem_fun<IntervalToObjectId, std::string, &IntervalToObjectId::getObjIdAsString> >
112 #endif // __TERRALIB_QT_WIDGETS_INTERNAL_HISTOGRAMUTILS_H
virtual int getTypeCode() const =0
It returns the data type code associated to the data value.
This class represents an unique id for a data set element.
A base class for values that can be retrieved from the data access module.
std::string getValueAsString() const
It gets the properties values used to uniquely identify a data set element as string.