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


CflowdPortMatrixKey Documentation

CflowdPortMatrixKey

All class functions are defined inline.


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

Quick Index

DESCRIPTION

Class Summary

class CflowdPortMatrixKey

{

public:
uint16_t Src() const ;
uint16_t Src(uint16_t src) ;
uint16_t Dst() const ;
uint16_t Dst(uint16_t dst) ;
operator < (const CflowdPortMatrixKey & portMatrixKey) const ;
istream & read(istream & is) ;
int read(int fd) ;
ostream & write(ostream & os) const ;
int write(int fd) const ;
protected:
}; // CflowdPortMatrixKey

Back to the top of CflowdPortMatrixKey


DESCRIPTION


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

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 CflowdPortMatrixKey


uint16_t Src() const ;


-------------------------------------------------------------------------
inline uint16_t Src() const
.........................................................................
Returns the source port in the key.
-------------------------------------------------------------------------

  inline uint16_t Src() const
                               
;

Function is currently defined inline.


Back to the top of CflowdPortMatrixKey


uint16_t Src(uint16_t src) ;


-------------------------------------------------------------------------
inline uint16_t Src(uint16_t src)
.........................................................................
Sets the source port in the key and returns it.
-------------------------------------------------------------------------

  inline uint16_t Src(uint16_t src)
                                                     
;

Function is currently defined inline.


Back to the top of CflowdPortMatrixKey


uint16_t Dst() const ;


-------------------------------------------------------------------------
inline uint16_t Dst() const
.........................................................................
Returns the destination port in the key.
-------------------------------------------------------------------------

  inline uint16_t Dst() const
                               
;

Function is currently defined inline.


Back to the top of CflowdPortMatrixKey


uint16_t Dst(uint16_t dst) ;


-------------------------------------------------------------------------
inline uint16_t Dst(uint16_t dst)
.........................................................................
Sets and then returns the destination port in the key.
-------------------------------------------------------------------------

  inline uint16_t Dst(uint16_t dst)
                                                     
;

Function is currently defined inline.


Back to the top of CflowdPortMatrixKey


operator < (const CflowdPortMatrixKey & portMatrixKey) const ;


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

  inline operator < (const CflowdPortMatrixKey & portMatrixKey) const
                                                                                                                                                                                   
;

Function is currently defined inline.


Back to the top of CflowdPortMatrixKey


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 CflowdPortMatrixKey


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 CflowdPortMatrixKey


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 CflowdPortMatrixKey


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 CflowdPortMatrixKey


All Members

public:
uint16_t Src() const ;
uint16_t Src(uint16_t src) ;
uint16_t Dst() const ;
uint16_t Dst(uint16_t dst) ;
operator < (const CflowdPortMatrixKey & portMatrixKey) 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 CflowdPortMatrixKey


Ancestors

Class does not inherit from any other class.

Back to the top of CflowdPortMatrixKey


Descendants

Class is not inherited by any others.

Back to the top of CflowdPortMatrixKey


Generated from source by the Cocoon utilities on Tue Sep 22 04:08:57 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.