A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
chunk.cc
Go to the documentation of this file.
1/*
2 * Copyright (c) 2008 INRIA
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 * Author: Mathieu Lacage <mathieu.lacage@cutebugs.net>
7 */
8
9#include "chunk.h"
10
11namespace ns3
12{
13
15
16TypeId
18{
19 static TypeId tid = TypeId("ns3::Chunk").SetParent<ObjectBase>().SetGroupName("Network");
20 return tid;
21}
22
23// This default implementation is provided for backward compatibility
24// reasons. Subclasses should implement this method themselves.
30
31} // namespace ns3
iterator in a Buffer instance
Definition buffer.h:89
virtual uint32_t Deserialize(Buffer::Iterator start)=0
Deserialize the object from a buffer iterator.
static TypeId GetTypeId()
Get the type ID.
Definition chunk.cc:17
Anchor the ns-3 type and attribute system.
a unique identifier for an interface.
Definition type-id.h:48
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition type-id.cc:1001
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Definition object-base.h:35
Every class exported by the ns3 library is enclosed in the ns3 namespace.