A Discrete-Event Network Simulator
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
10namespace ns3
11{
12
14
15TypeId
17{
18 static TypeId tid = TypeId("ns3::Tag").SetParent<ObjectBase>().SetGroupName("Network");
19 return tid;
20}
21
22} // namespace ns3
Anchor the ns-3 type and attribute system.
static TypeId GetTypeId()
Get the type ID.
Definition tag.cc:16
a unique identifier for an interface.
Definition type-id.h:48
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition type-id.cc:1001
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Definition object-base.h:35
Every class exported by the ns3 library is enclosed in the ns3 namespace.