SubBlock.hh (6154:6bb54dcb940e) | SubBlock.hh (6204:b247610d8882) |
---|---|
1 2/* 3 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 71 unchanged lines hidden (view full) --- 80 // uint8 getByte(const Address& addr) { return m_data[addr.getAddress() - m_address.getAddress()]; } 81 82 void internalMergeTo(DataBlock& data) const; 83 void internalMergeFrom(const DataBlock& data); 84 85 // Data Members (m_ prefix) 86 Address m_address; 87 Address m_logicalAddress; | 1 2/* 3 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 71 unchanged lines hidden (view full) --- 80 // uint8 getByte(const Address& addr) { return m_data[addr.getAddress() - m_address.getAddress()]; } 81 82 void internalMergeTo(DataBlock& data) const; 83 void internalMergeFrom(const DataBlock& data); 84 85 // Data Members (m_ prefix) 86 Address m_address; 87 Address m_logicalAddress; |
88 Vector<uint> m_data; | 88 Vector<unsigned> m_data; |
89}; 90 91// Output operator declaration 92ostream& operator<<(ostream& out, const SubBlock& obj); 93 94// ******************* Definitions ******************* 95 96// Output operator definition 97extern inline 98ostream& operator<<(ostream& out, const SubBlock& obj) 99{ 100 obj.print(out); 101 out << flush; 102 return out; 103} 104 105#endif //SubBlock_H | 89}; 90 91// Output operator declaration 92ostream& operator<<(ostream& out, const SubBlock& obj); 93 94// ******************* Definitions ******************* 95 96// Output operator definition 97extern inline 98ostream& operator<<(ostream& out, const SubBlock& obj) 99{ 100 obj.print(out); 101 out << flush; 102 return out; 103} 104 105#endif //SubBlock_H |