NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: 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)
 
void print (std::ostream &os) const
 
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 ()
 

Friends

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

Detailed Description

Definition at line 35 of file network.hpp.

Constructor & Destructor Documentation

nfd::Network::Network ( )
inline

Definition at line 38 of file network.hpp.

Referenced by getMaxRangeV4(), and getMaxRangeV6().

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

Definition at line 42 of file network.hpp.

References print().

Member Function Documentation

void nfd::Network::print ( std::ostream &  os) const

Definition at line 31 of file network.cpp.

Referenced by Network(), and nfd::operator<<().

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

Definition at line 53 of file network.hpp.

References getMaxRangeV4(), and getMaxRangeV6().

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

Definition at line 37 of file network.cpp.

References Network().

Referenced by doesContain().

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

Definition at line 45 of file network.cpp.

References Network().

Referenced by doesContain().

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

Definition at line 65 of file network.hpp.

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

Definition at line 71 of file network.hpp.

References operator<<, and operator>>.

Friends And Related Function Documentation

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

Definition at line 65 of file network.cpp.

Referenced by operator!=().

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

Definition at line 58 of file network.cpp.

Referenced by operator!=().


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