Network.hh (9465:4ae4f3f4b870) | Network.hh (9497:2759161b9d7f) |
---|---|
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{ 61 public: 62 typedef RubyNetworkParams Params; 63 Network(const Params *p); 64 virtual ~Network() {} 65 66 virtual void init(); 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{ 61 public: 62 typedef RubyNetworkParams Params; 63 Network(const Params *p); 64 virtual ~Network() {} 65 66 virtual void init(); 67 |
68 static int getNumberOfVirtualNetworks() { return m_virtual_networks; } | 68 static uint32_t getNumberOfVirtualNetworks() { return m_virtual_networks; } |
69 static uint32_t MessageSizeType_to_int(MessageSizeType size_type); 70 71 // returns the queue requested for the given component 72 virtual MessageBuffer* getToNetQueue(NodeID id, bool ordered, 73 int netNumber, std::string vnet_type) = 0; 74 virtual MessageBuffer* getFromNetQueue(NodeID id, bool ordered, 75 int netNumber, std::string vnet_type) = 0; 76 virtual const std::vector<Throttle*>* getThrottles(NodeID id) const; --- 54 unchanged lines hidden --- | 69 static uint32_t MessageSizeType_to_int(MessageSizeType size_type); 70 71 // returns the queue requested for the given component 72 virtual MessageBuffer* getToNetQueue(NodeID id, bool ordered, 73 int netNumber, std::string vnet_type) = 0; 74 virtual MessageBuffer* getFromNetQueue(NodeID id, bool ordered, 75 int netNumber, std::string vnet_type) = 0; 76 virtual const std::vector<Throttle*>* getThrottles(NodeID id) const; --- 54 unchanged lines hidden --- |