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


CflowdInterfaceMatrixTrafficCounter Documentation

CflowdInterfaceMatrixTrafficCounter

All class functions are defined inline.


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

Quick Index

DESCRIPTION

Class Summary

class CflowdInterfaceMatrixTrafficCounter

{

public:
CflowdInterfaceMatrixTrafficCounter() ;
uint64_t Pkts() const ;
uint64_t Pkts(uint64_t pkts) ;
uint64_t AddPkts(uint64_t pkts) ;
uint64_t Bytes() const ;
uint64_t Bytes(uint64_t bytes) ;
uint64_t AddBytes(uint64_t bytes) ;
istream & read(istream & is) ;
int read(int fd) ;
ostream & write(ostream & os) const ;
int write(int fd) const ;
protected:
}; // CflowdInterfaceMatrixTrafficCounter

Back to the top of CflowdInterfaceMatrixTrafficCounter


DESCRIPTION


---------------------------------------------------------------------------
class CflowdInterfaceMatrixTrafficCounter
---------------------------------------------------------------------------
This class is used to hold traffic (packet and byte) counters for an interface matrix entry. Note that I've inlined everything; this class' members get called frequently and we don't ever want function call overhead where we can avoid it.
---------------------------------------------------------------------------

Back to the top of CflowdInterfaceMatrixTrafficCounter


CflowdInterfaceMatrixTrafficCounter() ;


-------------------------------------------------------------------------
inline CflowdInterfaceMatrixTrafficCounter()
.........................................................................
constructor
-------------------------------------------------------------------------

  inline CflowdInterfaceMatrixTrafficCounter()
                                                  
;

Function is currently defined inline.


Back to the top of CflowdInterfaceMatrixTrafficCounter


uint64_t Pkts() const ;


-------------------------------------------------------------------------
inline uint64_t Pkts() const
.........................................................................
Returns the packet counter.
-------------------------------------------------------------------------

  inline uint64_t Pkts() const
                                
;

Function is currently defined inline.


Back to the top of CflowdInterfaceMatrixTrafficCounter


uint64_t Pkts(uint64_t pkts) ;


-------------------------------------------------------------------------
inline uint64_t Pkts(uint64_t pkts)
.........................................................................
Sets and returns the packet counter.
-------------------------------------------------------------------------

  inline uint64_t Pkts(uint64_t pkts)
                                                        
;

Function is currently defined inline.


Back to the top of CflowdInterfaceMatrixTrafficCounter


uint64_t AddPkts(uint64_t pkts) ;


-------------------------------------------------------------------------
inline uint64_t AddPkts(uint64_t pkts)
.........................................................................
Adds pkts to the packet counter. Returns the new value of the packet counter.
-------------------------------------------------------------------------

  inline uint64_t AddPkts(uint64_t pkts)
                                                         
;

Function is currently defined inline.


Back to the top of CflowdInterfaceMatrixTrafficCounter


uint64_t Bytes() const ;


-------------------------------------------------------------------------
inline uint64_t Bytes() const
.........................................................................
Returns the byte counter.
-------------------------------------------------------------------------

  inline uint64_t Bytes() const
                                 
;

Function is currently defined inline.


Back to the top of CflowdInterfaceMatrixTrafficCounter


uint64_t Bytes(uint64_t bytes) ;


-------------------------------------------------------------------------
inline uint64_t Bytes(uint64_t bytes)
.........................................................................
Sets and returns the byte counter.
-------------------------------------------------------------------------

  inline uint64_t Bytes(uint64_t bytes)
                                                           
;

Function is currently defined inline.


Back to the top of CflowdInterfaceMatrixTrafficCounter


uint64_t AddBytes(uint64_t bytes) ;


-------------------------------------------------------------------------
inline uint64_t Bytes(uint64_t bytes)
.........................................................................
Adds bytes to the byte counter. Returns the new value of the byte counter.
-------------------------------------------------------------------------

  inline uint64_t AddBytes(uint64_t bytes)
                                                            
;

Function is currently defined inline.


Back to the top of CflowdInterfaceMatrixTrafficCounter


istream & read(istream & is) ;


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

  inline istream & read(istream & is)
                                                                                                                                                                       
;

Function is currently defined inline.


Back to the top of CflowdInterfaceMatrixTrafficCounter


int read(int fd) ;


-------------------------------------------------------------------------
inline int read(int fd)
.........................................................................
Reads the counter 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 CflowdInterfaceMatrixTrafficCounter


ostream & write(ostream & os) const ;


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

  inline ostream & write(ostream & os) const
                                                                                                                                                                         
;

Function is currently defined inline.


Back to the top of CflowdInterfaceMatrixTrafficCounter


int write(int fd) const ;


-------------------------------------------------------------------------
inline int write(int fd) const
.........................................................................
Writes the counter 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 CflowdInterfaceMatrixTrafficCounter


All Members

public:
uint64_t Pkts() const ;
uint64_t Pkts(uint64_t pkts) ;
uint64_t AddPkts(uint64_t pkts) ;
uint64_t Bytes() const ;
uint64_t Bytes(uint64_t bytes) ;
uint64_t AddBytes(uint64_t bytes) ;
istream & read(istream & is) ;
int read(int fd) ;
ostream & write(ostream & os) const ;
int write(int fd) const ;
protected:

Back to the top of CflowdInterfaceMatrixTrafficCounter


Ancestors

Class does not inherit from any other class.

Back to the top of CflowdInterfaceMatrixTrafficCounter


Descendants

Class is not inherited by any others.

Back to the top of CflowdInterfaceMatrixTrafficCounter


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.