Eduardo Almeida
95e95f8904
Fix clang-tidy warnings in brite, click, mpi, openflow, p2p, visualizer
2022-10-14 16:58:17 +00:00
Eduardo Almeida
dfc6fb9d2d
Remove emacs comment from C++ files
2022-10-14 14:13:12 +00:00
Eduardo Almeida
e25ff966fe
Apply clang-format to codebase
2022-10-07 20:08:35 +00:00
Eduardo Almeida
4af0fe4b85
Fix clang-tidy modernize-use-nullptr warnings
2022-10-07 11:48:10 +00:00
Eduardo Almeida
be07b6487a
Fix clang-tidy modernize-use-override warnings
2022-10-07 11:48:10 +00:00
Eduardo Almeida
6bb6383562
Fix clang-tidy modernize-redundant-void-arg warnings
2022-10-07 11:48:10 +00:00
Peter D. Barnes, Jr
e461e54d5a
Update Ptr validity checks to new Ptr<>::operator bool
2022-08-18 08:59:30 -07:00
Stefano Avallone
693517ce0f
network: Queue container can hold elements of type different than queue items
...
It is required that the container defines a public method that transforms
an iterator pointing to a container element into the corresponding queue item.
2022-06-08 15:31:44 +02:00
Stefano Avallone
7c73228e78
network: Remove begin() and end() from Queue class
...
begin() and end() are not necessarily meaningful for all the containers.
A GetContainer() method returning a const reference to the container is
added, so that begin() and end() can be called through it.
2022-06-08 15:31:44 +02:00
Stefano Avallone
e5805a53fb
network: Queue uses a generic type of container to store items internally
2022-06-08 15:31:44 +02:00
Stefano Avallone
70ea7891fc
core: Get the full type name for template classes
...
Also add a macro for class templates with two template parameters.
2022-06-08 15:31:44 +02:00
Eduardo Almeida
a4d174f8bf
core ( fixes #565 ): Change TypeId constructor to accept std::string
2022-02-25 12:08:10 +00:00
Gabriel Ferreira
44d311cd3b
network: Add function to check if a queue would overflow
2022-01-15 01:09:28 +00:00
Peter Barnes
0e685cbdbb
Use [[maybe_unused]] attribute directly, instead of NS_UNUSED
2021-12-21 10:32:43 +00:00
Tom Henderson
f34d4c5025
network: Add Queue::DoDispose method
2021-05-22 13:41:33 -07:00
Stefano Avallone
999b2ac02f
network: Queue::DoEnqueue can return an iterator pointing to the inserted item
2021-01-20 12:27:16 +01:00
Stefano Avallone
dc074293d5
network: Rename Queue methods to allow range based for loops
2019-05-11 18:47:14 +02:00
Stefano Avallone
b3e470c64f
traffic-control: Make NetDeviceQueueInterface independent of Queue
2018-12-03 11:04:49 +01:00
Tom Henderson
e48d750b34
network: Clarify some Queue documentation
2018-10-02 16:39:28 -07:00
Stefano Avallone
23c7939435
network: Remove deprecated Queue attributes
2018-05-24 23:35:46 +02:00
Stefano Avallone
7d776669cd
network: Add a MaxSize attribute to Queue
2018-03-03 10:54:15 +01:00
Stefano Avallone
59cd4d5f55
traffic-control: ( fixes #2751 ) Ensure queue discs keep correct statistics
2017-09-14 18:12:19 +02:00
Stefano Avallone
543da6092a
various: ( fixes #2668 ) Make template classes use NS_LOG_* macros
2017-06-06 11:18:07 +02:00
Tommaso Pecorella
5e19bd4b23
network: doxygen updates (partial)
2017-05-22 01:22:58 +02:00
Stefano Avallone
1d0a27a285
network: The Queue class holds a list of items
2017-03-08 18:01:59 +01:00
Stefano Avallone
6fef34be47
network: Convert Queue into a template class
2017-03-08 18:01:29 +01:00
Stefano Avallone
8754a59cb6
network: Add a Remove method to the Queue base class
2016-05-19 00:14:29 +02:00
Stefano Avallone
500ef9f4a6
traffic-control: ( fixes #2389 ) Internal queues need to notify their queue disc of packet drops
2016-05-11 12:10:02 +02:00
Pasquale Imputato
c6e5ecc191
network: The Queue base class holds mode, maxPackets and maxBytes
...
...so that all the subclasses have such attributes. This
allows queue discs to have attributes specifying the mode and
size of their queue(s) and to create queues using their
own attributes.
This commit is heavily inspired by Natale's queue rework patch:
https://codereview.appspot.com/270540044/
2016-03-08 10:45:36 -08:00
Stefano Avallone
df2fa95970
network: Make Queue store QueueItem objects
...
A QueueItem base class is introduced to represent the items stored
in a Queue. The base class only contains a Ptr<Packet>. Derived classes
can store additional information. DropTailQueue, RedQueue and CodelQueue,
along with their examples and testsuits, have been adapted. Objects using
such queues have been adapted too.
2016-03-08 10:44:03 -08:00
Natale Patriciello
b27422fb2f
Bug 2070 - Wrong report of Packets and Bytes stored in CoDeL
2015-03-01 12:08:36 +01:00
Tommaso Pecorella
19db0e31cb
[Doxygen] network module
2014-03-13 09:29:47 +01:00
Brian Swenson
4c879da5c3
Network Doxygen warnings start
2013-11-15 16:20:58 -05:00
Vedran Miletić
b5cac1da24
Use longer names for QueueMode and ErrorUnit enums and move them to Queue and RateErrorModel classes respectively.
2012-05-01 20:48:34 +02:00
Vedran Miletić
0538e655aa
standardize ns-3 namespace declaration format
2011-08-02 17:43:32 -04:00
Josh Pelkey
30fd9b6bee
network coding style changes
2011-05-13 14:57:43 -04:00
Mitch Watrous
c088777e03
Fix doxygen groups for some new modules
2011-05-10 17:56:47 -07:00
Tom Henderson
ca7b93cc3d
Merge node and common modules into new network module
2011-02-21 09:11:37 -08:00