OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
ProxyBase< T > Class Template Reference

#include <ProxyBase.h>

Inheritance diagram for ProxyBase< T >:

Public Member Functions

 ProxyBase (T *base)
 
T * base () const
 
void setBase (T *base)
 

Protected Member Functions

T * nonNullBase () const
 

Private Attributes

T * base_
 

Detailed Description

template<class T>
class ProxyBase< T >

A convenient base class for other platform proxies. It provides common accessors for the base class, and exposes a nonNullBase method for derived classes to simplify implementations.

Note that it's perfectly OK for a proxy to point to a null base, and in this case base will return nullptr, but nonNullBase will assert, and thus you cannot really call any methods on such a proxy.

Template Parameters
TPlatform class to proxy, e.g. a PlatformWindow.

Constructor & Destructor Documentation

◆ ProxyBase()

template<class T >
ProxyBase< T >::ProxyBase ( T *  base)
inlineexplicit

Member Function Documentation

◆ base()

template<class T >
T * ProxyBase< T >::base ( ) const
inline

◆ nonNullBase()

template<class T >
T * ProxyBase< T >::nonNullBase ( ) const
inlineprotected

◆ setBase()

template<class T >
void ProxyBase< T >::setBase ( T *  base)
inline

Member Data Documentation

◆ base_

template<class T >
T* ProxyBase< T >::base_
private

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