NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::time::CustomClock< BaseClock > Class Template Referenceabstract

Class implementing custom system or steady clock behavior. More...

#include <time-custom-clock.hpp>

Inheritance diagram for ndn::time::CustomClock< BaseClock >:

Public Member Functions

virtual ~CustomClock ()
 
virtual BaseClock::time_point getNow () const =0
 
virtual std::string getSince () const =0
 
virtual boost::posix_time::time_duration toPosixDuration (const typename BaseClock::duration &duration) const =0
 

Detailed Description

template<typename BaseClock>
class ndn::time::CustomClock< BaseClock >

Class implementing custom system or steady clock behavior.

Instance of specialization of this class may be passed to setCustomClocks() free function in order to change global behavior of system or steady clock.

Definition at line 37 of file time-custom-clock.hpp.

Constructor & Destructor Documentation

Member Function Documentation

template<typename BaseClock >
virtual BaseClock::time_point ndn::time::CustomClock< BaseClock >::getNow ( ) const
pure virtual
template<typename BaseClock >
virtual std::string ndn::time::CustomClock< BaseClock >::getSince ( ) const
pure virtual
template<typename BaseClock >
virtual boost::posix_time::time_duration ndn::time::CustomClock< BaseClock >::toPosixDuration ( const typename BaseClock::duration &  duration) const
pure virtual

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