A Discrete-Event Network Simulator
API
type-name.h
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2007 Georgia Tech Research Corporation
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  */
19 
20 #ifndef TYPE_NAME_H
21 #define TYPE_NAME_H
22 
23 #include <stdint.h>
24 #include <string>
25 
32 namespace ns3 {
33 
41 template <typename T>
42 std::string TypeNameGet (void)
43 {
44  return "unknown";
45 }
46 
53 template <> std::string TypeNameGet< int8_t > (void);
54 template <> std::string TypeNameGet< int16_t > (void);
55 template <> std::string TypeNameGet< int32_t > (void);
56 template <> std::string TypeNameGet< int64_t > (void);
57 template <> std::string TypeNameGet< uint8_t > (void);
58 template <> std::string TypeNameGet< uint16_t> (void);
59 template <> std::string TypeNameGet< uint32_t> (void);
60 template <> std::string TypeNameGet< uint64_t> (void);
61 template <> std::string TypeNameGet< float > (void);
62 template <> std::string TypeNameGet< double > (void);
65 } // namespace ns3
66 
67 #endif /* TYPE_NAME_H */
std::string TypeNameGet< int32_t >(void)
ns3::TypeNameGet(void) specializaton.
Definition: type-name.cc:33
std::string TypeNameGet< int64_t >(void)
ns3::TypeNameGet(void) specializaton.
Definition: type-name.cc:34
std::string TypeNameGet< uint8_t >(void)
ns3::TypeNameGet(void) specializaton.
Definition: type-name.cc:35
std::string TypeNameGet(void)
Type name strings for numeric AttributeValue types.
Definition: type-name.h:42
std::string TypeNameGet< uint16_t >(void)
ns3::TypeNameGet(void) specializaton.
Definition: type-name.cc:36
std::string TypeNameGet< double >(void)
ns3::TypeNameGet(void) specializaton.
Definition: type-name.cc:40
std::string TypeNameGet< uint32_t >(void)
ns3::TypeNameGet(void) specializaton.
Definition: type-name.cc:37
Every class exported by the ns3 library is enclosed in the ns3 namespace.
std::string TypeNameGet< float >(void)
ns3::TypeNameGet(void) specializaton.
Definition: type-name.cc:39
std::string TypeNameGet< int8_t >(void)
ns3::TypeNameGet(void) specializaton.
Definition: type-name.cc:31
std::string TypeNameGet< int16_t >(void)
ns3::TypeNameGet(void) specializaton.
Definition: type-name.cc:32
std::string TypeNameGet< uint64_t >(void)
ns3::TypeNameGet(void) specializaton.
Definition: type-name.cc:38