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
tag.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@sophia.inria.fr>
7
*/
8
#include "
tag.h
"
9
10
namespace
ns3
11
{
12
13
NS_OBJECT_ENSURE_REGISTERED
(Tag);
14
15
TypeId
16
Tag::GetTypeId
()
17
{
18
static
TypeId
tid =
TypeId
(
"ns3::Tag"
).
SetParent
<
ObjectBase
>().SetGroupName(
"Network"
);
19
return
tid;
20
}
21
22
}
// namespace ns3
ns3::ObjectBase
Anchor the ns-3 type and attribute system.
Definition
object-base.h:162
ns3::Tag::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition
tag.cc:16
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
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.
tag.h
src
network
model
tag.cc
Generated on Fri Nov 8 2024 13:59:05 for ns-3 by
1.11.0