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

#include <amo.hh>

Inheritance diagram for AtomicGeneric2Op< T >:
TypedAtomicOpFunctor< T > 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 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 AtomicGeneric2Op< T >

Definition at line 64 of file amo.hh.

Constructor & Destructor Documentation

◆ AtomicGeneric2Op()

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

Definition at line 67 of file amo.hh.

Member Function Documentation

◆ clone()

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

Implements TypedAtomicOpFunctor< T >.

Definition at line 70 of file amo.hh.

◆ execute()

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

Implements TypedAtomicOpFunctor< T >.

Definition at line 74 of file amo.hh.

References AtomicGeneric2Op< T >::a, ArmISA::b, and AtomicGeneric2Op< T >::op.

Member Data Documentation

◆ a

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

Definition at line 79 of file amo.hh.

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

◆ op

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

Definition at line 80 of file amo.hh.

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


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

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