NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
ns3::ndn::cs::ContentStoreWithStats< Policy > Class Template Reference

Special content store realization that provides ability to track stats of CS operations. More...

#include <content-store-with-stats.hpp>

Inheritance diagram for ns3::ndn::cs::ContentStoreWithStats< Policy >:
Collaboration diagram for ns3::ndn::cs::ContentStoreWithStats< Policy >:

Public Types

typedef ContentStoreImpl< ndnSIM::multi_policy_traits< boost::mpl::vector2< Policy, ndnSIM::lifetime_stats_policy_traits > > > super
 
typedef super::policy_container::template index< 1 >::type lifetime_stats_container
 
typedef void(* RemoveCsEntryCallback) (Ptr< const Entry >, Time)
 
- Public Types inherited from ns3::ndn::cs::ContentStoreImpl< ndnSIM::multi_policy_traits< boost::mpl::vector2< Policy, ndnSIM::lifetime_stats_policy_traits > > >
typedef ndnSIM::trie_with_policy< Name, ndnSIM::smart_pointer_payload_traits< EntryImpl< ContentStoreImpl< ndnSIM::multi_policy_traits< boost::mpl::vector2< Policy, ndnSIM::lifetime_stats_policy_traits > > > >, Entry >, ndnSIM::multi_policy_traits< boost::mpl::vector2< Policy, ndnSIM::lifetime_stats_policy_traits > > > super
 
typedef EntryImpl< ContentStoreImpl< ndnSIM::multi_policy_traits< boost::mpl::vector2< Policy, ndnSIM::lifetime_stats_policy_traits > > > > entry
 
typedef void(* CsEntryCallback) (Ptr< const Entry >)
 
- Public Types inherited from ns3::ndn::ContentStore
typedef void(* CacheHitsCallback) (shared_ptr< const Interest >, shared_ptr< const Data >)
 
typedef void(* CacheMissesCallback) (shared_ptr< const Interest >)
 

Public Member Functions

 ContentStoreWithStats ()
 
virtual void Print (std::ostream &os) const
 Print out content store entries. More...
 
- Public Member Functions inherited from ns3::ndn::cs::ContentStoreImpl< ndnSIM::multi_policy_traits< boost::mpl::vector2< Policy, ndnSIM::lifetime_stats_policy_traits > > >
 ContentStoreImpl ()
 
virtual ~ContentStoreImpl ()
 
virtual shared_ptr< DataLookup (shared_ptr< const Interest > interest)
 Find corresponding CS entry for the given interest. More...
 
virtual bool Add (shared_ptr< const Data > data)
 Add a new content to the content store. More...
 
virtual uint32_t GetSize () const
 Get number of entries in content store. More...
 
virtual Ptr< EntryBegin ()
 Return first element of content store (no order guaranteed) More...
 
virtual Ptr< EntryEnd ()
 Return item next after last (no order guaranteed) More...
 
virtual Ptr< EntryNext (Ptr< Entry >)
 
const super::policy_container & GetPolicy () const
 
super::policy_container & GetPolicy ()
 
- Public Member Functions inherited from ns3::ndn::ContentStore
virtual ~ContentStore ()
 Virtual destructor. More...
 
virtual Ptr< cs::EntryNext (Ptr< cs::Entry >)=0
 Advance the iterator. More...
 

Static Public Member Functions

static TypeId GetTypeId ()
 
- Static Public Member Functions inherited from ns3::ndn::cs::ContentStoreImpl< ndnSIM::multi_policy_traits< boost::mpl::vector2< Policy, ndnSIM::lifetime_stats_policy_traits > > >
static TypeId GetTypeId ()
 
- Static Public Member Functions inherited from ns3::ndn::ContentStore
static TypeId GetTypeId ()
 Interface ID. More...
 
static Ptr< ContentStoreGetContentStore (Ptr< Object > node)
 Static call to cheat python bindings. More...
 

Additional Inherited Members

- Protected Attributes inherited from ns3::ndn::ContentStore
TracedCallback< shared_ptr< const Interest >, shared_ptr< const Data > > m_cacheHitsTrace
 trace of cache hits More...
 
TracedCallback< shared_ptr< const Interest > > m_cacheMissesTrace
 trace of cache misses More...
 

Detailed Description

template<class Policy>
class ns3::ndn::cs::ContentStoreWithStats< Policy >

Special content store realization that provides ability to track stats of CS operations.

Definition at line 39 of file content-store-with-stats.hpp.

Member Typedef Documentation

§ super

template<class Policy>
typedef ContentStoreImpl<ndnSIM:: multi_policy_traits<boost::mpl:: vector2<Policy, ndnSIM::lifetime_stats_policy_traits> > > ns3::ndn::cs::ContentStoreWithStats< Policy >::super

Definition at line 50 of file content-store-with-stats.hpp.

§ lifetime_stats_container

template<class Policy>
typedef super::policy_container::template index<1>::type ns3::ndn::cs::ContentStoreWithStats< Policy >::lifetime_stats_container

Definition at line 52 of file content-store-with-stats.hpp.

§ RemoveCsEntryCallback

template<class Policy>
typedef void(* ns3::ndn::cs::ContentStoreWithStats< Policy >::RemoveCsEntryCallback) (Ptr< const Entry >, Time)

Definition at line 67 of file content-store-with-stats.hpp.

Constructor & Destructor Documentation

§ ContentStoreWithStats()

template<class Policy>
ns3::ndn::cs::ContentStoreWithStats< Policy >::ContentStoreWithStats ( )
inline

Definition at line 54 of file content-store-with-stats.hpp.

Member Function Documentation

§ GetTypeId()

template<class Policy >
TypeId ns3::ndn::cs::ContentStoreWithStats< Policy >::GetTypeId ( void  )
static

§ Print()

template<class Policy >
void ns3::ndn::cs::ContentStoreWithStats< Policy >::Print ( std::ostream &  os) const
inlinevirtual

The documentation for this class was generated from the following file: