diff options
author | Daniel Scally <dan.scally@ideasonboard.com> | 2024-05-02 14:30:39 +0100 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2024-05-08 09:47:07 +0100 |
commit | 76e2db61ee15a78c0be95a563ef74c9e2493fa84 (patch) | |
tree | 5f41fd07b3e1f0e1e49559f5ca37134c9c404108 /src/ipa/libipa/histogram.cpp | |
parent | ea1e9eba748c5a4068ba2edffebf31fb2bafa923 (diff) |
ipa: libipa: Allow creation of empty Histogram
For convenience's sake allow the creation of empty Histograms so
they can be embedded within other Classes and filled out with
data at some later point in time.
Reviewed-by: Stefan Klug <stefan.klug@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/ipa/libipa/histogram.cpp')
-rw-r--r-- | src/ipa/libipa/histogram.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ipa/libipa/histogram.cpp b/src/ipa/libipa/histogram.cpp index 6b5cde8e..c1aac59b 100644 --- a/src/ipa/libipa/histogram.cpp +++ b/src/ipa/libipa/histogram.cpp @@ -29,6 +29,15 @@ namespace ipa { */ /** + * \fn Histogram::Histogram() + * \brief Construct an empty Histogram + * + * This empty constructor exists largely to allow Histograms to be embedded in + * other classes which may be created before the contents of the Histogram are + * known. + */ + +/** * \brief Create a cumulative histogram * \param[in] data A pre-sorted histogram to be passed */ |