SimpleNetwork.cc (8258:7c377f5162f8) | SimpleNetwork.cc (8259:36987780169e) |
---|---|
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; --- 48 unchanged lines hidden (view full) --- 57{ 58 return new SimpleNetwork(nodes); 59} 60#endif 61 62SimpleNetwork::SimpleNetwork(const Params *p) 63 : Network(p) 64{ | 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; --- 48 unchanged lines hidden (view full) --- 57{ 58 return new SimpleNetwork(nodes); 59} 60#endif 61 62SimpleNetwork::SimpleNetwork(const Params *p) 63 : Network(p) 64{ |
65 m_buffer_size = p->buffer_size; 66 m_endpoint_bandwidth = p->endpoint_bandwidth; 67 m_adaptive_routing = p->adaptive_routing; 68 |
|
65 // Note: the parent Network Object constructor is called before the 66 // SimpleNetwork child constructor. Therefore, the member variables 67 // used below should already be initialized. 68 69 m_endpoint_switches.resize(m_nodes); 70 71 m_in_use.resize(m_virtual_networks); 72 m_ordered.resize(m_virtual_networks); --- 295 unchanged lines hidden --- | 69 // Note: the parent Network Object constructor is called before the 70 // SimpleNetwork child constructor. Therefore, the member variables 71 // used below should already be initialized. 72 73 m_endpoint_switches.resize(m_nodes); 74 75 m_in_use.resize(m_virtual_networks); 76 m_ordered.resize(m_virtual_networks); --- 295 unchanged lines hidden --- |