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
 
 IntHelper (IntHelper &&)=delete
 
IntHelperoperator= (const IntHelper &)=delete
 
IntHelperoperator= (IntHelper &&)=delete
 
template<typename ... Args>
 IntHelper (MSXMotherBoard &motherboard, const std::string &name, Args &&...args)
 Create a new IntHelper.
 
 ~IntHelper ()
 Destroy this IntHelper.
 
void set ()
 Set the interrupt request on the bus.
 
void reset ()
 Reset the interrupt request on the bus.
 
void set (bool s)
 Convenience function: calls set() or reset().
 
bool getState () const
 Get the interrupt state.
 
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/3]

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

◆ IntHelper() [2/3]

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

◆ IntHelper() [3/3]

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 59 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 70 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 105 of file IRQHelper.hh.

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

◆ operator=() [1/2]

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

◆ operator=() [2/2]

template<typename SOURCE >
IntHelper & openmsx::IntHelper< SOURCE >::operator= ( 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 110 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 94 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: