NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::nfd::FaceTraits< C > Class Template Referenceabstract

providers getters and setters of face information fields More...

#include <face-traits.hpp>

Inheritance diagram for ndn::nfd::FaceTraits< C >:
Collaboration diagram for ndn::nfd::FaceTraits< C >:

Classes

class  Error
 

Public Member Functions

 FaceTraits ()
 
uint64_t getFaceId () const
 
C & setFaceId (uint64_t faceId)
 
const std::string & getRemoteUri () const
 
C & setRemoteUri (const std::string &remoteUri)
 
const std::string & getLocalUri () const
 
C & setLocalUri (const std::string &localUri)
 
FaceScope getFaceScope () const
 
C & setFaceScope (FaceScope faceScope)
 
FacePersistency getFacePersistency () const
 
C & setFacePersistency (FacePersistency facePersistency)
 
LinkType getLinkType () const
 
C & setLinkType (LinkType linkType)
 
uint64_t getFlags () const
 
C & setFlags (uint64_t flags)
 
bool getFlagBit (size_t bit) const
 
C & setFlagBit (size_t bit, bool value)
 

Protected Member Functions

virtual void wireReset () const =0
 

Protected Attributes

uint64_t m_faceId
 
std::string m_remoteUri
 
std::string m_localUri
 
FaceScope m_faceScope
 
FacePersistency m_facePersistency
 
LinkType m_linkType
 
uint64_t m_flags
 

Detailed Description

template<class C>
class ndn::nfd::FaceTraits< C >

providers getters and setters of face information fields

Template Parameters
Cthe concrete class; it must provide .wireReset() method to clear wire encoding when a field changes

Definition at line 36 of file face-traits.hpp.

Constructor & Destructor Documentation

◆ FaceTraits()

template<class C>
ndn::nfd::FaceTraits< C >::FaceTraits ( )
inline

Definition at line 49 of file face-traits.hpp.

Member Function Documentation

◆ getFaceId()

template<class C>
uint64_t ndn::nfd::FaceTraits< C >::getFaceId ( ) const
inline

◆ setFaceId()

template<class C>
C& ndn::nfd::FaceTraits< C >::setFaceId ( uint64_t  faceId)
inline

Definition at line 65 of file face-traits.hpp.

Referenced by nfd::FaceManager::setConfigFile().

◆ getRemoteUri()

template<class C>
const std::string& ndn::nfd::FaceTraits< C >::getRemoteUri ( ) const
inline

Definition at line 73 of file face-traits.hpp.

Referenced by ndn::nfd::operator<<().

◆ setRemoteUri()

template<class C>
C& ndn::nfd::FaceTraits< C >::setRemoteUri ( const std::string &  remoteUri)
inline

Definition at line 79 of file face-traits.hpp.

◆ getLocalUri()

template<class C>
const std::string& ndn::nfd::FaceTraits< C >::getLocalUri ( ) const
inline

Definition at line 87 of file face-traits.hpp.

Referenced by ndn::nfd::operator<<().

◆ setLocalUri()

template<class C>
C& ndn::nfd::FaceTraits< C >::setLocalUri ( const std::string &  localUri)
inline

Definition at line 93 of file face-traits.hpp.

◆ getFaceScope()

template<class C>
FaceScope ndn::nfd::FaceTraits< C >::getFaceScope ( ) const
inline

Definition at line 101 of file face-traits.hpp.

Referenced by ndn::nfd::operator<<().

◆ setFaceScope()

template<class C>
C& ndn::nfd::FaceTraits< C >::setFaceScope ( FaceScope  faceScope)
inline

Definition at line 107 of file face-traits.hpp.

◆ getFacePersistency()

template<class C>
FacePersistency ndn::nfd::FaceTraits< C >::getFacePersistency ( ) const
inline

Definition at line 115 of file face-traits.hpp.

Referenced by ndn::nfd::operator<<().

◆ setFacePersistency()

template<class C>
C& ndn::nfd::FaceTraits< C >::setFacePersistency ( FacePersistency  facePersistency)
inline

Definition at line 121 of file face-traits.hpp.

◆ getLinkType()

template<class C>
LinkType ndn::nfd::FaceTraits< C >::getLinkType ( ) const
inline

Definition at line 129 of file face-traits.hpp.

Referenced by ndn::nfd::operator<<().

◆ setLinkType()

template<class C>
C& ndn::nfd::FaceTraits< C >::setLinkType ( LinkType  linkType)
inline

Definition at line 135 of file face-traits.hpp.

◆ getFlags()

template<class C>
uint64_t ndn::nfd::FaceTraits< C >::getFlags ( ) const
inline

Definition at line 143 of file face-traits.hpp.

Referenced by ndn::nfd::operator<<().

◆ setFlags()

template<class C>
C& ndn::nfd::FaceTraits< C >::setFlags ( uint64_t  flags)
inline

Definition at line 149 of file face-traits.hpp.

◆ getFlagBit()

template<class C>
bool ndn::nfd::FaceTraits< C >::getFlagBit ( size_t  bit) const
inline

Definition at line 157 of file face-traits.hpp.

◆ setFlagBit()

template<class C>
C& ndn::nfd::FaceTraits< C >::setFlagBit ( size_t  bit,
bool  value 
)
inline

Definition at line 167 of file face-traits.hpp.

◆ wireReset()

Member Data Documentation

◆ m_faceId

template<class C>
uint64_t ndn::nfd::FaceTraits< C >::m_faceId
protected

◆ m_remoteUri

template<class C>
std::string ndn::nfd::FaceTraits< C >::m_remoteUri
protected

◆ m_localUri

template<class C>
std::string ndn::nfd::FaceTraits< C >::m_localUri
protected

◆ m_faceScope

◆ m_facePersistency

◆ m_linkType

◆ m_flags


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