File indexing completed on 2025-08-06 08:17:35
0001 #ifndef CENTRALITY_CENTRALITYINFOV1_H
0002 #define CENTRALITY_CENTRALITYINFOV1_H
0003
0004 #include "CentralityInfo.h"
0005
0006 #include <iostream>
0007 #include <map>
0008
0009 class CentralityInfov1 : public CentralityInfo
0010 {
0011 public:
0012 CentralityInfov1() = default;
0013 ~CentralityInfov1() override {}
0014
0015 void identify(std::ostream &os = std::cout) const override;
0016 void Reset() override;
0017 int isValid() const override { return 1; }
0018
0019 PHObject* CloneMe() const override { return new CentralityInfov1(*this); }
0020 void CopyTo(CentralityInfo *info) override;
0021
0022 bool has_quantity(const PROP prop_id) const override;
0023 float get_quantity(const PROP prop_id) const override;
0024 void set_quantity(const PROP prop_id, const float value) override;
0025
0026 bool has_centile(const PROP prop_id) const override;
0027 float get_centile(const PROP prop_id) const override;
0028 void set_centile(const PROP prop_id, const float value) override;
0029
0030 private:
0031 std::map<int, float> _quantity_map;
0032 std::map<int, float> _centile_map;
0033
0034 ClassDefOverride(CentralityInfov1, 1);
0035 };
0036
0037 #endif