A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
type-name.cc
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 
3 #include "type-name.h"
4 
5 namespace ns3 {
6 
7 #define DEF_TYPE(x) \
8  template <> \
9  std::string TypeNameGet<x> (void) \
10  { \
11  return # x; \
12  }
13 
14 DEF_TYPE (uint8_t);
15 DEF_TYPE (uint16_t);
16 DEF_TYPE (uint32_t);
17 DEF_TYPE (uint64_t);
18 DEF_TYPE (int8_t);
19 DEF_TYPE (int16_t);
20 DEF_TYPE (int32_t);
21 DEF_TYPE (int64_t);
22 DEF_TYPE (float);
23 DEF_TYPE (double);
24 
25 
26 } // namespace ns3
DEF_TYPE(uint8_t)