A Discrete-Event Network Simulator
API
queue-size.h File Reference
#include "ns3/abort.h"
#include "ns3/attribute-helper.h"
#include "ns3/attribute.h"
#include <iostream>
#include <string>
+ Include dependency graph for queue-size.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ns3::QueueSize
 Class for representing queue sizes. More...
 

Namespaces

 ns3
 Every class exported by the ns3 library is enclosed in the ns3 namespace.
 

Enumerations

enum  ns3::QueueSizeUnit { ns3::PACKETS , ns3::BYTES }
 Enumeration of the operating modes of queues. More...
 

Functions

 ns3::ATTRIBUTE_HELPER_HEADER (QueueSize)
 
template<typename Item >
QueueSize ns3::operator+ (const Ptr< Item > &lhs, const QueueSize &rhs)
 Increase the queue size by a packet size, if the queue size is in bytes, or by one, otherwise. More...
 
template<typename Item >
QueueSize ns3::operator+ (const QueueSize &lhs, const Ptr< Item > &rhs)
 Increase the queue size by a packet size, if the queue size is in bytes, or by one, otherwise. More...
 
template<typename Item >
QueueSize ns3::operator- (const Ptr< Item > &lhs, const QueueSize &rhs)
 Decrease the queue size by a packet size, if the queue size is in bytes, or by one, otherwise. More...
 
template<typename Item >
QueueSize ns3::operator- (const QueueSize &lhs, const Ptr< Item > &rhs)
 Decrease the queue size by a packet size, if the queue size is in bytes, or by one, otherwise. More...
 
std::ostream & ns3::operator<< (std::ostream &os, const QueueSize &size)
 Stream insertion operator. More...
 
std::istream & ns3::operator>> (std::istream &is, QueueSize &size)
 Stream extraction operator. More...