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  A

Functions

static void ClearA (void)
int main (int argc, char *argv[])
static Ptr< AStoreA (Ptr< A > a)

Variables

static Ptr< Ag_a = 0

Function Documentation

static void ClearA ( void  )
static

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

References g_a.

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 ClearA(), ns3::GetPointer(), A::Method(), NS_ASSERT, StoreA(), and ns3::SimpleRefCount< T, PARENT, DELETER >::Unref().

+ Here is the call graph for this function:

static Ptr<A> StoreA ( Ptr< A a)
static

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

References g_a.

Referenced by main().

+ Here is the caller graph for this function:

Variable Documentation

Ptr<A> g_a = 0
static

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

Referenced by ClearA(), and StoreA().