This is the final version of Mini Gateway for Automation and Security desgined for Renesas GR Peach Design Contest

Dependencies:   GR-PEACH_video GraphicsFramework HTTPServer R_BSP mbed-rpc mbed-rtos Socket lwip-eth lwip-sys lwip FATFileSystem

Fork of mbed-os-example-mbed5-blinky by mbed-os-examples

Embed: (wiki syntax)

« Back to documentation index

SingletonPtr< T > Struct Template Reference

SingletonPtr< T > Struct Template Reference
[Platform]

Utility class for creating an using a singleton. More...

#include <SingletonPtr.h>

Public Member Functions

T * get ()
 Get a pointer to the underlying singleton.
T * operator-> ()
 Get a pointer to the underlying singleton.

Detailed Description

template<class T>
struct SingletonPtr< T >

Utility class for creating an using a singleton.

Synchronization level: Thread safe

: This class must only be used in a static context - this class must never be allocated or created on the stack.

: This class is lazily initialized on first use. This class is a POD type so if it is not used it will be garbage collected.

Definition at line 72 of file SingletonPtr.h.


Member Function Documentation

T* get (  )

Get a pointer to the underlying singleton.

Returns:
A pointer to the singleton

Definition at line 79 of file SingletonPtr.h.

T* operator-> (  )

Get a pointer to the underlying singleton.

Returns:
A pointer to the singleton

Definition at line 98 of file SingletonPtr.h.