document Channel base class

This commit is contained in:
Mathieu Lacage
2007-03-29 17:09:16 +02:00
parent 2584c78959
commit 11d19f32e1

View File

@@ -45,7 +45,18 @@ public:
void SetName(std::string);
std::string GetName(void);
/**
* \returns the number of NetDevices connected to this Channel.
*
* This method must be implemented by subclasses.
*/
virtual uint32_t GetNDevices (void) const = 0;
/**
* \param i index of NetDevice to retrieve
* \returns one of the NetDevices connected to this channel.
*
* This method must be implemented by subclasses.
*/
virtual NetDevice *GetDevice (uint32_t i) const = 0;
protected: