27 #include "../../../datatype.h"
28 #include "../../../dataaccess/dataset/ObjectIdSet.h"
38 HistogramValues::iterator it = m_values.begin();
39 while(it != m_values.end())
45 te::qt::widgets::IntervalToObjectIdSet::iterator it2= m_valuesOids.begin();
46 while(it2 != m_valuesOids.end())
55 return m_histogramType;
60 m_histogramType = new_type;
65 std::map<double, unsigned int> res;
68 for(HistogramValues::iterator it = m_values.begin(); it != m_values.end(); ++it)
69 res.insert(std::make_pair(static_cast<te::dt::Double*>(it->first)->getValue(), it->second));
76 std::map<std::string, unsigned int> res;
78 for(HistogramValues::iterator it = m_values.begin(); it != m_values.end(); ++it)
79 res.insert(std::make_pair(it->first->toString(), it->second));
90 m_minValue = new_minValue;
100 m_interval = new_Interval;
105 return m_StringIntervals;
110 m_StringIntervals = new_Interval;
115 m_values.insert(new_value);
116 adjustOids(new_value.first, valuesOIds);
121 m_values.insert(new_value);
126 insert(std::make_pair(interval, frequency), valuesOIds);
131 insert(std::make_pair(interval, frequency));
136 typedef te::qt::widgets::IntervalToObjectIdSet::nth_index<0>::type::iterator itIntervalToObjectIdSet;
139 std::pair<itIntervalToObjectIdSet, itIntervalToObjectIdSet> res = m_valuesOids.equal_range(aux);
140 itIntervalToObjectIdSet it0 = res.first;
141 itIntervalToObjectIdSet it1 = res.second;
149 for(boost::ptr_vector<te::dt::AbstractData>::const_iterator it = it0->oid->getValue().begin(); it != it0->oid->getValue().end(); ++it)
163 typedef te::qt::widgets::IntervalToObjectIdSet::nth_index<0>::type::iterator itIntervalToObjectIdSet;
166 for(
size_t i = 0; i < intervals.size(); ++i)
170 std::pair<itIntervalToObjectIdSet, itIntervalToObjectIdSet> res = m_valuesOids.equal_range(aux);
171 itIntervalToObjectIdSet it0 = res.first;
172 itIntervalToObjectIdSet it1 = res.second;
178 for(boost::ptr_vector<te::dt::AbstractData>::const_iterator it = it0->oid->getValue().begin(); it != it0->oid->getValue().end(); ++it)
194 te::qt::widgets::IntervalToObjectIdSet::nth_index<1>::type::iterator it= m_valuesOids.get<1>().find(oid->
getValueAsString());
201 for(
size_t i = 0; i < valuesOIds.size(); ++i)
void addValue(te::dt::AbstractData *data)
It adds a property value to uniquely identify a data set element.
A class to represent a histogram.
This class represents a set of unique ids created in the same context. i.e. from the same data set...
This class represents an unique id for a data set element.
mydialect insert("+", new te::da::BinaryOpEncoder("+"))
std::string getValueAsString() const
It gets the properties values used to uniquely identify a data set element as string.
A base class for values that can be retrieved from the data access module.
void add(ObjectId *oid)
It adds an object id to this object id set.