OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::IP::AddrMaskPair Struct Reference

#include <addrpair.hpp>

Collaboration diagram for openvpn::IP::AddrMaskPair:
[legend]

Classes

class  StringPair
 

Public Member Functions

 OPENVPN_EXCEPTION (addr_pair_mask_parse_error)
 
std::string to_string (const bool netmask_form=false) const
 
bool is_canonical () const
 
Addr::Version version () const
 

Static Public Member Functions

static AddrMaskPair from_string (const std::string &s1, const std::string &s2, const char *title=nullptr)
 
static AddrMaskPair from_string (const std::string &s, const char *title=nullptr)
 
static AddrMaskPair from_string (const StringPair &pair, const char *title=nullptr)
 

Public Attributes

Addr addr
 
Addr netmask
 

Static Private Member Functions

static void error (const std::exception &e, const std::string &s, const char *title)
 
static AddrMaskPair from_string_impl (const StringPair &pair, const char *title=nullptr)
 

Detailed Description

Definition at line 26 of file addrpair.hpp.

Member Function Documentation

◆ error()

static void openvpn::IP::AddrMaskPair::error ( const std::exception &  e,
const std::string &  s,
const char *  title 
)
inlinestaticprivate

Definition at line 178 of file addrpair.hpp.

Here is the caller graph for this function:

◆ from_string() [1/3]

static AddrMaskPair openvpn::IP::AddrMaskPair::from_string ( const std::string &  s,
const char *  title = nullptr 
)
inlinestatic

Definition at line 122 of file addrpair.hpp.

◆ from_string() [2/3]

static AddrMaskPair openvpn::IP::AddrMaskPair::from_string ( const std::string &  s1,
const std::string &  s2,
const char *  title = nullptr 
)
inlinestatic

Definition at line 99 of file addrpair.hpp.

Here is the caller graph for this function:

◆ from_string() [3/3]

static AddrMaskPair openvpn::IP::AddrMaskPair::from_string ( const StringPair pair,
const char *  title = nullptr 
)
inlinestatic

Definition at line 136 of file addrpair.hpp.

◆ from_string_impl()

static AddrMaskPair openvpn::IP::AddrMaskPair::from_string_impl ( const StringPair pair,
const char *  title = nullptr 
)
inlinestaticprivate

Definition at line 185 of file addrpair.hpp.

Here is the caller graph for this function:

◆ is_canonical()

bool openvpn::IP::AddrMaskPair::is_canonical ( ) const
inline

Definition at line 159 of file addrpair.hpp.

Here is the caller graph for this function:

◆ OPENVPN_EXCEPTION()

openvpn::IP::AddrMaskPair::OPENVPN_EXCEPTION ( addr_pair_mask_parse_error  )

◆ to_string()

std::string openvpn::IP::AddrMaskPair::to_string ( const bool  netmask_form = false) const
inline

Definition at line 149 of file addrpair.hpp.

◆ version()

Addr::Version openvpn::IP::AddrMaskPair::version ( ) const
inline

Definition at line 164 of file addrpair.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ addr

Addr openvpn::IP::AddrMaskPair::addr

Definition at line 174 of file addrpair.hpp.

◆ netmask

Addr openvpn::IP::AddrMaskPair::netmask

Definition at line 175 of file addrpair.hpp.


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