network: doxygen updates (partial)
This commit is contained in:
@@ -6,7 +6,9 @@
|
||||
|
||||
using namespace ns3;
|
||||
|
||||
/* A sample Header implementation
|
||||
/**
|
||||
* \ingroup network
|
||||
* A simple example of an Header implementation
|
||||
*/
|
||||
class MyHeader : public Header
|
||||
{
|
||||
@@ -15,9 +17,21 @@ public:
|
||||
MyHeader ();
|
||||
virtual ~MyHeader ();
|
||||
|
||||
/**
|
||||
* Set the header data.
|
||||
* \param data The data.
|
||||
*/
|
||||
void SetData (uint16_t data);
|
||||
/**
|
||||
* Get the header data.
|
||||
* \return The data.
|
||||
*/
|
||||
uint16_t GetData (void) const;
|
||||
|
||||
/**
|
||||
* \brief Get the type ID.
|
||||
* \return the object TypeId
|
||||
*/
|
||||
static TypeId GetTypeId (void);
|
||||
virtual TypeId GetInstanceTypeId (void) const;
|
||||
virtual void Print (std::ostream &os) const;
|
||||
@@ -25,7 +39,7 @@ public:
|
||||
virtual uint32_t Deserialize (Buffer::Iterator start);
|
||||
virtual uint32_t GetSerializedSize (void) const;
|
||||
private:
|
||||
uint16_t m_data;
|
||||
uint16_t m_data; //!< Header data
|
||||
};
|
||||
|
||||
MyHeader::MyHeader ()
|
||||
|
||||
@@ -24,10 +24,17 @@
|
||||
|
||||
using namespace ns3;
|
||||
|
||||
// define this class in a public header
|
||||
/**
|
||||
* \ingroup network
|
||||
* A simple example of an Tag implementation
|
||||
*/
|
||||
class MyTag : public Tag
|
||||
{
|
||||
public:
|
||||
/**
|
||||
* \brief Get the type ID.
|
||||
* \return the object TypeId
|
||||
*/
|
||||
static TypeId GetTypeId (void);
|
||||
virtual TypeId GetInstanceTypeId (void) const;
|
||||
virtual uint32_t GetSerializedSize (void) const;
|
||||
@@ -36,10 +43,18 @@ public:
|
||||
virtual void Print (std::ostream &os) const;
|
||||
|
||||
// these are our accessors to our tag structure
|
||||
/**
|
||||
* Set the tag value
|
||||
* \param value The tag value.
|
||||
*/
|
||||
void SetSimpleValue (uint8_t value);
|
||||
/**
|
||||
* Get the tag value
|
||||
* \return the tag value.
|
||||
*/
|
||||
uint8_t GetSimpleValue (void) const;
|
||||
private:
|
||||
uint8_t m_simpleValue;
|
||||
uint8_t m_simpleValue; //!< tag value
|
||||
};
|
||||
|
||||
TypeId
|
||||
|
||||
@@ -382,6 +382,7 @@ public:
|
||||
uint32_t GetRemainingSize (void) const;
|
||||
|
||||
private:
|
||||
/// Friend class
|
||||
friend class Buffer;
|
||||
/**
|
||||
* Constructor - initializes the iterator to point to the buffer start
|
||||
|
||||
@@ -87,7 +87,9 @@ public:
|
||||
TagBuffer buf; //!< the data for the tag as generated by Tag::Serialize
|
||||
Item (TagBuffer buf); //!< constructs an item with the given TagBuffer
|
||||
private:
|
||||
/// Friend class
|
||||
friend class ByteTagList;
|
||||
/// Friend class
|
||||
friend class ByteTagList::Iterator;
|
||||
};
|
||||
|
||||
@@ -112,6 +114,7 @@ private:
|
||||
*/
|
||||
uint32_t GetOffsetStart (void) const;
|
||||
private:
|
||||
/// Friend class
|
||||
friend class ByteTagList;
|
||||
|
||||
/**
|
||||
|
||||
@@ -84,10 +84,11 @@ public:
|
||||
*/
|
||||
struct Item
|
||||
{
|
||||
enum {
|
||||
PAYLOAD,
|
||||
HEADER,
|
||||
TRAILER
|
||||
/// Type of data in the packet
|
||||
enum ItemType {
|
||||
PAYLOAD, //!< Payload
|
||||
HEADER, //!< Header
|
||||
TRAILER //!< Trailer
|
||||
} type; //!< metadata type
|
||||
/**
|
||||
* true: this is a fragmented header, trailer, or, payload.
|
||||
@@ -252,6 +253,8 @@ private:
|
||||
|
||||
/**
|
||||
* \brief Initialize the item iterator to the buffer begin
|
||||
* \param buffer buffer to initialize.
|
||||
* \return the buffer iterator.
|
||||
*/
|
||||
ItemIterator BeginItem (Buffer buffer) const;
|
||||
|
||||
@@ -501,6 +504,7 @@ public:
|
||||
};
|
||||
|
||||
friend DataFreeList::~DataFreeList ();
|
||||
/// Friend class
|
||||
friend class ItemIterator;
|
||||
|
||||
PacketMetadata ();
|
||||
@@ -596,6 +600,7 @@ public:
|
||||
|
||||
/**
|
||||
* \brief Get the total size used by the metadata
|
||||
* \return the metadata used size
|
||||
*/
|
||||
uint32_t GetTotalSize (void) const;
|
||||
|
||||
|
||||
@@ -87,6 +87,7 @@ public:
|
||||
*/
|
||||
void GetTag (Tag &tag) const;
|
||||
private:
|
||||
/// Friend class
|
||||
friend class ByteTagIterator;
|
||||
/**
|
||||
* \brief Constructor
|
||||
@@ -111,6 +112,7 @@ private:
|
||||
*/
|
||||
Item Next (void);
|
||||
private:
|
||||
/// Friend class
|
||||
friend class Packet;
|
||||
/**
|
||||
* Copy Constructor
|
||||
@@ -149,6 +151,7 @@ public:
|
||||
*/
|
||||
void GetTag (Tag &tag) const;
|
||||
private:
|
||||
/// Friend class
|
||||
friend class PacketTagIterator;
|
||||
/**
|
||||
* Constructor
|
||||
@@ -166,6 +169,7 @@ private:
|
||||
*/
|
||||
Item Next (void);
|
||||
private:
|
||||
/// Friend class
|
||||
friend class Packet;
|
||||
/**
|
||||
* Constructor
|
||||
|
||||
@@ -1024,6 +1024,8 @@ protected:
|
||||
/**
|
||||
* \brief Notify through the callback (if set) that a new connection has been
|
||||
* created.
|
||||
* \param socket The socket receiving the new connection.
|
||||
* \param from The address of the node initiating the connection.
|
||||
*/
|
||||
void NotifyNewConnectionCreated (Ptr<Socket> socket, const Address &from);
|
||||
|
||||
|
||||
@@ -465,6 +465,10 @@ private:
|
||||
class BinaryErrorModel : public ErrorModel
|
||||
{
|
||||
public:
|
||||
/**
|
||||
* \brief Get the type ID.
|
||||
* \return the object TypeId
|
||||
*/
|
||||
static TypeId GetTypeId (void);
|
||||
|
||||
BinaryErrorModel ();
|
||||
|
||||
@@ -28,6 +28,8 @@
|
||||
namespace ns3 {
|
||||
|
||||
/**
|
||||
* \ingroup network
|
||||
*
|
||||
* Types of ethernet packets. Indicates the type of the current
|
||||
* header.
|
||||
*/
|
||||
|
||||
@@ -117,6 +117,7 @@ public:
|
||||
private:
|
||||
/**
|
||||
* \brief Convert to an Address type
|
||||
* \return the Address corresponding to this object.
|
||||
*/
|
||||
Address ConvertTo (void) const;
|
||||
|
||||
|
||||
@@ -204,6 +204,7 @@ private:
|
||||
|
||||
/**
|
||||
* \brief Convert to an Address type
|
||||
* \return the Address corresponding to this object.
|
||||
*/
|
||||
Address ConvertTo (void) const;
|
||||
|
||||
@@ -294,6 +295,7 @@ public:
|
||||
void Set (uint32_t mask);
|
||||
/**
|
||||
* \brief Return the inverse mask in host order.
|
||||
* \return The inverse mask
|
||||
*/
|
||||
uint32_t GetInverse (void) const;
|
||||
/**
|
||||
|
||||
@@ -210,7 +210,7 @@ public:
|
||||
// a buffer with the date of arrival of past received packets
|
||||
// which are within the average window
|
||||
// so, it is quite costly to do it all the time.
|
||||
// Hence, it is disabled by default and must be explicitely
|
||||
// Hence, it is disabled by default and must be explicitly
|
||||
// enabled with this method which specifies the size
|
||||
// of the average window in time units.
|
||||
void EnableRunningAverage (Time averageWindow);
|
||||
@@ -254,6 +254,7 @@ private:
|
||||
uint32_t m_maxBytes; //!< max bytes in the queue
|
||||
QueueMode m_mode; //!< queue mode (packets or bytes)
|
||||
|
||||
/// Friend class
|
||||
template <typename Item>
|
||||
friend class Queue;
|
||||
};
|
||||
@@ -330,6 +331,7 @@ public:
|
||||
|
||||
protected:
|
||||
|
||||
/// Const iterator.
|
||||
typedef typename std::list<Ptr<Item> >::const_iterator ConstIterator;
|
||||
|
||||
/**
|
||||
|
||||
@@ -107,9 +107,9 @@ public:
|
||||
*/
|
||||
void SetPacketType (PacketType type);
|
||||
|
||||
//! Inherited from ObjectBase
|
||||
// Inherited from ObjectBase
|
||||
virtual TypeId GetInstanceTypeId (void) const;
|
||||
//! Inherited from Header
|
||||
// Inherited from Header
|
||||
virtual uint32_t GetSerializedSize (void) const;
|
||||
virtual void Serialize (Buffer::Iterator start) const;
|
||||
virtual uint32_t Deserialize (Buffer::Iterator start);
|
||||
|
||||
Reference in New Issue
Block a user