A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
main-ptr.cc File Reference
#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
 

Functions

static void ClearPtr (void)
 
int main (int argc, char *argv[])
 
static Ptr< PtrExampleStorePtr (Ptr< PtrExample > p)
 

Variables

static Ptr< PtrExampleg_ptr = 0
 

Function Documentation

static void ClearPtr ( void  )
static

Definition at line 40 of file main-ptr.cc.

References g_ptr.

Referenced by main().

+ Here is the caller graph for this function:

int main ( int  argc,
char *  argv[] 
)

Definition at line 47 of file main-ptr.cc.

References ClearPtr(), ns3::GetPointer(), PtrExample::Method(), NS_ASSERT, StorePtr(), and ns3::SimpleRefCount< T, PARENT, DELETER >::Unref().

+ Here is the call graph for this function:

static Ptr<PtrExample> StorePtr ( Ptr< PtrExample p)
static

Definition at line 32 of file main-ptr.cc.

References g_ptr.

Referenced by main().

+ Here is the caller graph for this function:

Variable Documentation

Ptr<PtrExample> g_ptr = 0
static

Definition at line 29 of file main-ptr.cc.

Referenced by ClearPtr(), and StorePtr().