torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TilewirePlaceholder.hpp
Go to the documentation of this file.
1 // Torc - Copyright 2011-2013 University of Southern California. All Rights Reserved.
2 // $HeadURL$
3 // $Id$
4 
5 // This program is free software: you can redistribute it and/or modify it under the terms of the
6 // GNU General Public License as published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
10 // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
11 // the GNU General Public License for more details.
12 //
13 // You should have received a copy of the GNU General Public License along with this program. If
14 // not, see <http://www.gnu.org/licenses/>.
15 
16 /// \file
17 /// \brief Header for the TilewirePlaceholder class.
18 
19 #ifndef TORC_PHYSICAL_TILEWIREPLACEHOLDER_HPP
20 #define TORC_PHYSICAL_TILEWIREPLACEHOLDER_HPP
21 
22 #include <boost/cstdint.hpp>
23 
24 namespace torc {
25 namespace physical {
26 
27  // Pack Tilewire objects tightly.
28  #ifdef __GNUC__
29  #pragma pack(push, 2)
30  #endif
31 
32  /// \brief Drop-in placeholder for a Tilewire with no torc::architecture dependencies.
34  protected:
35  // members
36  /// \brief The tile index placeholder.
37  boost::uint32_t m32;
38  /// \brief The wire index placeholder.
39  boost::uint16_t m16;
40  public:
41  // constructors
42  /// \brief Null constructor.
43  TilewirePlaceholder(void) : m32(0), m16(0) {}
44  };
45 
46  #ifdef __GNUC__
47  #pragma pack(pop)
48  #endif
49 
50 } // namespace physical
51 } // namespace torc
52 
53 #endif // TORC_PHYSICAL_TILEWIREPLACEHOLDER_HPP
Drop-in placeholder for a Tilewire with no torc::architecture dependencies.
TilewirePlaceholder(void)
Null constructor.
boost::uint32_t m32
The tile index placeholder.
boost::uint16_t m16
The wire index placeholder.