A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
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
11
namespace
ns3
12
{
13
14
NS_OBJECT_ENSURE_REGISTERED
(Chunk);
15
16
TypeId
17
Chunk::GetTypeId
()
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.
25
uint32_t
26
Chunk::Deserialize
(
Buffer::Iterator
start,
Buffer::Iterator
end)
27
{
28
return
Deserialize
(start);
29
}
30
31
}
// namespace ns3
chunk.h
ns3::Buffer::Iterator
iterator in a Buffer instance
Definition
buffer.h:89
ns3::Chunk::Deserialize
virtual uint32_t Deserialize(Buffer::Iterator start)=0
Deserialize the object from a buffer iterator.
ns3::Chunk::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition
chunk.cc:17
ns3::ObjectBase
Anchor the ns-3 type and attribute system.
Definition
object-base.h:162
ns3::TypeId
a unique identifier for an interface.
Definition
type-id.h:48
ns3::TypeId::SetParent
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition
type-id.cc:1001
uint32_t
NS_OBJECT_ENSURE_REGISTERED
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Definition
object-base.h:35
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
network
model
chunk.cc
Generated on Sat Nov 2 2024 19:37:29 for ns-3 by
1.11.0