SimpleNetwork.cc (6372:f1a41ea3bbab) SimpleNetwork.cc (6762:a22a47e60c21)
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

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

119SimpleNetwork::~SimpleNetwork()
120{
121 for (int i = 0; i < m_nodes; i++) {
122 m_toNetQueues[i].deletePointers();
123 m_fromNetQueues[i].deletePointers();
124 }
125 m_switch_ptr_vector.deletePointers();
126 m_buffers_to_free.deletePointers();
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

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

119SimpleNetwork::~SimpleNetwork()
120{
121 for (int i = 0; i < m_nodes; i++) {
122 m_toNetQueues[i].deletePointers();
123 m_fromNetQueues[i].deletePointers();
124 }
125 m_switch_ptr_vector.deletePointers();
126 m_buffers_to_free.deletePointers();
127 delete m_topology_ptr;
127 // delete m_topology_ptr;
128}
129
130// From a switch to an endpoint node
131void SimpleNetwork::makeOutLink(SwitchID src, NodeID dest, const NetDest& routing_table_entry, int link_latency, int link_weight, int bw_multiplier, bool isReconfiguration)
132{
133 assert(dest < m_nodes);
134 assert(src < m_switch_ptr_vector.size());
135 assert(m_switch_ptr_vector[src] != NULL);

--- 128 unchanged lines hidden ---
128}
129
130// From a switch to an endpoint node
131void SimpleNetwork::makeOutLink(SwitchID src, NodeID dest, const NetDest& routing_table_entry, int link_latency, int link_weight, int bw_multiplier, bool isReconfiguration)
132{
133 assert(dest < m_nodes);
134 assert(src < m_switch_ptr_vector.size());
135 assert(m_switch_ptr_vector[src] != NULL);

--- 128 unchanged lines hidden ---