openMSX
Public Member Functions | List of all members
openmsx::IntHelper< SOURCE > Class Template Reference

#include <IRQHelper.hh>

Inheritance diagram for openmsx::IntHelper< SOURCE >:
Inheritance graph
[legend]
Collaboration diagram for openmsx::IntHelper< SOURCE >:
Collaboration graph
[legend]

Public Member Functions

 IntHelper (const IntHelper &)=delete
 
IntHelperoperator= (const IntHelper &)=delete
 
template<typename ... Args>
 IntHelper (MSXMotherBoard &motherboard, const std::string &name, Args &&...args)
 Create a new IntHelper. More...
 
 ~IntHelper ()
 Destroy this IntHelper. More...
 
void set ()
 Set the interrupt request on the bus. More...
 
void reset ()
 Reset the interrupt request on the bus. More...
 
void set (bool s)
 Convenience function: calls set() or reset(). More...
 
bool getState () const
 Get the interrupt state. More...
 
template<typename Archive >
void serialize (Archive &ar, unsigned)
 

Detailed Description

template<typename SOURCE>
class openmsx::IntHelper< SOURCE >

Definition at line 47 of file IRQHelper.hh.

Constructor & Destructor Documentation

◆ IntHelper() [1/2]

template<typename SOURCE >
openmsx::IntHelper< SOURCE >::IntHelper ( const IntHelper< SOURCE > &  )
delete

◆ IntHelper() [2/2]

template<typename SOURCE >
template<typename ... Args>
openmsx::IntHelper< SOURCE >::IntHelper ( MSXMotherBoard motherboard,
const std::string &  name,
Args &&...  args 
)
inline

Create a new IntHelper.

Initially there is no interrupt request on the bus.

Definition at line 57 of file IRQHelper.hh.

◆ ~IntHelper()

template<typename SOURCE >
openmsx::IntHelper< SOURCE >::~IntHelper ( )
inline

Destroy this IntHelper.

Resets interrupt request if it is active.

Definition at line 68 of file IRQHelper.hh.

References openmsx::IntHelper< SOURCE >::reset().

Member Function Documentation

◆ getState()

template<typename SOURCE >
bool openmsx::IntHelper< SOURCE >::getState ( ) const
inline

Get the interrupt state.

Returns
true iff interrupt request is active.

Definition at line 103 of file IRQHelper.hh.

Referenced by openmsx::MC6850::peekStatusReg(), and openmsx::YM2148::pendingIRQ().

◆ operator=()

template<typename SOURCE >
IntHelper& openmsx::IntHelper< SOURCE >::operator= ( const IntHelper< SOURCE > &  )
delete

◆ reset()

template<typename SOURCE >
void openmsx::IntHelper< SOURCE >::reset ( )
inline

◆ serialize()

template<typename SOURCE >
template<typename Archive >
void openmsx::IntHelper< SOURCE >::serialize ( Archive &  ar,
unsigned   
)
inline

Definition at line 108 of file IRQHelper.hh.

References openmsx::IntHelper< SOURCE >::set().

◆ set() [1/2]

template<typename SOURCE >
void openmsx::IntHelper< SOURCE >::set ( )
inline

◆ set() [2/2]

template<typename SOURCE >
void openmsx::IntHelper< SOURCE >::set ( bool  s)
inline

Convenience function: calls set() or reset().

Definition at line 92 of file IRQHelper.hh.

References openmsx::IntHelper< SOURCE >::reset(), and openmsx::IntHelper< SOURCE >::set().


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