gem5  v21.1.0.2
Public Member Functions | Private Attributes | List of all members
gem5::AtomicGenericPair3Op< T > Class Template Reference

#include <amo.hh>

Inheritance diagram for gem5::AtomicGenericPair3Op< T >:
gem5::TypedAtomicOpFunctor< T > gem5::AtomicOpFunctor

Public Member Functions

 AtomicGenericPair3Op (std::array< T, 2 > &_a, std::array< T, 2 > _c, std::function< void(T *, std::array< T, 2 > &, std::array< T, 2 >)> _op)
 
AtomicOpFunctorclone () override
 
void execute (T *b) override
 
- Public Member Functions inherited from gem5::TypedAtomicOpFunctor< T >
void operator() (uint8_t *p)
 
- Public Member Functions inherited from gem5::AtomicOpFunctor
virtual ~AtomicOpFunctor ()
 

Private Attributes

std::array< T, 2 > a
 
std::array< T, 2 > c
 
std::function< void(T *, std::array< T, 2 > &, std::array< T, 2 >)> op
 

Detailed Description

template<typename T>
class gem5::AtomicGenericPair3Op< T >

Definition at line 108 of file amo.hh.

Constructor & Destructor Documentation

◆ AtomicGenericPair3Op()

template<typename T >
gem5::AtomicGenericPair3Op< T >::AtomicGenericPair3Op ( std::array< T, 2 > &  _a,
std::array< T, 2 >  _c,
std::function< void(T *, std::array< T, 2 > &, std::array< T, 2 >)>  _op 
)
inline

Definition at line 111 of file amo.hh.

Member Function Documentation

◆ clone()

template<typename T >
AtomicOpFunctor* gem5::AtomicGenericPair3Op< T >::clone ( )
inlineoverridevirtual

Implements gem5::TypedAtomicOpFunctor< T >.

Definition at line 115 of file amo.hh.

◆ execute()

template<typename T >
void gem5::AtomicGenericPair3Op< T >::execute ( T *  b)
inlineoverridevirtual

Member Data Documentation

◆ a

template<typename T >
std::array<T, 2> gem5::AtomicGenericPair3Op< T >::a
private

Definition at line 124 of file amo.hh.

Referenced by gem5::AtomicGenericPair3Op< T >::execute().

◆ c

template<typename T >
std::array<T, 2> gem5::AtomicGenericPair3Op< T >::c
private

Definition at line 125 of file amo.hh.

Referenced by gem5::AtomicGenericPair3Op< T >::execute().

◆ op

template<typename T >
std::function<void(T*, std::array<T, 2>&, std::array<T, 2>)> gem5::AtomicGenericPair3Op< T >::op
private

Definition at line 126 of file amo.hh.

Referenced by gem5::AtomicGenericPair3Op< T >::execute().


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

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