add extra NodeContainer constructors
This commit is contained in:
@@ -2,6 +2,19 @@
|
||||
|
||||
namespace ns3 {
|
||||
|
||||
NodeContainer::NodeContainer ()
|
||||
{}
|
||||
|
||||
NodeContainer::NodeContainer (Ptr<Node> node)
|
||||
{
|
||||
m_nodes.push_back (node);
|
||||
}
|
||||
NodeContainer::NodeContainer (const NodeContainer &a, const NodeContainer &b)
|
||||
{
|
||||
Add (a);
|
||||
Add (b);
|
||||
}
|
||||
|
||||
NodeContainer::Iterator
|
||||
NodeContainer::Begin (void) const
|
||||
{
|
||||
|
||||
@@ -12,6 +12,10 @@ class NodeContainer
|
||||
public:
|
||||
typedef std::vector<Ptr<Node> >::const_iterator Iterator;
|
||||
|
||||
NodeContainer ();
|
||||
NodeContainer (Ptr<Node> node);
|
||||
NodeContainer (const NodeContainer &a, const NodeContainer &b);
|
||||
|
||||
Iterator Begin (void) const;
|
||||
Iterator End (void) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user