net device copy and assignment, reference counted channel.

This commit is contained in:
Craig Dowell
2007-03-27 15:41:08 -07:00
parent 994c7be384
commit 6af1c8bb1f
7 changed files with 200 additions and 17 deletions

View File

@@ -24,6 +24,7 @@
#include <string>
#include <stdint.h>
#include "ns3/object.h"
namespace ns3 {
@@ -35,12 +36,11 @@ class NetDevice;
* A channel is a logical path over which information flows. The path can
* be as simple as a short piece of wire, or as complicated as space-time.
*/
class Channel
class Channel : public Object
{
public:
Channel ();
Channel (std::string name);
virtual ~Channel ();
void SetName(std::string);
std::string GetName(void);
@@ -49,6 +49,7 @@ public:
virtual NetDevice *GetDevice (uint32_t i) const = 0;
protected:
virtual ~Channel ();
std::string m_name;
private: