table: PIT entry InRecord/OutRecord getters
refs #1569
Change-Id: I52d9516fa6154036904e163f918890579a745e4f
diff --git a/daemon/table/pit-entry.cpp b/daemon/table/pit-entry.cpp
index e607dba..6fc34de 100644
--- a/daemon/table/pit-entry.cpp
+++ b/daemon/table/pit-entry.cpp
@@ -148,6 +148,13 @@
return it;
}
+InRecordCollection::const_iterator
+Entry::getInRecord(shared_ptr<Face> face) const
+{
+ return std::find_if(m_inRecords.begin(), m_inRecords.end(),
+ bind(&predicate_FaceRecord_Face, _1, face.get()));
+}
+
void
Entry::deleteInRecords()
{
@@ -169,6 +176,13 @@
return it;
}
+OutRecordCollection::const_iterator
+Entry::getOutRecord(shared_ptr<Face> face) const
+{
+ return std::find_if(m_outRecords.begin(), m_outRecords.end(),
+ bind(&predicate_FaceRecord_Face, _1, face.get()));
+}
+
void
Entry::deleteOutRecord(shared_ptr<Face> face)
{