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

#include <proxy_ptr.hh>

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

Public Types

using Type = T
 

Public Member Functions

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

Definition at line 109 of file proxy_ptr.hh.

Member Typedef Documentation

◆ CPP

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

Definition at line 134 of file proxy_ptr.hh.

◆ Type

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

Definition at line 137 of file proxy_ptr.hh.

Constructor & Destructor Documentation

◆ ConstProxyPtr() [1/5]

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

Definition at line 129 of file proxy_ptr.hh.

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

◆ ConstProxyPtr() [2/5]

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

Definition at line 142 of file proxy_ptr.hh.

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

◆ ConstProxyPtr() [3/5]

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

Definition at line 150 of file proxy_ptr.hh.

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

◆ ConstProxyPtr() [4/5]

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

Definition at line 158 of file proxy_ptr.hh.

◆ ConstProxyPtr() [5/5]

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

Definition at line 162 of file proxy_ptr.hh.

Member Function Documentation

◆ addr()

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

◆ load()

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

◆ nullCheck()

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

◆ operator bool()

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

Definition at line 174 of file proxy_ptr.hh.

References gem5::ConstProxyPtr< T, Proxy >::buffer.

◆ operator const T *()

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

Definition at line 211 of file proxy_ptr.hh.

References gem5::ConstProxyPtr< T, Proxy >::buffer.

◆ operator*()

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

◆ operator+()

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

◆ operator-() [1/2]

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

◆ operator-() [2/2]

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

Definition at line 191 of file proxy_ptr.hh.

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

◆ operator->()

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

◆ operator=() [1/2]

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

Definition at line 205 of file proxy_ptr.hh.

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

◆ operator=() [2/2]

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

◆ setAddr()

template<typename T , typename Proxy >
void gem5::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 116 of file proxy_ptr.hh.

Member Data Documentation

◆ buffer

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

◆ proxy

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

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

Generated on Tue Sep 21 2021 12:27:24 for gem5 by doxygen 1.8.17