A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
lte-radio-bearer-tag.h
1
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License version 2 as
7
* published by the Free Software Foundation;
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
*
18
* Author: Author: Marco Miozzo <marco.miozzo@cttc.es>
19
*/
20
#ifndef LTE_RADIO_BEARER_TAG_H
21
#define LTE_RADIO_BEARER_TAG_H
22
23
#include "ns3/tag.h"
24
25
namespace
ns3 {
26
27
class
Tag;
28
29
34
class
LteRadioBearerTag
:
public
Tag
35
{
36
public
:
37
static
TypeId
GetTypeId (
void
);
38
virtual
TypeId
GetInstanceTypeId
(
void
)
const
;
39
43
LteRadioBearerTag
();
44
48
LteRadioBearerTag
(uint16_t rnti, uint8_t lcId);
49
53
LteRadioBearerTag
(uint16_t rnti, uint8_t lcId, uint8_t layer);
54
60
void
SetRnti
(uint16_t tid);
61
67
void
SetLcid
(uint8_t lcid);
68
74
void
SetLayer
(uint8_t lcid);
75
76
77
virtual
void
Serialize
(
TagBuffer
i)
const
;
78
virtual
void
Deserialize
(
TagBuffer
i);
79
virtual
uint32_t
GetSerializedSize
()
const
;
80
virtual
void
Print
(std::ostream &os)
const
;
81
82
uint16_t GetRnti (
void
)
const
;
83
uint8_t GetLcid (
void
)
const
;
84
uint8_t GetLayer (
void
)
const
;
85
86
private
:
87
uint16_t m_rnti;
88
uint8_t m_lcid;
89
uint8_t m_layer;
90
91
};
92
93
94
95
}
// namespace ns3
96
97
#endif
/* LTE_RADIO_BEARER_TAG_H */
ns3::LteRadioBearerTag::GetSerializedSize
virtual uint32_t GetSerializedSize() const
Definition:
lte-radio-bearer-tag.cc:92
ns3::LteRadioBearerTag::SetRnti
void SetRnti(uint16_t tid)
Definition:
lte-radio-bearer-tag.cc:74
ns3::LteRadioBearerTag::Print
virtual void Print(std::ostream &os) const
Definition:
lte-radio-bearer-tag.cc:132
ns3::LteRadioBearerTag::LteRadioBearerTag
LteRadioBearerTag()
Definition:
lte-radio-bearer-tag.cc:54
ns3::Tag
tag a set of bytes in a packet
Definition:
tag.h:36
ns3::LteRadioBearerTag::Deserialize
virtual void Deserialize(TagBuffer i)
Definition:
lte-radio-bearer-tag.cc:106
ns3::LteRadioBearerTag::SetLcid
void SetLcid(uint8_t lcid)
Definition:
lte-radio-bearer-tag.cc:80
ns3::TagBuffer
read and write tag data
Definition:
tag-buffer.h:51
ns3::LteRadioBearerTag::GetInstanceTypeId
virtual TypeId GetInstanceTypeId(void) const
Definition:
lte-radio-bearer-tag.cc:49
ns3::LteRadioBearerTag
Definition:
lte-radio-bearer-tag.h:34
ns3::LteRadioBearerTag::Serialize
virtual void Serialize(TagBuffer i) const
Definition:
lte-radio-bearer-tag.cc:98
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:44
ns3::LteRadioBearerTag::SetLayer
void SetLayer(uint8_t lcid)
Definition:
lte-radio-bearer-tag.cc:86
src
lte
model
lte-radio-bearer-tag.h
Generated on Sun Mar 16 2014 11:25:06 for ns-3 by
1.8.6