NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
nonstd::optional_lite Namespace Reference

Namespaces

 detail
 
 std11
 

Classes

struct  nullopt_t
 disengaged state tag More...
 
class  optional
 class optional More...
 

Functions

template<typename T , typename U >
optional_constexpr bool operator== (optional< T > const &x, optional< U > const &y)
 
template<typename T , typename U >
optional_constexpr bool operator!= (optional< T > const &x, optional< U > const &y)
 
template<typename T , typename U >
optional_constexpr bool operator< (optional< T > const &x, optional< U > const &y)
 
template<typename T , typename U >
optional_constexpr bool operator> (optional< T > const &x, optional< U > const &y)
 
template<typename T , typename U >
optional_constexpr bool operator<= (optional< T > const &x, optional< U > const &y)
 
template<typename T , typename U >
optional_constexpr bool operator>= (optional< T > const &x, optional< U > const &y)
 
template<typename T >
optional_constexpr bool operator== (optional< T > const &x, nullopt_t) optional_noexcept
 
template<typename T >
optional_constexpr bool operator== (nullopt_t, optional< T > const &x) optional_noexcept
 
template<typename T >
optional_constexpr bool operator!= (optional< T > const &x, nullopt_t) optional_noexcept
 
template<typename T >
optional_constexpr bool operator!= (nullopt_t, optional< T > const &x) optional_noexcept
 
template<typename T >
optional_constexpr bool operator< (optional< T > const &, nullopt_t) optional_noexcept
 
template<typename T >
optional_constexpr bool operator< (nullopt_t, optional< T > const &x) optional_noexcept
 
template<typename T >
optional_constexpr bool operator<= (optional< T > const &x, nullopt_t) optional_noexcept
 
template<typename T >
optional_constexpr bool operator<= (nullopt_t, optional< T > const &) optional_noexcept
 
template<typename T >
optional_constexpr bool operator> (optional< T > const &x, nullopt_t) optional_noexcept
 
template<typename T >
optional_constexpr bool operator> (nullopt_t, optional< T > const &) optional_noexcept
 
template<typename T >
optional_constexpr bool operator>= (optional< T > const &, nullopt_t) optional_noexcept
 
template<typename T >
optional_constexpr bool operator>= (nullopt_t, optional< T > const &x) optional_noexcept
 
template<typename T , typename U >
optional_constexpr bool operator== (optional< T > const &x, U const &v)
 
template<typename T , typename U >
optional_constexpr bool operator== (U const &v, optional< T > const &x)
 
template<typename T , typename U >
optional_constexpr bool operator!= (optional< T > const &x, U const &v)
 
template<typename T , typename U >
optional_constexpr bool operator!= (U const &v, optional< T > const &x)
 
template<typename T , typename U >
optional_constexpr bool operator< (optional< T > const &x, U const &v)
 
template<typename T , typename U >
optional_constexpr bool operator< (U const &v, optional< T > const &x)
 
template<typename T , typename U >
optional_constexpr bool operator<= (optional< T > const &x, U const &v)
 
template<typename T , typename U >
optional_constexpr bool operator<= (U const &v, optional< T > const &x)
 
template<typename T , typename U >
optional_constexpr bool operator> (optional< T > const &x, U const &v)
 
template<typename T , typename U >
optional_constexpr bool operator> (U const &v, optional< T > const &x)
 
template<typename T , typename U >
optional_constexpr bool operator>= (optional< T > const &x, U const &v)
 
template<typename T , typename U >
optional_constexpr bool operator>= (U const &v, optional< T > const &x)
 
template<typename T >
void swap (optional< T > &x, optional< T > &y)
 
template<typename T >
optional< T > make_optional (T const &value)
 

Variables

const nullopt_t nullopt ((nullopt_t::init()))
 

Function Documentation

◆ operator==() [1/5]

template<typename T , typename U >
optional_constexpr bool nonstd::optional_lite::operator== ( optional< T > const &  x,
optional< U > const &  y 
)
inline

Definition at line 1533 of file optional-lite.hpp.

◆ operator!=() [1/5]

template<typename T , typename U >
optional_constexpr bool nonstd::optional_lite::operator!= ( optional< T > const &  x,
optional< U > const &  y 
)
inline

Definition at line 1539 of file optional-lite.hpp.

◆ operator<() [1/5]

template<typename T , typename U >
optional_constexpr bool nonstd::optional_lite::operator< ( optional< T > const &  x,
optional< U > const &  y 
)
inline

Definition at line 1545 of file optional-lite.hpp.

◆ operator>() [1/5]

template<typename T , typename U >
optional_constexpr bool nonstd::optional_lite::operator> ( optional< T > const &  x,
optional< U > const &  y 
)
inline

Definition at line 1551 of file optional-lite.hpp.

Referenced by nonstd::span_lite::span< T, Extent >::crend().

◆ operator<=() [1/5]

template<typename T , typename U >
optional_constexpr bool nonstd::optional_lite::operator<= ( optional< T > const &  x,
optional< U > const &  y 
)
inline

Definition at line 1557 of file optional-lite.hpp.

◆ operator>=() [1/5]

template<typename T , typename U >
optional_constexpr bool nonstd::optional_lite::operator>= ( optional< T > const &  x,
optional< U > const &  y 
)
inline

Definition at line 1563 of file optional-lite.hpp.

Referenced by nonstd::span_lite::span< T, Extent >::crend().

◆ operator==() [2/5]

template<typename T >
optional_constexpr bool nonstd::optional_lite::operator== ( optional< T > const &  x,
nullopt_t   
)
inline

Definition at line 1571 of file optional-lite.hpp.

◆ operator==() [3/5]

template<typename T >
optional_constexpr bool nonstd::optional_lite::operator== ( nullopt_t  ,
optional< T > const &  x 
)
inline

Definition at line 1577 of file optional-lite.hpp.

◆ operator!=() [2/5]

template<typename T >
optional_constexpr bool nonstd::optional_lite::operator!= ( optional< T > const &  x,
nullopt_t   
)
inline

Definition at line 1583 of file optional-lite.hpp.

◆ operator!=() [3/5]

template<typename T >
optional_constexpr bool nonstd::optional_lite::operator!= ( nullopt_t  ,
optional< T > const &  x 
)
inline

Definition at line 1589 of file optional-lite.hpp.

◆ operator<() [2/5]

template<typename T >
optional_constexpr bool nonstd::optional_lite::operator< ( optional< T > const &  ,
nullopt_t   
)
inline

Definition at line 1595 of file optional-lite.hpp.

◆ operator<() [3/5]

template<typename T >
optional_constexpr bool nonstd::optional_lite::operator< ( nullopt_t  ,
optional< T > const &  x 
)
inline

Definition at line 1601 of file optional-lite.hpp.

◆ operator<=() [2/5]

template<typename T >
optional_constexpr bool nonstd::optional_lite::operator<= ( optional< T > const &  x,
nullopt_t   
)
inline

Definition at line 1607 of file optional-lite.hpp.

◆ operator<=() [3/5]

template<typename T >
optional_constexpr bool nonstd::optional_lite::operator<= ( nullopt_t  ,
optional< T > const &   
)
inline

Definition at line 1613 of file optional-lite.hpp.

◆ operator>() [2/5]

template<typename T >
optional_constexpr bool nonstd::optional_lite::operator> ( optional< T > const &  x,
nullopt_t   
)
inline

Definition at line 1619 of file optional-lite.hpp.

◆ operator>() [3/5]

template<typename T >
optional_constexpr bool nonstd::optional_lite::operator> ( nullopt_t  ,
optional< T > const &   
)
inline

Definition at line 1625 of file optional-lite.hpp.

◆ operator>=() [2/5]

template<typename T >
optional_constexpr bool nonstd::optional_lite::operator>= ( optional< T > const &  ,
nullopt_t   
)
inline

Definition at line 1631 of file optional-lite.hpp.

◆ operator>=() [3/5]

template<typename T >
optional_constexpr bool nonstd::optional_lite::operator>= ( nullopt_t  ,
optional< T > const &  x 
)
inline

Definition at line 1637 of file optional-lite.hpp.

◆ operator==() [4/5]

template<typename T , typename U >
optional_constexpr bool nonstd::optional_lite::operator== ( optional< T > const &  x,
U const &  v 
)
inline

Definition at line 1645 of file optional-lite.hpp.

◆ operator==() [5/5]

template<typename T , typename U >
optional_constexpr bool nonstd::optional_lite::operator== ( U const &  v,
optional< T > const &  x 
)
inline

Definition at line 1651 of file optional-lite.hpp.

◆ operator!=() [4/5]

template<typename T , typename U >
optional_constexpr bool nonstd::optional_lite::operator!= ( optional< T > const &  x,
U const &  v 
)
inline

Definition at line 1657 of file optional-lite.hpp.

◆ operator!=() [5/5]

template<typename T , typename U >
optional_constexpr bool nonstd::optional_lite::operator!= ( U const &  v,
optional< T > const &  x 
)
inline

Definition at line 1663 of file optional-lite.hpp.

◆ operator<() [4/5]

template<typename T , typename U >
optional_constexpr bool nonstd::optional_lite::operator< ( optional< T > const &  x,
U const &  v 
)
inline

Definition at line 1669 of file optional-lite.hpp.

◆ operator<() [5/5]

template<typename T , typename U >
optional_constexpr bool nonstd::optional_lite::operator< ( U const &  v,
optional< T > const &  x 
)
inline

Definition at line 1675 of file optional-lite.hpp.

◆ operator<=() [4/5]

template<typename T , typename U >
optional_constexpr bool nonstd::optional_lite::operator<= ( optional< T > const &  x,
U const &  v 
)
inline

Definition at line 1681 of file optional-lite.hpp.

◆ operator<=() [5/5]

template<typename T , typename U >
optional_constexpr bool nonstd::optional_lite::operator<= ( U const &  v,
optional< T > const &  x 
)
inline

Definition at line 1687 of file optional-lite.hpp.

◆ operator>() [4/5]

template<typename T , typename U >
optional_constexpr bool nonstd::optional_lite::operator> ( optional< T > const &  x,
U const &  v 
)
inline

Definition at line 1693 of file optional-lite.hpp.

◆ operator>() [5/5]

template<typename T , typename U >
optional_constexpr bool nonstd::optional_lite::operator> ( U const &  v,
optional< T > const &  x 
)
inline

Definition at line 1699 of file optional-lite.hpp.

◆ operator>=() [4/5]

template<typename T , typename U >
optional_constexpr bool nonstd::optional_lite::operator>= ( optional< T > const &  x,
U const &  v 
)
inline

Definition at line 1705 of file optional-lite.hpp.

◆ operator>=() [5/5]

template<typename T , typename U >
optional_constexpr bool nonstd::optional_lite::operator>= ( U const &  v,
optional< T > const &  x 
)
inline

Definition at line 1711 of file optional-lite.hpp.

◆ swap()

template<typename T >
void nonstd::optional_lite::swap ( optional< T > &  x,
optional< T > &  y 
)

◆ make_optional()

template<typename T >
optional<T> nonstd::optional_lite::make_optional ( T const &  value)

Definition at line 1756 of file optional-lite.hpp.

References nullopt, and optional_noexcept.

Referenced by ndn::Data::getKeyLocator(), and swap().

Variable Documentation

◆ nullopt

const nullopt_t nonstd::optional_lite::nullopt((nullopt_t::init()))

Referenced by ndn::Name::appendByteOffset(), ndn::net::NetlinkMessageAttributes< T >::getAttributeByType(), ndn::SignatureInfo::getCustomTlv(), ndn::PrefixAnnouncement::getData(), ndn::Data::getKeyLocator(), ndn::SignatureInfo::getNonce(), ndn::SignatureInfo::getSeqNum(), ndn::Interest::getSignatureInfo(), nfd::getSignerFromTag(), ndn::SignatureInfo::getTime(), nfd::rib::ClientToNlsrReadvertisePolicy::handleNewRoute(), nfd::rib::HostToGatewayReadvertisePolicy::handleNewRoute(), make_optional(), nonstd::optional_lite::nullopt_t::nullopt_t(), nonstd::optional_lite::optional< T >::operator=(), nfd::fw::Strategy::parseInstanceName(), nfd::face::pickAddress(), ndn::lp::PrefixAnnouncementHeader::PrefixAnnouncementHeader(), ndn::PendingInterest::recordNack(), ndn::Face::registerPrefix(), ndn::security::v2::KeyChain::registerTpmBackend(), nfd::RibManager::slAnnounce(), nfd::RibManager::slFindAnn(), nfd::RibManager::slRenew(), ndn::nfd::FaceStatus::unsetBaseCongestionMarkingInterval(), ndn::nfd::FaceStatus::unsetDefaultCongestionThreshold(), ndn::nfd::FaceStatus::unsetExpirationPeriod(), ndn::nfd::Route::unsetExpirationPeriod(), ndn::nfd::FaceQueryFilter::unsetFaceId(), ndn::nfd::FaceQueryFilter::unsetFacePersistency(), ndn::nfd::FaceQueryFilter::unsetFaceScope(), ndn::nfd::FaceQueryFilter::unsetLinkType(), ndn::nfd::FaceStatus::unsetMtu(), ndn::security::v2::Validator::validate(), ndn::nfd::FaceStatus::wireDecode(), ndn::nfd::FaceQueryFilter::wireDecode(), ndn::MetaInfo::wireDecode(), ndn::SignatureInfo::wireDecode(), ndn::nfd::Route::wireDecode(), and ndn::lp::PrefixAnnouncementHeader::wireEncode().