model+utils: New implementation (realization) of PIT, implementing limiting based on Interest packet sizes, not the number of entries
Also, small reorganization with policies
diff --git a/model/pit/ndn-pit-impl.h b/model/pit/ndn-pit-impl.h
index 00cfe3c..7a346d2 100644
--- a/model/pit/ndn-pit-impl.h
+++ b/model/pit/ndn-pit-impl.h
@@ -73,7 +73,7 @@
*/
virtual ~PitImpl ();
- // inherited from Pit
+ // inherited from Pit
virtual Ptr<Entry>
Lookup (const ContentObjectHeader &header);
@@ -82,7 +82,7 @@
virtual Ptr<Entry>
Create (Ptr<const InterestHeader> header);
-
+
virtual void
MarkErased (Ptr<Entry> entry);
@@ -100,12 +100,12 @@
virtual Ptr<Entry>
Next (Ptr<Entry>);
-
+
protected:
void RescheduleCleaning ();
void CleanExpired ();
-
- // inherited from Object class
+
+ // inherited from Object class
virtual void NotifyNewAggregate (); ///< @brief Even when object is aggregated to another Object
virtual void DoDispose (); ///< @brief Do cleanup
@@ -115,7 +115,10 @@
void
SetMaxSize (uint32_t maxSize);
-
+
+ uint32_t
+ GetCurrentSize () const;
+
private:
EventId m_cleanEvent;
Ptr<Fib> m_fib; ///< \brief Link to FIB table
@@ -129,8 +132,8 @@
boost::intrusive::set_member_hook<>,
&entry::time_hook_>
> time_index;
- time_index i_time;
-
+ time_index i_time;
+
friend class EntryImpl< PitImpl >;
};