The contents of this legacy page are no longer maintained nor supported, and are made available only for historical purposes.


CflowdNetMatrixKey Documentation

CflowdNetMatrixKey

All class functions are defined inline.


[ libCfd | Source | Keywords | Summary | Ancestors | All Members | Descendants ]

Quick Index

DESCRIPTION

Class Summary

class CflowdNetMatrixKey

{

public:
ipv4addr_t Src() const ;
ipv4addr_t Src(ipv4addr_t src) ;
ipv4addr_t Dst() const ;
ipv4addr_t Dst(ipv4addr_t dst) ;
uint8_t SrcMaskLen() const ;
uint8_t SrcMaskLen(uint8_t srcMaskLen) ;
uint8_t DstMaskLen() const ;
uint8_t DstMaskLen(uint8_t dstMaskLen) ;
bool operator < (const CflowdNetMatrixKey & netMatrixKey) const ;
istream & read(istream & is) ;
int read(int fd) ;
ostream & write(ostream & os) const ;
int write(int fd) const ;
protected:
}; // CflowdNetMatrixKey

Back to the top of CflowdNetMatrixKey


DESCRIPTION


---------------------------------------------------------------------------
class CflowdNetMatrixKey
---------------------------------------------------------------------------
This class is used as a key into an network matrix map in cflowd++. The key is comprised of a source and destination network.

Note how I've inlined all this; we don't want member function call overhead in here because this class' members will be called frequently when it's used as a key in an STL .
---------------------------------------------------------------------------

Back to the top of CflowdNetMatrixKey


ipv4addr_t Src() const ;


-------------------------------------------------------------------------
inline ipv4addr_t Src() const
.........................................................................
Returns the source network in the key.
-------------------------------------------------------------------------

  inline ipv4addr_t Src() const
                               
;

Function is currently defined inline.


Back to the top of CflowdNetMatrixKey


ipv4addr_t Src(ipv4addr_t src) ;


-------------------------------------------------------------------------
inline ipv4addr_t Src(ipv4addr_t src)
.........................................................................
Sets the source network in the key and returns it.
-------------------------------------------------------------------------

  inline ipv4addr_t Src(ipv4addr_t src)
                                                     
;

Function is currently defined inline.


Back to the top of CflowdNetMatrixKey


ipv4addr_t Dst() const ;


-------------------------------------------------------------------------
inline ipv4addr_t Dst() const
.........................................................................
Returns the destination network in the key.
-------------------------------------------------------------------------

  inline ipv4addr_t Dst() const
                               
;

Function is currently defined inline.


Back to the top of CflowdNetMatrixKey


ipv4addr_t Dst(ipv4addr_t dst) ;


-------------------------------------------------------------------------
inline ipv4addr_t Dst(ipv4addr_t dst)
.........................................................................
Sets and then returns the destination network in the key.
-------------------------------------------------------------------------

  inline ipv4addr_t Dst(ipv4addr_t dst)
                                                     
;

Function is currently defined inline.


Back to the top of CflowdNetMatrixKey


uint8_t SrcMaskLen() const ;


-------------------------------------------------------------------------
inline uint8_t SrcMaskLen() const
.........................................................................
Returns the source network mask length in the key.
-------------------------------------------------------------------------

  inline uint8_t SrcMaskLen() const
                                      
;

Function is currently defined inline.


Back to the top of CflowdNetMatrixKey


uint8_t SrcMaskLen(uint8_t srcMaskLen) ;


-------------------------------------------------------------------------
inline uint8_t SrcMaskLen(uint8_t srcMaskLen)
.........................................................................
Sets and returns the source network mask length in the key.
-------------------------------------------------------------------------

  inline uint8_t SrcMaskLen(uint8_t srcMaskLen)
                                                                          
;

Function is currently defined inline.


Back to the top of CflowdNetMatrixKey


uint8_t DstMaskLen() const ;


-------------------------------------------------------------------------
inline uint8_t DstMaskLen() const
.........................................................................
Returns the destination network mask length in the key.
-------------------------------------------------------------------------

  inline uint8_t DstMaskLen() const
                                      
;

Function is currently defined inline.


Back to the top of CflowdNetMatrixKey


uint8_t DstMaskLen(uint8_t dstMaskLen) ;


-------------------------------------------------------------------------
inline uint8_t DstMaskLen(uint8_t dstMaskLen)
.........................................................................
Sets and returns the destination network mask length in the key.
-------------------------------------------------------------------------

  inline uint8_t DstMaskLen(uint8_t dstMaskLen)
                                                                          
;

Function is currently defined inline.


Back to the top of CflowdNetMatrixKey


bool operator < (const CflowdNetMatrixKey & netMatrixKey) const ;


-------------------------------------------------------------------------
inline bool operator < (const CflowdNetMatrixKey & netMatrixKey) const
.........................................................................
overloaded '<' operator so we can use less when using this class as a key to an STL .
-------------------------------------------------------------------------

  inline bool operator < (const CflowdNetMatrixKey & netMatrixKey) const
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
;

Function is currently defined inline.


Back to the top of CflowdNetMatrixKey


istream & read(istream & is) ;


-------------------------------------------------------------------------
inline istream & read(istream & is)
.........................................................................
Reads the key from an istream. Returns the istream.
-------------------------------------------------------------------------

  inline istream & read(istream & is)
                                                                                                                                                                                                                                                                                                          
;

Function is currently defined inline.


Back to the top of CflowdNetMatrixKey


int read(int fd) ;


-------------------------------------------------------------------------
inline int read(int fd)
.........................................................................
Reads the key from a file descriptor. Returns the number of bytes read on success, -1 on failure.
-------------------------------------------------------------------------

  inline int read(int fd)
                                                                                                                                                                                                                                                                       ;

Function is currently defined inline.


Back to the top of CflowdNetMatrixKey


ostream & write(ostream & os) const ;


-------------------------------------------------------------------------
inline ostream & write(ostream & os) const
.........................................................................
Writes the key to an ostream. Returns the ostream.
-------------------------------------------------------------------------

  inline ostream & write(ostream & os) const
                                                                                                                                                                                                                                                                                                         
;

Function is currently defined inline.


Back to the top of CflowdNetMatrixKey


int write(int fd) const ;


-------------------------------------------------------------------------
inline int write(int fd) const
.........................................................................
Writes the key to a file descriptor. Returns the number of bytes written on success, -1 on failure.
-------------------------------------------------------------------------

  inline int write(int fd) const
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
;

Function is currently defined inline.


Back to the top of CflowdNetMatrixKey


All Members

public:
ipv4addr_t Src() const ;
ipv4addr_t Src(ipv4addr_t src) ;
ipv4addr_t Dst() const ;
ipv4addr_t Dst(ipv4addr_t dst) ;
uint8_t SrcMaskLen() const ;
uint8_t SrcMaskLen(uint8_t srcMaskLen) ;
uint8_t DstMaskLen() const ;
uint8_t DstMaskLen(uint8_t dstMaskLen) ;
bool operator < (const CflowdNetMatrixKey & netMatrixKey) const ;
istream & read(istream & is) ;
int read(int fd) ;
ostream & write(ostream & os) const ;
int write(int fd) const ;
protected:

Back to the top of CflowdNetMatrixKey


Ancestors

Class does not inherit from any other class.

Back to the top of CflowdNetMatrixKey


Descendants

Class is not inherited by any others.

Back to the top of CflowdNetMatrixKey


Generated from source by the Cocoon utilities on Tue Sep 22 04:08:56 1998 .

Report problems to jkotula@unimax.com

Related Objects

See https://catalog.caida.org/software/cflowd/ to explore related objects to this document in the CAIDA Resource Catalog.