ArtsAsMatrixEntry


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

Quick Index

DESCRIPTION

Class Summary

class ArtsAsMatrixEntry

{

public:
ArtsAsMatrixEntry();
uint8_t Descriptor() const ;
uint8_t Descriptor(uint8_t descriptor) ;
uint16_t Src() const ;
uint16_t Src(uint16_t src);
uint16_t Dst() const ;
uint16_t Dst(uint16_t dst);
uint64_t Pkts() const ;
uint64_t Pkts(uint64_t pkts);
uint64_t Bytes() const ;
uint64_t Bytes(uint64_t bytes);
uint32_t Length(uint8_t version ) const;
istream& read(istream& is, uint8_t version );
int read(int fd, uint8_t version );
ostream& write(ostream& os, uint8_t version ) const;
int write(int fd, uint8_t version ) const;
friend ostream & operator << (ostream& os, const ArtsAsMatrixEntry & artsAsMatrixEntry);
protected:
}; // ArtsAsMatrixEntry

Back to the top of ArtsAsMatrixEntry


DESCRIPTION


---------------------------------------------------------------------------
class ArtsAsMatrixEntry
---------------------------------------------------------------------------
Class representing a single AS matrix entry. This class holds a source AS number, a destination AS number, and the packets and bytes sent from the source AS to the destination AS.
---------------------------------------------------------------------------

Back to the top of ArtsAsMatrixEntry


ArtsAsMatrixEntry();


-------------------------------------------------------------------------
ArtsAsMatrixEntry()
.........................................................................
constructor
-------------------------------------------------------------------------

  ArtsAsMatrixEntry();

Back to the top of ArtsAsMatrixEntry


uint8_t Descriptor() const ;


-------------------------------------------------------------------------
inline uint8_t Descriptor() const
.........................................................................
Returns the descriptor field of the object. The descriptor field is a bitfield containing indicators of the length of the Src(), Dst(), Pkts() and Bytes() fields when stored on disk or sent via a socket.
-------------------------------------------------------------------------

  inline uint8_t Descriptor() const
                                      
;

Function is currently defined inline.


Back to the top of ArtsAsMatrixEntry


uint8_t Descriptor(uint8_t descriptor) ;


-------------------------------------------------------------------------
inline uint8_t Descriptor(uint8_t descriptor)
.........................................................................
Sets and returns the descriptor field of the object.
-------------------------------------------------------------------------

  inline uint8_t Descriptor(uint8_t descriptor)
                                                                          
;

Function is currently defined inline.


Back to the top of ArtsAsMatrixEntry


uint16_t Src() const ;


-------------------------------------------------------------------------
inline uint16_t Src() const
.........................................................................
Returs the source AS number.
-------------------------------------------------------------------------

  inline uint16_t Src() const
                               
;

Function is currently defined inline.


Back to the top of ArtsAsMatrixEntry


uint16_t Src(uint16_t src);


-------------------------------------------------------------------------
uint16_t Src(uint16_t src)
.........................................................................
Sets and returns the source AS number.
-------------------------------------------------------------------------

  uint16_t Src(uint16_t src);

Back to the top of ArtsAsMatrixEntry


uint16_t Dst() const ;


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

  inline uint16_t Dst() const
                               
;

Function is currently defined inline.


Back to the top of ArtsAsMatrixEntry


uint16_t Dst(uint16_t dst);


-------------------------------------------------------------------------
uint16_t Dst(uint16_t dst)
.........................................................................
Sets and returns the source AS number.
-------------------------------------------------------------------------

  uint16_t Dst(uint16_t dst);

Back to the top of ArtsAsMatrixEntry


uint64_t Pkts() const ;


-------------------------------------------------------------------------
inline uint64_t Pkts() const
.........................................................................
Returns the number of packets sent from the source AS to the destination AS.
-------------------------------------------------------------------------

  inline uint64_t Pkts() const
                                
;

Function is currently defined inline.


Back to the top of ArtsAsMatrixEntry


uint64_t Pkts(uint64_t pkts);


-------------------------------------------------------------------------
uint64_t Pkts(uint64_t pkts)
.........................................................................
Sets and returns the number of packets sent from the source AS to the destination AS.
-------------------------------------------------------------------------

  uint64_t Pkts(uint64_t pkts);

Back to the top of ArtsAsMatrixEntry


uint64_t Bytes() const ;


-------------------------------------------------------------------------
inline uint64_t Bytes() const
.........................................................................
Returns the number of bytes sent from the source AS to the destination AS.
-------------------------------------------------------------------------

  inline uint64_t Bytes() const
                                 
;

Function is currently defined inline.


Back to the top of ArtsAsMatrixEntry


uint64_t Bytes(uint64_t bytes);


-------------------------------------------------------------------------
uint64_t Bytes(uint64_t bytes)
.........................................................................
Sets and returns the number of bytes sent from the source AS to the destination AS.
-------------------------------------------------------------------------

  uint64_t Bytes(uint64_t bytes);

Back to the top of ArtsAsMatrixEntry


uint32_t Length(uint8_t version ) const;


-------------------------------------------------------------------------
uint32_t Length(uint8_t version = 0) const
.........................................................................
Returns the bytes of space required to store the ArtsAsMatrixEntry on disk.
-------------------------------------------------------------------------

  uint32_t Length(uint8_t version = 0) const;

Back to the top of ArtsAsMatrixEntry


istream& read(istream& is, uint8_t version );


-------------------------------------------------------------------------
istream& read(istream& is, uint8_t version = 0)
.........................................................................
Reads an ArtsAsMatrixEntry from an istream. Returns the istream.
-------------------------------------------------------------------------

  istream& read(istream& is, uint8_t version = 0);

Back to the top of ArtsAsMatrixEntry


int read(int fd, uint8_t version );


-------------------------------------------------------------------------
int read(int fd, uint8_t version = 0)
.........................................................................
Reads an ArtsAsMatrixEntry from a file descriptor. Returns the number of bytes read on success, -1 on failure.
-------------------------------------------------------------------------

  int read(int fd, uint8_t version = 0);

Back to the top of ArtsAsMatrixEntry


ostream& write(ostream& os, uint8_t version ) const;


-------------------------------------------------------------------------
ostream& write(ostream& os, uint8_t version = 0) const
.........................................................................
Writes an ArtsAsMatrixEntry to an ostream. Returns the ostream.
-------------------------------------------------------------------------

  ostream& write(ostream& os, uint8_t version = 0) const;

Back to the top of ArtsAsMatrixEntry


int write(int fd, uint8_t version ) const;


-------------------------------------------------------------------------
int write(int fd, uint8_t version = 0) const
.........................................................................
Writes an ArtsAsMatrixEntry to a file descriptor. Returns the number of bytes written on success, -1 on failure.
-------------------------------------------------------------------------

  int write(int fd, uint8_t version = 0) const;

Back to the top of ArtsAsMatrixEntry


friend ostream & operator << (ostream& os, const ArtsAsMatrixEntry & artsAsMatrixEntry);


-------------------------------------------------------------------------
ostream & operator << (ostream& os, const ArtsAsMatrixEntry & artsAsMatrixEntry)
.........................................................................
Overloaded '<<' operator to dump the contents of an ArtsAsMatrixEntry to an ostream in a human-readable form. Returns the ostream.
-------------------------------------------------------------------------

  friend ostream & operator << (ostream& os,
                                const ArtsAsMatrixEntry & artsAsMatrixEntry);

Back to the top of ArtsAsMatrixEntry


All Members

public:
uint8_t Descriptor() const ;
uint8_t Descriptor(uint8_t descriptor) ;
uint16_t Src() const ;
uint16_t Src(uint16_t src);
uint16_t Dst() const ;
uint16_t Dst(uint16_t dst);
uint64_t Pkts() const ;
uint64_t Pkts(uint64_t pkts);
uint64_t Bytes() const ;
uint64_t Bytes(uint64_t bytes);
uint32_t Length(uint8_t version ) const;
istream& read(istream& is, uint8_t version );
int read(int fd, uint8_t version );
ostream& write(ostream& os, uint8_t version ) const;
int write(int fd, uint8_t version ) const;
friend ostream & operator << (ostream& os, const ArtsAsMatrixEntry & artsAsMatrixEntry);
protected:

Back to the top of ArtsAsMatrixEntry


Ancestors

Class does not inherit from any other class.

Back to the top of ArtsAsMatrixEntry


Descendants

Class is not inherited by any others.

Back to the top of ArtsAsMatrixEntry


Generated from source by the Cocoon utilities on Sat Oct 17 14:39:51 1998 .

Report problems to jkotula@unimax.com