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
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 2 as
6
* published by the Free Software Foundation;
7
*
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program; if not, write to the Free Software
15
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
*
17
* Author: Manuel Requena <manuel.requena@cttc.es>
18
*/
19
20
#include "
lte-rlc-sdu-status-tag.h
"
21
22
namespace
ns3
23
{
24
25
NS_OBJECT_ENSURE_REGISTERED
(LteRlcSduStatusTag);
26
27
LteRlcSduStatusTag::LteRlcSduStatusTag
()
28
{
29
}
30
31
void
32
LteRlcSduStatusTag::SetStatus
(uint8_t status)
33
{
34
m_sduStatus
= status;
35
}
36
37
uint8_t
38
LteRlcSduStatusTag::GetStatus
()
const
39
{
40
return
m_sduStatus
;
41
}
42
43
TypeId
44
LteRlcSduStatusTag::GetTypeId
()
45
{
46
static
TypeId
tid =
TypeId
(
"ns3::LteRlcSduStatusTag"
)
47
.
SetParent
<
Tag
>()
48
.SetGroupName(
"Lte"
)
49
.AddConstructor<
LteRlcSduStatusTag
>();
50
return
tid;
51
}
52
53
TypeId
54
LteRlcSduStatusTag::GetInstanceTypeId
()
const
55
{
56
return
GetTypeId
();
57
}
58
59
uint32_t
60
LteRlcSduStatusTag::GetSerializedSize
()
const
61
{
62
return
1;
63
}
64
65
void
66
LteRlcSduStatusTag::Serialize
(
TagBuffer
i)
const
67
{
68
i.
WriteU8
(
m_sduStatus
);
69
}
70
71
void
72
LteRlcSduStatusTag::Deserialize
(
TagBuffer
i)
73
{
74
m_sduStatus
= i.
ReadU8
();
75
}
76
77
void
78
LteRlcSduStatusTag::Print
(std::ostream& os)
const
79
{
80
os <<
"SDU Status="
<< (
uint32_t
)
m_sduStatus
;
81
}
82
83
};
// 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:34
ns3::LteRlcSduStatusTag::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition:
lte-rlc-sdu-status-tag.cc:44
ns3::LteRlcSduStatusTag::LteRlcSduStatusTag
LteRlcSduStatusTag()
Definition:
lte-rlc-sdu-status-tag.cc:27
ns3::LteRlcSduStatusTag::Serialize
void Serialize(TagBuffer i) const override
Definition:
lte-rlc-sdu-status-tag.cc:66
ns3::LteRlcSduStatusTag::GetStatus
uint8_t GetStatus() const
Get status function.
Definition:
lte-rlc-sdu-status-tag.cc:38
ns3::LteRlcSduStatusTag::m_sduStatus
uint8_t m_sduStatus
SDU status.
Definition:
lte-rlc-sdu-status-tag.h:73
ns3::LteRlcSduStatusTag::GetSerializedSize
uint32_t GetSerializedSize() const override
Definition:
lte-rlc-sdu-status-tag.cc:60
ns3::LteRlcSduStatusTag::GetInstanceTypeId
TypeId GetInstanceTypeId() const override
Get the most derived TypeId for this Object.
Definition:
lte-rlc-sdu-status-tag.cc:54
ns3::LteRlcSduStatusTag::Deserialize
void Deserialize(TagBuffer i) override
Definition:
lte-rlc-sdu-status-tag.cc:72
ns3::LteRlcSduStatusTag::Print
void Print(std::ostream &os) const override
Definition:
lte-rlc-sdu-status-tag.cc:78
ns3::LteRlcSduStatusTag::SetStatus
void SetStatus(uint8_t status)
Set status function.
Definition:
lte-rlc-sdu-status-tag.cc:32
ns3::TagBuffer
read and write tag data
Definition:
tag-buffer.h:52
ns3::TagBuffer::WriteU8
TAG_BUFFER_INLINE void WriteU8(uint8_t v)
Definition:
tag-buffer.h:172
ns3::TagBuffer::ReadU8
TAG_BUFFER_INLINE uint8_t ReadU8()
Definition:
tag-buffer.h:196
ns3::Tag
tag a set of bytes in a packet
Definition:
tag.h:39
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:59
ns3::TypeId::SetParent
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition:
type-id.cc:936
uint32_t
NS_OBJECT_ENSURE_REGISTERED
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Definition:
object-base.h:46
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 Sun Jul 2 2023 18:21:49 for ns-3 by
1.9.6