Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

Interface_List Class Reference

#include <srm-topo.h>

Collaboration diagram for Interface_List:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Interface_List ()
 ~Interface_List ()
void append (int in)

Public Attributes

Interfacehead_

Constructor & Destructor Documentation

Interface_List::Interface_List  )  [inline]
 

Definition at line 121 of file srm-topo.h.

References head_.

00121 : head_(0) { }

Interface_List::~Interface_List  ) 
 

Definition at line 470 of file srm-topo.cc.

References head_, and Interface::next_.

00471 {
00472         Interface *p, *next;
00473         for (p=head_; p; p=next)
00474         {
00475                 next = p->next_;
00476                 delete p;
00477         }
00478 }


Member Function Documentation

void Interface_List::append int  in  ) 
 

Definition at line 463 of file srm-topo.cc.

References head_, and Interface::next_.

Referenced by Star::oif(), BTree::oif(), and Line::oif().

00464 {
00465         Interface *i = new Interface(in);
00466         i->next_ = head_;
00467         head_ = i;
00468 }


Member Data Documentation

Interface* Interface_List::head_
 

Definition at line 125 of file srm-topo.h.

Referenced by append(), Interface_List(), SrmNode::send(), and ~Interface_List().


The documentation for this class was generated from the following files:
Generated on Tue Apr 20 12:53:10 2004 for NS2.26SourcesOriginal by doxygen 1.3.3