Dibbler - a portable DHCPv6  1.0.2RC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
THostRange Class Reference

#include <HostRange.h>

+ Collaboration diagram for THostRange:

Public Member Functions

 THostRange (SPtr< TDUID > duidl, SPtr< TDUID > duidr)
 THostRange (SPtr< TIPv6Addr > addrl, SPtr< TIPv6Addr > addrR)
 ~THostRange (void)
SPtr< TIPv6AddrgetAddrL () const
SPtr< TIPv6AddrgetAddrR () const
int getPrefixLength () const
SPtr< TIPv6AddrgetRandomAddr () const
SPtr< TIPv6AddrgetRandomPrefix () const
bool in (SPtr< TDUID > duid, SPtr< TIPv6Addr > addr) const
bool in (SPtr< TIPv6Addr > addr) const
bool in (SPtr< TDUID > duid) const
unsigned long rangeCount () const
void setPrefixLength (int len)
void truncate (int minPrefix, int maxPrefix)

Private Attributes

SPtr< TIPv6AddrAddrL_
SPtr< TIPv6AddrAddrR_
SPtr< TDUIDDUIDL_
SPtr< TDUIDDUIDR_
bool isAddrRange_
int PrefixLength_

Friends

std::ostream & operator<< (std::ostream &out, THostRange &station)

Constructor & Destructor Documentation

THostRange::THostRange ( SPtr< TDUID duidl,
SPtr< TDUID duidr 
)
THostRange::THostRange ( SPtr< TIPv6Addr addrl,
SPtr< TIPv6Addr addrR 
)
Todo:
: prefix length could be calculated automatically here
THostRange::~THostRange ( void  )

Member Function Documentation

SPtr< TIPv6Addr > THostRange::getAddrL ( ) const
SPtr< TIPv6Addr > THostRange::getAddrR ( ) const
int THostRange::getPrefixLength ( ) const
SPtr< TIPv6Addr > THostRange::getRandomAddr ( ) const
SPtr< TIPv6Addr > THostRange::getRandomPrefix ( ) const
bool THostRange::in ( SPtr< TDUID duid,
SPtr< TIPv6Addr addr 
) const
bool THostRange::in ( SPtr< TIPv6Addr addr) const
bool THostRange::in ( SPtr< TDUID duid) const
unsigned long THostRange::rangeCount ( ) const
void THostRange::setPrefixLength ( int  len)
void THostRange::truncate ( int  minPrefix,
int  maxPrefix 
)

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
THostRange station 
)
friend

Member Data Documentation

SPtr<TIPv6Addr> THostRange::AddrL_
private
SPtr<TIPv6Addr> THostRange::AddrR_
private
SPtr<TDUID> THostRange::DUIDL_
private
SPtr<TDUID> THostRange::DUIDR_
private
bool THostRange::isAddrRange_
private
int THostRange::PrefixLength_
private

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