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


CflowdAsMatrixKey Documentation

CflowdAsMatrixKey

All class functions are defined inline.


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

Quick Index

DESCRIPTION

Class Summary

class CflowdAsMatrixKey

{

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

Back to the top of CflowdAsMatrixKey


DESCRIPTION


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

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 CflowdAsMatrixKey


uint16_t Src() const ;


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

  inline uint16_t Src() const
                               
;

Function is currently defined inline.


Back to the top of CflowdAsMatrixKey


uint16_t Src(uint16_t src) ;


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

  inline uint16_t Src(uint16_t src)
                                                     
;

Function is currently defined inline.


Back to the top of CflowdAsMatrixKey


uint16_t Dst() const ;


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

  inline uint16_t Dst() const
                               
;

Function is currently defined inline.


Back to the top of CflowdAsMatrixKey


uint16_t Dst(uint16_t dst) ;


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

  inline uint16_t Dst(uint16_t dst)
                                                     
;

Function is currently defined inline.


Back to the top of CflowdAsMatrixKey


operator < (const CflowdAsMatrixKey & asMatrixKey) const ;


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

  inline operator < (const CflowdAsMatrixKey & asMatrixKey) const
                                                                                                                                                                               
;

Function is currently defined inline.


Back to the top of CflowdAsMatrixKey


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 CflowdAsMatrixKey


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 CflowdAsMatrixKey


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 CflowdAsMatrixKey


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 CflowdAsMatrixKey


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 CflowdAsMatrixKey & asMatrixKey) 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 CflowdAsMatrixKey


Ancestors

Class does not inherit from any other class.

Back to the top of CflowdAsMatrixKey


Descendants

Class is not inherited by any others.

Back to the top of CflowdAsMatrixKey


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