5G-LENA nr-v4.0
The 5G/NR module for the ns-3 simulator
Loading...
Searching...
No Matches
nr-pdcp-tag.h
1// Copyright (c) 2011 CTTC
2//
3// SPDX-License-Identifier: GPL-2.0-only
4//
5// Author: Jaume Nin <jaume.nin@cttc.es>
6// Nicola Baldo <nbaldo@cttc.es>
7
8#ifndef NR_PDCP_TAG_H
9#define NR_PDCP_TAG_H
10
11#include "ns3/nstime.h"
12#include "ns3/packet.h"
13
14namespace ns3
15{
16
17class Tag;
18
23class NrPdcpTag : public Tag
24{
25 public:
30 static TypeId GetTypeId();
31 TypeId GetInstanceTypeId() const override;
32
36 NrPdcpTag();
41 NrPdcpTag(Time senderTimestamp);
42
43 void Serialize(TagBuffer i) const override;
44 void Deserialize(TagBuffer i) override;
45 uint32_t GetSerializedSize() const override;
46 void Print(std::ostream& os) const override;
47
52 Time GetSenderTimestamp() const;
53
59 void SetSenderTimestamp(Time senderTimestamp);
60
61 private:
62 Time m_senderTimestamp;
63};
64
65} // namespace ns3
66
67#endif /* NR_PDCP_TAG_H */
static TypeId GetTypeId()
Get the type ID.
Time GetSenderTimestamp() const
void SetSenderTimestamp(Time senderTimestamp)