A Discrete-Event Network Simulator
API
type-name.cc
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 #include "type-name.h"
21 
28 namespace ns3 {
29 
30 template <> std::string TypeNameGet< int8_t > (void) { return "int8_t" ; }
31 template <> std::string TypeNameGet< int16_t > (void) { return "int16_t" ; }
32 template <> std::string TypeNameGet< int32_t > (void) { return "int32_t" ; }
33 template <> std::string TypeNameGet< int64_t > (void) { return "int64_t" ; }
34 template <> std::string TypeNameGet< uint8_t > (void) { return "uint8_t" ; }
35 template <> std::string TypeNameGet< uint16_t> (void) { return "uint16_t"; }
36 template <> std::string TypeNameGet< uint32_t> (void) { return "uint32_t"; }
37 template <> std::string TypeNameGet< uint64_t> (void) { return "uint64_t"; }
38 template <> std::string TypeNameGet< float > (void) { return "float" ; }
39 template <> std::string TypeNameGet< double > (void) { return "double" ; }
40 
41 } // namespace ns3
std::string TypeNameGet< int32_t >(void)
ns3::TypeNameGet(void) specializaton.
Definition: type-name.cc:32
std::string TypeNameGet< int64_t >(void)
ns3::TypeNameGet(void) specializaton.
Definition: type-name.cc:33
ns3::TypeNameGet() function declarations.
std::string TypeNameGet< uint8_t >(void)
ns3::TypeNameGet(void) specializaton.
Definition: type-name.cc:34
std::string TypeNameGet< uint16_t >(void)
ns3::TypeNameGet(void) specializaton.
Definition: type-name.cc:35
std::string TypeNameGet< double >(void)
ns3::TypeNameGet(void) specializaton.
Definition: type-name.cc:39
std::string TypeNameGet< uint32_t >(void)
ns3::TypeNameGet(void) specializaton.
Definition: type-name.cc:36
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:38
std::string TypeNameGet< int8_t >(void)
ns3::TypeNameGet(void) specializaton.
Definition: type-name.cc:30
std::string TypeNameGet< int16_t >(void)
ns3::TypeNameGet(void) specializaton.
Definition: type-name.cc:31
std::string TypeNameGet< uint64_t >(void)
ns3::TypeNameGet(void) specializaton.
Definition: type-name.cc:37