tdns
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Public Attributes | List of all members
DNSName Struct Reference

A DNS Name with helpful methods. Inherits case insensitivity from DNSLabel. More...

#include <dns-storage.hh>

Public Member Functions

 DNSName ()
 
 DNSName (std::initializer_list< DNSLabel > dls)
 
void push_back (const DNSLabel &l)
 
auto back () const
 
auto begin () const
 
bool empty () const
 
auto end () const
 
auto front () const
 
void pop_back ()
 
void pop_front ()
 
auto push_front (const DNSLabel &dn)
 
auto size ()
 
void clear ()
 
bool makeRelative (const DNSName &root)
 Makes us relative to 'root', returns false if we weren't part of root. More...
 
bool isPartOf (const DNSName &root) const
 Checks is this DNSName is part of root. More...
 
std::string toString () const
 
bool operator== (const DNSName &rhs) const
 
bool operator!= (const DNSName &rhs) const
 
bool operator< (const DNSName &rhs) const
 

Public Attributes

std::deque< DNSLabeld_name
 

Detailed Description

A DNS Name with helpful methods. Inherits case insensitivity from DNSLabel.

Constructor & Destructor Documentation

DNSName::DNSName ( )
inline
DNSName::DNSName ( std::initializer_list< DNSLabel dls)
inline

Member Function Documentation

auto DNSName::back ( ) const
inline
auto DNSName::begin ( ) const
inline
void DNSName::clear ( )
inline
bool DNSName::empty ( ) const
inline
auto DNSName::end ( ) const
inline
auto DNSName::front ( ) const
inline
bool DNSName::isPartOf ( const DNSName root) const

Checks is this DNSName is part of root.

bool DNSName::makeRelative ( const DNSName root)

Makes us relative to 'root', returns false if we weren't part of root.

bool DNSName::operator!= ( const DNSName rhs) const
inline

Here is the call graph for this function:

bool DNSName::operator< ( const DNSName rhs) const
inline

Here is the call graph for this function:

bool DNSName::operator== ( const DNSName rhs) const
inline

Here is the call graph for this function:

void DNSName::pop_back ( )
inline
void DNSName::pop_front ( )
inline
void DNSName::push_back ( const DNSLabel l)
inline
auto DNSName::push_front ( const DNSLabel dn)
inline
auto DNSName::size ( )
inline
std::string DNSName::toString ( ) const

Member Data Documentation

std::deque<DNSLabel> DNSName::d_name

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