gem5  v20.1.0.0
Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Friends | List of all members
ConstProxyPtr< T, Proxy > Class Template Reference

#include <proxy_ptr.hh>

Inheritance diagram for ConstProxyPtr< T, Proxy >:
ProxyPtr< T, Proxy >

Public Types

using Type = T
 

Public Member Functions

template<typename ... Args, typename std::enable_if< std::is_constructible< Proxy, Args &&... >::value, int >::type = 0>
 ConstProxyPtr (Addr _ptr, Args &&... args)
 
template<typename ... Args, typename std::enable_if< std::is_constructible< Proxy, Args &&... >::value, int >::type = 0>
 ConstProxyPtr (Args &&... args)
 
template<typename O , typename Enabled = typename std::enable_if<std::is_assignable<T *, O *>::value>::type>
 ConstProxyPtr (const ConstProxyPtr< O, Proxy > &other)
 
 ConstProxyPtr (const CPP &other)
 
void load ()
 
Addr addr () const
 
 operator bool () const
 
template<typename A >
std::enable_if< std::is_integral< A >::value, CPP >::type operator+ (A a) const
 
template<typename A >
std::enable_if< std::is_integral< A >::value, CPP >::type operator- (A a) const
 
ptrdiff_t operator- (const CPP &other) const
 
CPPoperator= (const CPP &other)
 
CPPoperator= (const Addr &a)
 
 operator const T * () const
 
const T & operator* () const
 
const T * operator-> () const
 

Protected Types

using CPP = ConstProxyPtr< T, Proxy >
 

Protected Member Functions

void nullCheck () const
 
void setAddr (Addr ptr)
 
 ConstProxyPtr (Addr _ptr, std::shared_ptr< Proxy > _proxy)
 

Protected Attributes

std::shared_ptr< Proxy > proxy
 
std::shared_ptr< ProxyPtrBuffer< Proxy > > buffer
 

Friends

template<typename O , typename P >
class ProxyPtr
 

Detailed Description

template<typename T, typename Proxy>
class ConstProxyPtr< T, Proxy >

Definition at line 106 of file proxy_ptr.hh.

Member Typedef Documentation

◆ CPP

template<typename T , typename Proxy >
using ConstProxyPtr< T, Proxy >::CPP = ConstProxyPtr<T, Proxy>
protected

Definition at line 131 of file proxy_ptr.hh.

◆ Type

template<typename T , typename Proxy >
using ConstProxyPtr< T, Proxy >::Type = T

Definition at line 134 of file proxy_ptr.hh.

Constructor & Destructor Documentation

◆ ConstProxyPtr() [1/5]

template<typename T , typename Proxy >
ConstProxyPtr< T, Proxy >::ConstProxyPtr ( Addr  _ptr,
std::shared_ptr< Proxy >  _proxy 
)
inlineprotected

Definition at line 126 of file proxy_ptr.hh.

References ConstProxyPtr< T, Proxy >::setAddr().

◆ ConstProxyPtr() [2/5]

template<typename T , typename Proxy >
template<typename ... Args, typename std::enable_if< std::is_constructible< Proxy, Args &&... >::value, int >::type = 0>
ConstProxyPtr< T, Proxy >::ConstProxyPtr ( Addr  _ptr,
Args &&...  args 
)
inlineexplicit

Definition at line 139 of file proxy_ptr.hh.

References ConstProxyPtr< T, Proxy >::setAddr().

◆ ConstProxyPtr() [3/5]

template<typename T , typename Proxy >
template<typename ... Args, typename std::enable_if< std::is_constructible< Proxy, Args &&... >::value, int >::type = 0>
ConstProxyPtr< T, Proxy >::ConstProxyPtr ( Args &&...  args)
inlineexplicit

Definition at line 147 of file proxy_ptr.hh.

References ConstProxyPtr< T, Proxy >::setAddr().

◆ ConstProxyPtr() [4/5]

template<typename T , typename Proxy >
template<typename O , typename Enabled = typename std::enable_if<std::is_assignable<T *, O *>::value>::type>
ConstProxyPtr< T, Proxy >::ConstProxyPtr ( const ConstProxyPtr< O, Proxy > &  other)
inline

Definition at line 155 of file proxy_ptr.hh.

◆ ConstProxyPtr() [5/5]

template<typename T , typename Proxy >
ConstProxyPtr< T, Proxy >::ConstProxyPtr ( const CPP other)
inline

Definition at line 159 of file proxy_ptr.hh.

Member Function Documentation

◆ addr()

template<typename T , typename Proxy >
Addr ConstProxyPtr< T, Proxy >::addr ( ) const
inline

◆ load()

template<typename T , typename Proxy >
void ConstProxyPtr< T, Proxy >::load ( )
inline

◆ nullCheck()

template<typename T , typename Proxy >
void ConstProxyPtr< T, Proxy >::nullCheck ( ) const
inlineprotected

◆ operator bool()

template<typename T , typename Proxy >
ConstProxyPtr< T, Proxy >::operator bool ( ) const
inline

Definition at line 171 of file proxy_ptr.hh.

References ConstProxyPtr< T, Proxy >::buffer.

◆ operator const T *()

template<typename T , typename Proxy >
ConstProxyPtr< T, Proxy >::operator const T * ( ) const
inline

Definition at line 208 of file proxy_ptr.hh.

References ConstProxyPtr< T, Proxy >::buffer.

◆ operator*()

template<typename T , typename Proxy >
const T& ConstProxyPtr< T, Proxy >::operator* ( ) const
inline

◆ operator+()

template<typename T , typename Proxy >
template<typename A >
std::enable_if<std::is_integral<A>::value, CPP>::type ConstProxyPtr< T, Proxy >::operator+ ( a) const
inline

◆ operator-() [1/2]

template<typename T , typename Proxy >
template<typename A >
std::enable_if<std::is_integral<A>::value, CPP>::type ConstProxyPtr< T, Proxy >::operator- ( a) const
inline

◆ operator-() [2/2]

template<typename T , typename Proxy >
ptrdiff_t ConstProxyPtr< T, Proxy >::operator- ( const CPP other) const
inline

Definition at line 188 of file proxy_ptr.hh.

References ConstProxyPtr< T, Proxy >::addr().

◆ operator->()

template<typename T , typename Proxy >
const T* ConstProxyPtr< T, Proxy >::operator-> ( ) const
inline

◆ operator=() [1/2]

template<typename T , typename Proxy >
CPP& ConstProxyPtr< T, Proxy >::operator= ( const Addr a)
inline

Definition at line 202 of file proxy_ptr.hh.

References ArmISA::a, and ConstProxyPtr< T, Proxy >::setAddr().

◆ operator=() [2/2]

template<typename T , typename Proxy >
CPP& ConstProxyPtr< T, Proxy >::operator= ( const CPP other)
inline

◆ setAddr()

template<typename T , typename Proxy >
void ConstProxyPtr< T, Proxy >::setAddr ( Addr  ptr)
inlineprotected

Friends And Related Function Documentation

◆ ProxyPtr

template<typename T , typename Proxy >
template<typename O , typename P >
friend class ProxyPtr
friend

Definition at line 113 of file proxy_ptr.hh.

Member Data Documentation

◆ buffer

template<typename T , typename Proxy >
std::shared_ptr<ProxyPtrBuffer<Proxy> > ConstProxyPtr< T, Proxy >::buffer
protected

◆ proxy

template<typename T , typename Proxy >
std::shared_ptr<Proxy> ConstProxyPtr< T, Proxy >::proxy
protected

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

Generated on Wed Sep 30 2020 14:02:22 for gem5 by doxygen 1.8.17