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

#include <network.hpp>

Public Member Functions

 Network ()
 
 Network (const boost::asio::ip::address &minAddress, const boost::asio::ip::address &maxAddress)
 
bool doesContain (const boost::asio::ip::address &address) const
 
bool operator== (const Network &rhs) const
 
bool operator!= (const Network &rhs) const
 

Static Public Member Functions

static const NetworkgetMaxRangeV4 ()
 
static const NetworkgetMaxRangeV6 ()
 
static bool isValidCidr (const std::string &cidr)
 

Friends

std::ostream & operator<< (std::ostream &os, const Network &network)
 
std::istream & operator>> (std::istream &is, Network &network)
 

Detailed Description

Definition at line 33 of file network.hpp.

Constructor & Destructor Documentation

◆ Network() [1/2]

nfd::Network::Network ( )
default

◆ Network() [2/2]

nfd::Network::Network ( const boost::asio::ip::address &  minAddress,
const boost::asio::ip::address &  maxAddress 
)

Definition at line 37 of file network.cpp.

Member Function Documentation

◆ doesContain()

bool nfd::Network::doesContain ( const boost::asio::ip::address &  address) const
inline

Definition at line 42 of file network.hpp.

Referenced by nfd::doesAddressMatchRule(), and nfd::doesNetifMatchRule().

◆ getMaxRangeV4()

const Network & nfd::Network::getMaxRangeV4 ( )
static

Definition at line 45 of file network.cpp.

◆ getMaxRangeV6()

const Network & nfd::Network::getMaxRangeV6 ( )
static

Definition at line 53 of file network.cpp.

◆ isValidCidr()

bool nfd::Network::isValidCidr ( const std::string &  cidr)
static

Definition at line 63 of file network.cpp.

◆ operator==()

bool nfd::Network::operator== ( const Network rhs) const
inline

Definition at line 57 of file network.hpp.

◆ operator!=()

bool nfd::Network::operator!= ( const Network rhs) const
inline

Definition at line 63 of file network.hpp.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const Network network 
)
friend

Definition at line 80 of file network.cpp.

◆ operator>>

std::istream& operator>> ( std::istream &  is,
Network network 
)
friend

Definition at line 86 of file network.cpp.


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