InstanceToSingletonAdapter< C > Class Template Reference

#include <Generic.h>

Inheritance diagram for InstanceToSingletonAdapter< C >:
Collaboration diagram for InstanceToSingletonAdapter< C >:

Public Member Functions

void * operator new (size_t byteCount)
 
void operator delete (void *address)
 
 InstanceToSingletonAdapter (C const *instance)
 
C const * operator-> () const
 
Coperator-> ()
 
C const & operator* () const
 
Coperator* ()
 
 operator C const * () const
 
 operator C* ()
 

Private Attributes

C const * theInstance
 

Detailed Description

template<class C>
class InstanceToSingletonAdapter< C >

Definition at line 45 of file Generic.h.

Constructor & Destructor Documentation

◆ InstanceToSingletonAdapter()

template<class C >
InstanceToSingletonAdapter< C >::InstanceToSingletonAdapter ( C const *  instance)
inline

Definition at line 53 of file Generic.h.

Member Function Documentation

◆ operator C const *()

template<class C >
InstanceToSingletonAdapter< C >::operator C const * ( ) const
inline

Definition at line 63 of file Generic.h.

References InstanceToSingletonAdapter< C >::theInstance.

◆ operator C*()

template<class C >
InstanceToSingletonAdapter< C >::operator C* ( )
inline

Definition at line 65 of file Generic.h.

References C, and InstanceToSingletonAdapter< C >::theInstance.

◆ operator delete()

template<class C >
void InstanceToSingletonAdapter< C >::operator delete ( void *  address)
inline

Definition at line 51 of file Generic.h.

◆ operator new()

template<class C >
void * InstanceToSingletonAdapter< C >::operator new ( size_t  byteCount)
inline

Definition at line 49 of file Generic.h.

◆ operator*() [1/2]

template<class C >
C & InstanceToSingletonAdapter< C >::operator* ( )
inline

Definition at line 61 of file Generic.h.

References C, and InstanceToSingletonAdapter< C >::theInstance.

◆ operator*() [2/2]

template<class C >
C const & InstanceToSingletonAdapter< C >::operator* ( ) const
inline

Definition at line 59 of file Generic.h.

References InstanceToSingletonAdapter< C >::theInstance.

◆ operator->() [1/2]

template<class C >
C * InstanceToSingletonAdapter< C >::operator-> ( )
inline

Definition at line 57 of file Generic.h.

References C, and InstanceToSingletonAdapter< C >::theInstance.

◆ operator->() [2/2]

template<class C >
C const * InstanceToSingletonAdapter< C >::operator-> ( ) const
inline

Definition at line 55 of file Generic.h.

References InstanceToSingletonAdapter< C >::theInstance.

Member Data Documentation

◆ theInstance


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors