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)
 
  162   te::qt::widgets::IntervalToObjectIdSet::nth_index<1>::type::iterator it= m_valuesOids.get<1>().find(oid->
getValueAsString());
 
  169   for(
size_t i = 0; i < valuesOIds.size(); ++i)
 
double & getInterval()
It returns the histogram's interval. Will be invalid if the histogram was created based on string int...
 
This class represents a set of unique ids created in the same context. i.e. from the same data set...
 
double & getMinValue()
It returns the histogram's minimum value. Will be invalid if the histogram was created based on strin...
 
mydialect insert("+", new te::da::BinaryOpEncoder("+"))
 
void setType(int new_type)
It sets the histogram's type. 
 
void addValue(te::dt::AbstractData *data)
It adds a property value to uniquely identify a data set element. 
 
A class to represent a histogram. 
 
void setStringInterval(std::set< std::string > new_Interval)
It sets the histogram's string set of intervals. 
 
int & getType()
It returns the histogram's type. 
 
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. 
 
void insert(std::pair< te::dt::AbstractData *, unsigned int > new_value, std::vector< te::da::ObjectId * > valuesOIds)
It adds a new value to the map containing the histogram values. 
 
void setMinValue(double new_minValue)
It sets the histogram's minimum value. 
 
std::string getValueAsString() const 
It gets the properties values used to uniquely identify a data set element as string. 
 
void setInterval(double new_Interval)
It sets the histogram's interval. 
 
void adjustOids(te::dt::AbstractData *interval, std::vector< te::da::ObjectId * > valuesOIds)
It will populate the IntervalToObjectIdSet with the given interval and it's matching objectIds...
 
std::map< std::string, unsigned int > getStringValues()
It returns the map containing the histogram String values. The key is a unique string that represents...
 
void add(ObjectId *oid)
It adds an object id to this object id set. 
 
te::da::ObjectIdSet * find(te::dt::AbstractData *interval)
It returns an ObjectIdSet containing all the object Ids associeted with the given interval...
 
std::set< std::string > & getStringInterval()
It returns the histogram's string set of intervals. Will be invalid if the histogram was created base...
 
std::map< double, unsigned int > getValues()
It returns the map containing the histogram values. The key is the minimum values of the histogram's ...