A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
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
// *NS_CHECK_STYLE_OFF*
54
template
<>
inline
std::string
TypeNameGet< int8_t >
(
void
) {
return
"int8_t"
; };
55
template
<>
inline
std::string
TypeNameGet< int16_t >
(
void
) {
return
"int16_t"
; };
56
template
<>
inline
std::string
TypeNameGet< int32_t >
(
void
) {
return
"int32_t"
; };
57
template
<>
inline
std::string
TypeNameGet< int64_t >
(
void
) {
return
"int64_t"
; };
58
template
<>
inline
std::string
TypeNameGet< uint8_t >
(
void
) {
return
"uint8_t"
; };
59
template
<>
inline
std::string
TypeNameGet< uint16_t>
(
void
) {
return
"uint16_t"
; };
60
template
<>
inline
std::string
TypeNameGet< uint32_t>
(
void
) {
return
"uint32_t"
; };
61
template
<>
inline
std::string
TypeNameGet< uint64_t>
(
void
) {
return
"uint64_t"
; };
62
template
<>
inline
std::string
TypeNameGet< float >
(
void
) {
return
"float"
; };
63
template
<>
inline
std::string
TypeNameGet< double >
(
void
) {
return
"double"
; };
64
// *NS_CHECK_STYLE_ON*
67
}
// namespace ns3
68
69
#endif
/* TYPE_NAME_H */
ns3::TypeNameGet< uint64_t >
std::string TypeNameGet< uint64_t >(void)
ns3::TypeNameGet(void) specializaton.
Definition:
type-name.h:61
ns3::TypeNameGet< float >
std::string TypeNameGet< float >(void)
ns3::TypeNameGet(void) specializaton.
Definition:
type-name.h:62
ns3::TypeNameGet< uint32_t >
std::string TypeNameGet< uint32_t >(void)
ns3::TypeNameGet(void) specializaton.
Definition:
type-name.h:60
ns3::TypeNameGet< uint8_t >
std::string TypeNameGet< uint8_t >(void)
ns3::TypeNameGet(void) specializaton.
Definition:
type-name.h:58
ns3::TypeNameGet< int16_t >
std::string TypeNameGet< int16_t >(void)
ns3::TypeNameGet(void) specializaton.
Definition:
type-name.h:55
ns3::TypeNameGet
std::string TypeNameGet(void)
Type name strings for numeric AttributeValue types.
Definition:
type-name.h:42
ns3::TypeNameGet< int32_t >
std::string TypeNameGet< int32_t >(void)
ns3::TypeNameGet(void) specializaton.
Definition:
type-name.h:56
ns3::TypeNameGet< int64_t >
std::string TypeNameGet< int64_t >(void)
ns3::TypeNameGet(void) specializaton.
Definition:
type-name.h:57
ns3::TypeNameGet< double >
std::string TypeNameGet< double >(void)
ns3::TypeNameGet(void) specializaton.
Definition:
type-name.h:63
ns3::TypeNameGet< uint16_t >
std::string TypeNameGet< uint16_t >(void)
ns3::TypeNameGet(void) specializaton.
Definition:
type-name.h:59
ns3::TypeNameGet< int8_t >
std::string TypeNameGet< int8_t >(void)
ns3::TypeNameGet(void) specializaton.
Definition:
type-name.h:54
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
core
model
type-name.h
Generated on Tue Feb 6 2024 19:21:17 for ns-3 by
1.9.1