ns3::ApplicationContainer Class Reference

holds a vector of ns3::Application pointers More...

#include <application-container.h>

List of all members.

Public Types

typedef std::vector< Ptr
< Application >
>::const_iterator 
Iterator

Public Member Functions

 ApplicationContainer ()
 ApplicationContainer (Ptr< Application > application)
Iterator Begin (void) const
Iterator End (void) const
uint32_t GetN (void) const
Ptr< ApplicationGet (uint32_t i) const
void Add (ApplicationContainer other)
void Add (Ptr< Application > application)
void Start (Time start)
void Stop (Time stop)

Private Attributes

std::vector< Ptr< Application > > m_applications

Detailed Description

holds a vector of ns3::Application pointers

Definition at line 33 of file application-container.h.


Member Typedef Documentation

typedef std::vector<Ptr<Application> >::const_iterator ns3::ApplicationContainer::Iterator

Definition at line 48 of file application-container.h.


Constructor & Destructor Documentation

ns3::ApplicationContainer::ApplicationContainer (  ) 

Create an empty ApplicationContainer.

Definition at line 23 of file application-container.cc.

ns3::ApplicationContainer::ApplicationContainer ( Ptr< Application application  ) 

Create an ApplicationContainer with exactly one application

Parameters:
application The application to add to the container

Definition at line 26 of file application-container.cc.

References m_applications.


Member Function Documentation

void ns3::ApplicationContainer::Add ( Ptr< Application application  ) 
Parameters:
application another netdevice pointer.

Append to the end of this container the input netdevice pointer.

Definition at line 61 of file application-container.cc.

References m_applications.

void ns3::ApplicationContainer::Add ( ApplicationContainer  other  ) 
Parameters:
other another netdevice container

Append to the end of this container the other input container.

Definition at line 53 of file application-container.cc.

References Begin(), End(), and m_applications.

Referenced by ns3::V4PingHelper::Install().

ApplicationContainer::Iterator ns3::ApplicationContainer::Begin ( void   )  const
Returns:
an iterator which points to the start of the array of pointers.

Definition at line 32 of file application-container.cc.

References m_applications.

Referenced by Add(), Start(), and Stop().

ApplicationContainer::Iterator ns3::ApplicationContainer::End ( void   )  const
Returns:
an iterator which points to the end of the array of pointers.

Definition at line 37 of file application-container.cc.

References m_applications.

Referenced by Add(), Start(), and Stop().

Ptr< Application > ns3::ApplicationContainer::Get ( uint32_t  i  )  const
Parameters:
i the index of the requested netdevice pointer.
Returns:
the requested netdevice pointer.

Definition at line 48 of file application-container.cc.

References m_applications.

uint32_t ns3::ApplicationContainer::GetN ( void   )  const
Returns:
the number of netdevice pointers stored in this container.

Definition at line 43 of file application-container.cc.

References m_applications.

void ns3::ApplicationContainer::Start ( Time  start  ) 

Definition at line 67 of file application-container.cc.

References Begin(), and End().

void ns3::ApplicationContainer::Stop ( Time  stop  ) 

Definition at line 76 of file application-container.cc.

References Begin(), and End().


Member Data Documentation

Definition at line 86 of file application-container.h.

Referenced by Add(), ApplicationContainer(), Begin(), End(), Get(), and GetN().


The documentation for this class was generated from the following files:
Generated on Thu Dec 3 14:11:31 2009 for NS-3 by  doxygen 1.6.3