NetDest.cc (7039:bc0b6ea676b5) | NetDest.cc (7055:4e24742201d7) |
---|---|
1/* 2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 246 unchanged lines hidden (view full) --- 255 assert(m_bits.size() == MachineType_NUM); 256 257 for (int i = 0; i < m_bits.size(); i++) { 258 m_bits[i].setSize(MachineType_base_count((MachineType)i)); 259 } 260} 261 262void | 1/* 2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 246 unchanged lines hidden (view full) --- 255 assert(m_bits.size() == MachineType_NUM); 256 257 for (int i = 0; i < m_bits.size(); i++) { 258 m_bits[i].setSize(MachineType_base_count((MachineType)i)); 259 } 260} 261 262void |
263NetDest::print(ostream& out) const | 263NetDest::print(std::ostream& out) const |
264{ 265 out << "[NetDest (" << m_bits.size() << ") "; 266 267 for (int i = 0; i < m_bits.size(); i++) { 268 for (int j = 0; j < m_bits[i].getSize(); j++) { 269 out << (bool) m_bits[i].isElement(j) << " "; 270 } 271 out << " - "; 272 } 273 out << "]"; 274} 275 | 264{ 265 out << "[NetDest (" << m_bits.size() << ") "; 266 267 for (int i = 0; i < m_bits.size(); i++) { 268 for (int j = 0; j < m_bits[i].getSize(); j++) { 269 out << (bool) m_bits[i].isElement(j) << " "; 270 } 271 out << " - "; 272 } 273 out << "]"; 274} 275 |