NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::Exclude::Range Class Reference

represent an excluded component or range More...

#include <exclude.hpp>

Collaboration diagram for ndn::Exclude::Range:

Public Member Functions

 Range ()
 
 Range (bool fromInfinity, const name::Component &from, bool toInfinity, const name::Component &to)
 
bool isSingular () const
 
bool operator== (const Exclude::Range &other) const
 
bool operator!= (const Exclude::Range &other) const
 

Public Attributes

bool fromInfinity
 from negative infinity? More...
 
name::Component from
 from component (inclusive) More...
 
bool toInfinity
 to positive infinity? More...
 
name::Component to
 to component (inclusive) More...
 

Detailed Description

represent an excluded component or range

Definition at line 181 of file exclude.hpp.

Constructor & Destructor Documentation

◆ Range() [1/2]

ndn::Exclude::Range::Range ( )

Definition at line 58 of file exclude.cpp.

◆ Range() [2/2]

ndn::Exclude::Range::Range ( bool  fromInfinity,
const name::Component from,
bool  toInfinity,
const name::Component to 
)

Definition at line 64 of file exclude.cpp.

Member Function Documentation

◆ isSingular()

bool ndn::Exclude::Range::isSingular ( ) const
inline
Return values
trueA single component is excluded
falseA range of more than one components are excluded

Definition at line 339 of file exclude.hpp.

References from, fromInfinity, to, and toInfinity.

Referenced by ndn::operator<<().

◆ operator==()

bool ndn::Exclude::Range::operator== ( const Exclude::Range other) const

Definition at line 73 of file exclude.cpp.

References from, fromInfinity, to, and toInfinity.

◆ operator!=()

bool ndn::Exclude::Range::operator!= ( const Exclude::Range other) const
inline

Definition at line 345 of file exclude.hpp.

References ndn::Exclude::operator==().

Member Data Documentation

◆ fromInfinity

bool ndn::Exclude::Range::fromInfinity

from negative infinity?

Definition at line 205 of file exclude.hpp.

Referenced by isSingular(), ndn::operator<<(), and operator==().

◆ from

name::Component ndn::Exclude::Range::from

from component (inclusive)

Precondition
valid only if !fromInfinity

Definition at line 211 of file exclude.hpp.

Referenced by isSingular(), ndn::operator<<(), and operator==().

◆ toInfinity

bool ndn::Exclude::Range::toInfinity

to positive infinity?

Definition at line 216 of file exclude.hpp.

Referenced by isSingular(), ndn::operator<<(), and operator==().

◆ to

name::Component ndn::Exclude::Range::to

to component (inclusive)

Precondition
valid only if !toInfinity

Definition at line 222 of file exclude.hpp.

Referenced by isSingular(), ndn::operator<<(), and operator==().


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