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


CflowdInterfaceMatrixKey Documentation

CflowdInterfaceMatrixKey

All class functions are defined inline.


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

Quick Index

DESCRIPTION

Class Summary

class CflowdInterfaceMatrixKey

{

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

Back to the top of CflowdInterfaceMatrixKey


DESCRIPTION


---------------------------------------------------------------------------
class CflowdInterfaceMatrixKey
---------------------------------------------------------------------------
This class is used as a key into an interface matrix map in cflowd++. The key is comprised of an input (source) interface index and an ouput (destination) interface.

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 CflowdInterfaceMatrixKey


uint16_t Src() const ;


-------------------------------------------------------------------------
inline uint16_t Src() const
.........................................................................
Returns the input interface in the key.
-------------------------------------------------------------------------

  inline uint16_t Src() const
                               
;

Function is currently defined inline.


Back to the top of CflowdInterfaceMatrixKey


uint16_t Src(uint16_t src) ;


-------------------------------------------------------------------------
inline uint16_t Src(uint16_t src)
.........................................................................
Sets the input interface in the key and returns it.
-------------------------------------------------------------------------

  inline uint16_t Src(uint16_t src)
                                                     
;

Function is currently defined inline.


Back to the top of CflowdInterfaceMatrixKey


uint16_t Dst() const ;


-------------------------------------------------------------------------
inline uint16_t Dst() const
.........................................................................
Returns the output interface in the key.
-------------------------------------------------------------------------

  inline uint16_t Dst() const
                               
;

Function is currently defined inline.


Back to the top of CflowdInterfaceMatrixKey


uint16_t Dst(uint16_t dst) ;


-------------------------------------------------------------------------
inline uint16_t Dst(uint16_t dst)
.........................................................................
Sets and then returns the output interface in the key.
-------------------------------------------------------------------------

  inline uint16_t Dst(uint16_t dst)
                                                     
;

Function is currently defined inline.


Back to the top of CflowdInterfaceMatrixKey


operator < (const CflowdInterfaceMatrixKey & ifmKey) const ;


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

  inline operator < (const CflowdInterfaceMatrixKey & ifmKey) const
                                                                                                                                                                     
;

Function is currently defined inline.


Back to the top of CflowdInterfaceMatrixKey


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 CflowdInterfaceMatrixKey


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 CflowdInterfaceMatrixKey


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 CflowdInterfaceMatrixKey


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 CflowdInterfaceMatrixKey


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 CflowdInterfaceMatrixKey & ifmKey) 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 CflowdInterfaceMatrixKey


Ancestors

Class does not inherit from any other class.

Back to the top of CflowdInterfaceMatrixKey


Descendants

Class is not inherited by any others.

Back to the top of CflowdInterfaceMatrixKey


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