A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
src
core
model
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 */
ns3::TypeNameGet< int32_t >
std::string TypeNameGet< int32_t >(void)
ns3::TypeNameGet(void) specializaton.
Definition:
type-name.cc:32
ns3::TypeNameGet< int64_t >
std::string TypeNameGet< int64_t >(void)
ns3::TypeNameGet(void) specializaton.
Definition:
type-name.cc:33
ns3::TypeNameGet< uint8_t >
std::string TypeNameGet< uint8_t >(void)
ns3::TypeNameGet(void) specializaton.
Definition:
type-name.cc:34
ns3::TypeNameGet
std::string TypeNameGet(void)
Type name strings for numeric AttributeValue types.
Definition:
type-name.h:42
ns3::TypeNameGet< uint16_t >
std::string TypeNameGet< uint16_t >(void)
ns3::TypeNameGet(void) specializaton.
Definition:
type-name.cc:35
ns3::TypeNameGet< double >
std::string TypeNameGet< double >(void)
ns3::TypeNameGet(void) specializaton.
Definition:
type-name.cc:39
ns3::TypeNameGet< uint32_t >
std::string TypeNameGet< uint32_t >(void)
ns3::TypeNameGet(void) specializaton.
Definition:
type-name.cc:36
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::TypeNameGet< float >
std::string TypeNameGet< float >(void)
ns3::TypeNameGet(void) specializaton.
Definition:
type-name.cc:38
ns3::TypeNameGet< int8_t >
std::string TypeNameGet< int8_t >(void)
ns3::TypeNameGet(void) specializaton.
Definition:
type-name.cc:30
ns3::TypeNameGet< int16_t >
std::string TypeNameGet< int16_t >(void)
ns3::TypeNameGet(void) specializaton.
Definition:
type-name.cc:31
ns3::TypeNameGet< uint64_t >
std::string TypeNameGet< uint64_t >(void)
ns3::TypeNameGet(void) specializaton.
Definition:
type-name.cc:37
Generated on Wed Nov 7 2018 10:01:50 for ns-3 by
1.8.14