SEHistogram.h
1/* Distributed under the Apache License, Version 2.0.
2 See accompanying NOTICE file for details.*/
3
4#pragma once
5#include "cdm/properties/SEProperty.h"
6
7class CDM_DECL SEHistogram : public SEProperty
8{
9 friend class PBProperty;//friend the serialization class
10public:
11
13 virtual ~SEHistogram();
14
15 virtual void Clear(); //clear memory
16 void Copy(const SEHistogram& s);
17
18 bool IsValid() const override;
19 void Invalidate() override;
20
21 virtual size_t NumberOfBins() const;
22 virtual size_t NumberOfBoundaries() const;
23
24 double GetDependentValue(size_t index) const;
25 std::vector<double>& GetDependent();
26 const std::vector<double>& GetDependent() const;
27
28 double GetIndependentValue(size_t index) const;
29 std::vector<double>& GetIndependent();
30 const std::vector<double>& GetIndependent() const;
31
32protected:
33
34 std::vector<double> m_Dependent;
35 std::vector<double> m_Independent;
36};
Definition: PBProperties.h:87
Definition: SEHistogram.h:8
std::vector< double > m_Independent
Definition: SEHistogram.h:35
std::vector< double > m_Dependent
Definition: SEHistogram.h:34
void Copy(const SEHistogram &s)
Definition: SEProperty.h:8
virtual void Invalidate()=0
virtual bool IsValid() const =0

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.