A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
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 (const Ptr< T > 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 381 of file ptr.h.

Member Function Documentation

◆ GetReference()

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

Definition at line 387 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: