DiaDes  0.1
DIAgnosis of Discrete-Event System
Public Types | Static Public Member Functions | List of all members
Diades::Utils::Ptr< T > Class Template Reference

#include <Pointer.hh>

Public Types

using P = T *
 
using ConstP = const T *
 

Static Public Member Functions

static ConstP get (const T &obj)
 
static P get (T &obj)
 

Detailed Description

template<typename T>
class Diades::Utils::Ptr< T >

Utility class that allows the use of the methods getPointer() and avoid using the symbols & and * in the code

Definition at line 22 of file Pointer.hh.

Member Typedef Documentation

◆ ConstP

template<typename T>
using Diades::Utils::Ptr< T >::ConstP = const T *

Definition at line 31 of file Pointer.hh.

◆ P

template<typename T>
using Diades::Utils::Ptr< T >::P = T *

Definition at line 27 of file Pointer.hh.

Member Function Documentation

◆ get() [1/2]

template<typename T>
static ConstP Diades::Utils::Ptr< T >::get ( const T &  obj)
inlinestatic

◆ get() [2/2]

template<typename T>
static P Diades::Utils::Ptr< T >::get ( T &  obj)
inlinestatic
Returns
a pointer of the current object

Definition at line 46 of file Pointer.hh.


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