A Discrete-Event Network Simulator
API
ns3::CallbackTraits< Ptr< T > > Struct Template Reference

Trait class to convert a pointer into a reference, used by MemPtrCallBackImpl. More...

#include "ptr.h"

Static Public Member Functions

static T & GetReference (Ptr< T > const p)
 

Detailed Description

template<typename T>
struct ns3::CallbackTraits< Ptr< T > >

Trait class to convert a pointer into a reference, used by MemPtrCallBackImpl.

This is the specialization for Ptr types.

Template Parameters
T[deduced] The type of the underlying object.

Definition at line 358 of file ptr.h.

Member Function Documentation

◆ GetReference()

template<typename T >
static T & ns3::CallbackTraits< Ptr< T > >::GetReference ( Ptr< T > const  p)
inlinestatic
Parameters
[in]pObject pointer
Returns
A reference to the object pointed to by p

Definition at line 364 of file ptr.h.

References ns3::PeekPointer().

+ Here is the call graph for this function:

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