Network.cc (10370:4466307b8a2a) | Network.cc (10918:dd3ab1f109ad) |
---|---|
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; --- 51 unchanged lines hidden (view full) --- 60 m_in_use.resize(m_virtual_networks); 61 m_ordered.resize(m_virtual_networks); 62 63 for (int i = 0; i < m_virtual_networks; i++) { 64 m_in_use[i] = false; 65 m_ordered[i] = false; 66 } 67 | 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; --- 51 unchanged lines hidden (view full) --- 60 m_in_use.resize(m_virtual_networks); 61 m_ordered.resize(m_virtual_networks); 62 63 for (int i = 0; i < m_virtual_networks; i++) { 64 m_in_use[i] = false; 65 m_ordered[i] = false; 66 } 67 |
68 p->ruby_system->registerNetwork(this); | 68 params()->ruby_system->registerNetwork(this); |
69 70 // Initialize the controller's network pointers 71 for (std::vector<BasicExtLink*>::const_iterator i = p->ext_links.begin(); 72 i != p->ext_links.end(); ++i) { 73 BasicExtLink *ext_link = (*i); 74 AbstractController *abs_cntrl = ext_link->params()->ext_node; 75 abs_cntrl->initNetworkPtr(this); 76 } --- 56 unchanged lines hidden --- | 69 70 // Initialize the controller's network pointers 71 for (std::vector<BasicExtLink*>::const_iterator i = p->ext_links.begin(); 72 i != p->ext_links.end(); ++i) { 73 BasicExtLink *ext_link = (*i); 74 AbstractController *abs_cntrl = ext_link->params()->ext_node; 75 abs_cntrl->initNetworkPtr(this); 76 } --- 56 unchanged lines hidden --- |