table: don't use shared_ptr in Measurements
refs #3164
Change-Id: I7705d00ac155b15b5db69809610b68e96360a0ae
diff --git a/daemon/table/name-tree-entry.hpp b/daemon/table/name-tree-entry.hpp
index 7bade1f..2827926 100644
--- a/daemon/table/name-tree-entry.hpp
+++ b/daemon/table/name-tree-entry.hpp
@@ -114,9 +114,9 @@
getPitEntries() const;
void
- setMeasurementsEntry(shared_ptr<measurements::Entry> measurementsEntry);
+ setMeasurementsEntry(unique_ptr<measurements::Entry> measurementsEntry);
- shared_ptr<measurements::Entry>
+ measurements::Entry*
getMeasurementsEntry() const;
void
@@ -135,7 +135,7 @@
std::vector<shared_ptr<Entry> > m_children; // Children pointers.
unique_ptr<fib::Entry> m_fibEntry;
std::vector<shared_ptr<pit::Entry> > m_pitEntries;
- shared_ptr<measurements::Entry> m_measurementsEntry;
+ unique_ptr<measurements::Entry> m_measurementsEntry;
unique_ptr<strategy_choice::Entry> m_strategyChoiceEntry;
// get the Name Tree Node that is associated with this Name Tree Entry
@@ -205,10 +205,10 @@
return m_pitEntries;
}
-inline shared_ptr<measurements::Entry>
+inline measurements::Entry*
Entry::getMeasurementsEntry() const
{
- return m_measurementsEntry;
+ return m_measurementsEntry.get();
}
inline strategy_choice::Entry*