core: Remove unused int-to-type.h
This commit is contained in:
@@ -227,7 +227,6 @@ set(header_files
|
||||
model/hash-murmur3.h
|
||||
model/hash.h
|
||||
model/heap-scheduler.h
|
||||
model/int-to-type.h
|
||||
model/int64x64-double.h
|
||||
model/int64x64.h
|
||||
model/integer.h
|
||||
|
||||
@@ -1,54 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2007 INRIA
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
* published by the Free Software Foundation;
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef INT_TO_TYPE_H
|
||||
#define INT_TO_TYPE_H
|
||||
|
||||
/**
|
||||
* \file
|
||||
* ns3::IntToType template class.
|
||||
*/
|
||||
|
||||
namespace ns3
|
||||
{
|
||||
|
||||
/**
|
||||
* Convert an integer into a type.
|
||||
*
|
||||
* This trivial template is extremely useful, as explained in
|
||||
* "Modern C++ Design", p 29, section 2.4,
|
||||
* "Mapping Integral Constants to Types".
|
||||
*
|
||||
* For an example, see timer-impl.h
|
||||
*
|
||||
* \tparam v \explicit The integral constant value distinguishing this type
|
||||
* from other values.
|
||||
*/
|
||||
template <int v>
|
||||
struct IntToType
|
||||
{
|
||||
/** Enumeration holding the type-specific value. */
|
||||
enum v_e
|
||||
{
|
||||
value = v /**< The integer value distinguishing this type. */
|
||||
};
|
||||
};
|
||||
|
||||
} // namespace ns3
|
||||
|
||||
#endif /* INT_TO_TYPE_H */
|
||||
@@ -21,7 +21,6 @@
|
||||
|
||||
#include "event-id.h"
|
||||
#include "fatal-error.h"
|
||||
#include "int-to-type.h"
|
||||
#include "nstime.h"
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user