Example program illustrating use of the ns3::Ptr smart pointer. More...
#include "ns3/ptr.h"#include "ns3/object.h"#include <iostream>
Include dependency graph for main-ptr.cc:Go to the source code of this file.
Classes | |
| class | PtrExample |
| Example class illustrating use of Ptr. More... | |
Functions | |
| static void | ClearPtr (void) |
Set g_ptr to NULL. More... | |
| static Ptr< PtrExample > | StorePtr (Ptr< PtrExample > p) |
| Example Ptr manipulations. More... | |
Variables | |
| static Ptr< PtrExample > | g_ptr = 0 |
| Example Ptr global variable. More... | |
Example program illustrating use of the ns3::Ptr smart pointer.
Definition in file main-ptr.cc.
|
static |
Set g_ptr to NULL.
Definition at line 85 of file main-ptr.cc.
|
static |
Example Ptr manipulations.
This function stores it's argument in the global variable g_ptr and returns the old value of g_ptr.
| [in] | p | A Ptr. |
g_ptr. Definition at line 74 of file main-ptr.cc.
References g_ptr.
|
static |