gem5  v20.1.0.0
Public Member Functions | Private Attributes | List of all members
RiscvISA::AtomicGenericOp< T > Class Template Reference

A generic atomic op class. More...

#include <amo.hh>

Inheritance diagram for RiscvISA::AtomicGenericOp< T >:
TypedAtomicOpFunctor< T > AtomicOpFunctor

Public Member Functions

 AtomicGenericOp (T _a, std::function< void(T *, T)> _op)
 
AtomicOpFunctorclone ()
 
void execute (T *b)
 
- Public Member Functions inherited from TypedAtomicOpFunctor< T >
void operator() (uint8_t *p)
 
- Public Member Functions inherited from AtomicOpFunctor
virtual ~AtomicOpFunctor ()
 

Private Attributes

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

Detailed Description

template<typename T>
class RiscvISA::AtomicGenericOp< T >

A generic atomic op class.

Definition at line 122 of file amo.hh.

Constructor & Destructor Documentation

◆ AtomicGenericOp()

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

Definition at line 125 of file amo.hh.

Member Function Documentation

◆ clone()

template<typename T >
AtomicOpFunctor* RiscvISA::AtomicGenericOp< T >::clone ( )
inlinevirtual

Implements TypedAtomicOpFunctor< T >.

Definition at line 127 of file amo.hh.

◆ execute()

template<typename T >
void RiscvISA::AtomicGenericOp< T >::execute ( T *  b)
inlinevirtual

Member Data Documentation

◆ a

template<typename T >
T RiscvISA::AtomicGenericOp< T >::a
private

Definition at line 130 of file amo.hh.

Referenced by RiscvISA::AtomicGenericOp< T >::execute().

◆ op

template<typename T >
std::function<void(T*,T)> RiscvISA::AtomicGenericOp< T >::op
private

Definition at line 131 of file amo.hh.

Referenced by RiscvISA::AtomicGenericOp< T >::execute().


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

Generated on Wed Sep 30 2020 14:03:08 for gem5 by doxygen 1.8.17