torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
VirtexFrameAddress.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 VirtexBitstream class.
18 
19 #ifndef TORC_BITSTREAM_VIRTEXFRAMEADDRESS_HPP
20 #define TORC_BITSTREAM_VIRTEXFRAMEADDRESS_HPP
21 
22 #include <boost/cstdint.hpp>
23 
24 namespace torc {
25 namespace bitstream {
26 
27  /// \brief Virtex Frame Address base-class.
29  protected:
30  // typedefs
31  /// \brief Imported type name.
32  typedef boost::uint32_t uint32_t;
33  // functions
34  /// \brief Assigns members of FAR.
35  virtual void assign(uint32_t inAddress) = 0;
36  public:
37  // destructors
38  virtual ~VirtexFrameAddress() {}
39  // functions
40  /// \brief Equality operator FAR.
41  virtual bool operator== (const VirtexFrameAddress& rhs) const = 0;
42  /// \brief Comparison operator FAR.
43  virtual bool operator< (const VirtexFrameAddress& rhs) const = 0;
44  };
45 
46 } // namespace bitstream
47 } // namespace torc
48 
49 #endif // TORC_BITSTREAM_VIRTEXFRAMEADDRESS_HPP
virtual void assign(uint32_t inAddress)=0
Assigns members of FAR.
virtual bool operator==(const VirtexFrameAddress &rhs) const =0
Equality operator FAR.
boost::uint32_t uint32_t
Imported type name.
Virtex Frame Address base-class.
virtual bool operator<(const VirtexFrameAddress &rhs) const =0
Comparison operator FAR.