Blaze 3.9
Loading...
Searching...
No Matches
blaze::DefaultProxy< PT, RT > Class Template Reference

Default proxy backend for built-in and alternate user-specific class types. More...

#include <DefaultProxy.h>

Public Member Functions

Conversion operators
BLAZE_ALWAYS_INLINE PT & operator~ () noexcept
 Conversion operator for non-constant proxies.
BLAZE_ALWAYS_INLINE const PT & operator~ () const noexcept
 Conversion operator for constant proxies.
BLAZE_ALWAYS_INLINE PT & operator* () noexcept
 Conversion operator for non-constant proxies.
BLAZE_ALWAYS_INLINE const PT & operator* () const noexcept
 Conversion operator for constant proxies.

Protected Member Functions

Special member functions
 DefaultProxy (const DefaultProxy &)=default
 DefaultProxy (DefaultProxy &&)=default
DefaultProxy & operator= (const DefaultProxy &)=default
DefaultProxy & operator= (DefaultProxy &&)=default

Detailed Description

template<typename PT, typename RT>
class blaze::DefaultProxy< PT, RT >

Default proxy backend for built-in and alternate user-specific class types.

The DefaultProxy class serves as a backend for the Proxy class. It is used in case the data type represented by the proxy is a built-in or alternate user-specific class type. This proxy does not augment the Proxy interface by any additional interface.

Member Function Documentation

◆ operator*() [1/2]

template<typename PT, typename RT>
BLAZE_ALWAYS_INLINE const PT & blaze::DefaultProxy< PT, RT >::operator* ( ) const
noexcept

Conversion operator for constant proxies.

Returns
Constant reference to the actual type of the proxy.

This operator performs the CRTP-based type-safe downcast to the actual type PT of the proxy. It will return a constant reference to the actual type PT.

◆ operator*() [2/2]

template<typename PT, typename RT>
BLAZE_ALWAYS_INLINE PT & blaze::DefaultProxy< PT, RT >::operator* ( )
noexcept

Conversion operator for non-constant proxies.

Returns
Mutable reference to the actual type of the proxy.

This operator performs the CRTP-based type-safe downcast to the actual type PT of the proxy. It will return a mutable reference to the actual type PT.

◆ operator~() [1/2]

template<typename PT, typename RT>
BLAZE_ALWAYS_INLINE const PT & blaze::DefaultProxy< PT, RT >::operator~ ( ) const
noexcept

Conversion operator for constant proxies.

Deprecated
Returns
Constant reference to the actual type of the proxy.

This operator performs the CRTP-based type-safe downcast to the actual type PT of the proxy. It will return a constant reference to the actual type PT.

Deprecated

◆ operator~() [2/2]

template<typename PT, typename RT>
BLAZE_ALWAYS_INLINE PT & blaze::DefaultProxy< PT, RT >::operator~ ( )
noexcept

Conversion operator for non-constant proxies.

Deprecated
Returns
Mutable reference to the actual type of the proxy.

This operator performs the CRTP-based type-safe downcast to the actual type PT of the proxy. It will return a mutable reference to the actual type PT.

Deprecated

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