Network.cc (10311:ad9c042dce54) Network.cc (10370:4466307b8a2a)
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;

--- 71 unchanged lines hidden (view full) ---

80}
81
82Network::~Network()
83{
84 for (int node = 0; node < m_nodes; node++) {
85
86 // Delete the Message Buffers
87 for (auto& it : m_toNetQueues[node]) {
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;

--- 71 unchanged lines hidden (view full) ---

80}
81
82Network::~Network()
83{
84 for (int node = 0; node < m_nodes; node++) {
85
86 // Delete the Message Buffers
87 for (auto& it : m_toNetQueues[node]) {
88 delete it.second;
88 delete it;
89 }
90
91 for (auto& it : m_fromNetQueues[node]) {
89 }
90
91 for (auto& it : m_fromNetQueues[node]) {
92 delete it.second;
92 delete it;
93 }
94 }
95
96 delete m_topology_ptr;
97}
98
99void
100Network::init()

--- 32 unchanged lines hidden ---
93 }
94 }
95
96 delete m_topology_ptr;
97}
98
99void
100Network::init()

--- 32 unchanged lines hidden ---