ns3::ApplicationContainer Class Reference

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

#include <application-container.h>

List of all members.

Public Member Functions

 ApplicationContainer ()
 ApplicationContainer (Ptr< Application > application)
 ApplicationContainer (std::string name)
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 Add (std::string name)


Detailed Description

holds a vector of ns3::Application pointers

Constructor & Destructor Documentation

ns3::ApplicationContainer::ApplicationContainer (  ) 

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

Create an ApplicationContainer with exactly one application

Parameters:
application The application to add to the container

ns3::ApplicationContainer::ApplicationContainer ( std::string  name  ) 

Create an ApplicationContainer with exactly one application

Parameters:
name The name of the application object to add to the container


Member Function Documentation

void ns3::ApplicationContainer::Add ( std::string  name  ) 

Append to the end of this container the application specified by the name.

Parameters:
name The name of the application object to add to the container.

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

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

Parameters:
application another netdevice pointer.

void ns3::ApplicationContainer::Add ( ApplicationContainer  other  ) 

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

Parameters:
other another application container

Iterator ns3::ApplicationContainer::Begin ( void   )  const

Returns:
an iterator which points to the start of the array of pointers.

Iterator ns3::ApplicationContainer::End ( void   )  const

Returns:
an iterator which points to the end of the array of pointers.

Ptr<Application> ns3::ApplicationContainer::Get ( uint32_t  i  )  const

Parameters:
i the index of the requested application pointer.
Returns:
the requested application pointer.

uint32_t ns3::ApplicationContainer::GetN ( void   )  const

Returns:
the number of application pointers stored in this container.


The documentation for this class was generated from the following file:

Generated on Fri Apr 9 15:01:10 2010 for NS-3 by  doxygen 1.5.8