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

#include <amo.hh>

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

Public Member Functions

 AtomicGeneric2Op (T _a, std::function< void(T *, T)> _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

a
 
std::function< void(T *, T)> op
 

Detailed Description

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

Definition at line 67 of file amo.hh.

Constructor & Destructor Documentation

◆ AtomicGeneric2Op()

template<typename T >
gem5::AtomicGeneric2Op< T >::AtomicGeneric2Op ( _a,
std::function< void(T *, T)>  _op 
)
inline

Definition at line 70 of file amo.hh.

Member Function Documentation

◆ clone()

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

Implements gem5::TypedAtomicOpFunctor< T >.

Definition at line 73 of file amo.hh.

◆ execute()

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

Member Data Documentation

◆ a

template<typename T >
T gem5::AtomicGeneric2Op< T >::a
private

Definition at line 82 of file amo.hh.

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

◆ op

template<typename T >
std::function<void(T*,T)> gem5::AtomicGeneric2Op< T >::op
private

Definition at line 83 of file amo.hh.

Referenced by gem5::AtomicGeneric2Op< 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