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
lte-rlc-sdu-status-tag.cc
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Author: Manuel Requena <manuel.requena@cttc.es>
7
*/
8
9
#include "
lte-rlc-sdu-status-tag.h
"
10
11
namespace
ns3
12
{
13
14
NS_OBJECT_ENSURE_REGISTERED
(LteRlcSduStatusTag);
15
16
LteRlcSduStatusTag::LteRlcSduStatusTag
()
17
{
18
}
19
20
void
21
LteRlcSduStatusTag::SetStatus
(uint8_t status)
22
{
23
m_sduStatus
= status;
24
}
25
26
uint8_t
27
LteRlcSduStatusTag::GetStatus
()
const
28
{
29
return
m_sduStatus
;
30
}
31
32
TypeId
33
LteRlcSduStatusTag::GetTypeId
()
34
{
35
static
TypeId
tid =
TypeId
(
"ns3::LteRlcSduStatusTag"
)
36
.
SetParent
<
Tag
>()
37
.SetGroupName(
"Lte"
)
38
.AddConstructor<
LteRlcSduStatusTag
>();
39
return
tid;
40
}
41
42
TypeId
43
LteRlcSduStatusTag::GetInstanceTypeId
()
const
44
{
45
return
GetTypeId
();
46
}
47
48
uint32_t
49
LteRlcSduStatusTag::GetSerializedSize
()
const
50
{
51
return
1;
52
}
53
54
void
55
LteRlcSduStatusTag::Serialize
(
TagBuffer
i)
const
56
{
57
i.
WriteU8
(
m_sduStatus
);
58
}
59
60
void
61
LteRlcSduStatusTag::Deserialize
(
TagBuffer
i)
62
{
63
m_sduStatus
= i.
ReadU8
();
64
}
65
66
void
67
LteRlcSduStatusTag::Print
(std::ostream& os)
const
68
{
69
os <<
"SDU Status="
<< (
uint32_t
)
m_sduStatus
;
70
}
71
72
};
// namespace ns3
ns3::LteRlcSduStatusTag
This class implements a tag that carries the status of a RLC SDU for the fragmentation process Status...
Definition
lte-rlc-sdu-status-tag.h:23
ns3::LteRlcSduStatusTag::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition
lte-rlc-sdu-status-tag.cc:33
ns3::LteRlcSduStatusTag::LteRlcSduStatusTag
LteRlcSduStatusTag()
Definition
lte-rlc-sdu-status-tag.cc:16
ns3::LteRlcSduStatusTag::Serialize
void Serialize(TagBuffer i) const override
Definition
lte-rlc-sdu-status-tag.cc:55
ns3::LteRlcSduStatusTag::GetStatus
uint8_t GetStatus() const
Get status function.
Definition
lte-rlc-sdu-status-tag.cc:27
ns3::LteRlcSduStatusTag::m_sduStatus
uint8_t m_sduStatus
SDU status.
Definition
lte-rlc-sdu-status-tag.h:62
ns3::LteRlcSduStatusTag::GetSerializedSize
uint32_t GetSerializedSize() const override
Definition
lte-rlc-sdu-status-tag.cc:49
ns3::LteRlcSduStatusTag::GetInstanceTypeId
TypeId GetInstanceTypeId() const override
Get the most derived TypeId for this Object.
Definition
lte-rlc-sdu-status-tag.cc:43
ns3::LteRlcSduStatusTag::Deserialize
void Deserialize(TagBuffer i) override
Definition
lte-rlc-sdu-status-tag.cc:61
ns3::LteRlcSduStatusTag::Print
void Print(std::ostream &os) const override
Definition
lte-rlc-sdu-status-tag.cc:67
ns3::LteRlcSduStatusTag::SetStatus
void SetStatus(uint8_t status)
Set status function.
Definition
lte-rlc-sdu-status-tag.cc:21
ns3::TagBuffer
read and write tag data
Definition
tag-buffer.h:41
ns3::TagBuffer::WriteU8
TAG_BUFFER_INLINE void WriteU8(uint8_t v)
Definition
tag-buffer.h:161
ns3::TagBuffer::ReadU8
TAG_BUFFER_INLINE uint8_t ReadU8()
Definition
tag-buffer.h:185
ns3::Tag
tag a set of bytes in a packet
Definition
tag.h:28
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
lte-rlc-sdu-status-tag.h
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
lte
model
lte-rlc-sdu-status-tag.cc
Generated on Fri Nov 8 2024 13:59:03 for ns-3 by
1.11.0