openMSX
Classes | Functions
xrange.hh File Reference
#include "narrow.hh"
#include <cstddef>
#include <iterator>
#include <type_traits>
Include dependency graph for xrange.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  XRange< T >
 
struct  XRange< T >::Iter
 

Functions

template<typename T >
constexpr auto xrange (T e)
 
template<typename T1 , typename T2 >
constexpr auto xrange (T1 b, T2 e)
 
template<typename T , typename Op >
constexpr void repeat (T n, Op op)
 Repeat the given operation 'op' 'n' times.
 

Function Documentation

◆ repeat()

template<typename T , typename Op >
constexpr void repeat ( n,
Op  op 
)
constexpr

◆ xrange() [1/2]

template<typename T >
constexpr auto xrange ( e)
constexpr

Definition at line 132 of file xrange.hh.

Referenced by openmsx::BlipBuffer::addDelta(), openmsx::CartridgeSlotManager::allocateAnyPrimarySlot(), openmsx::CartridgeSlotManager::allocateSlot(), openmsx::BlipBuffer::BlipBuffer(), openmsx::calcEdgesGL(), openmsx::ZMBVEncoder::compressFrame(), openmsx::V9990BitmapConverter::convertLine(), openmsx::IPSPatch::copyBlock(), PerfectMinimalHash::create(), openmsx::CartridgeSlotManager::createExternalSlot(), openmsx::VDPAccessSlots::CycleTable::CycleTable(), Base64::decode(), Base64::decode_inplace(), openmsx::CPUCore< CPU_POLICY >::disasmCommand(), openmsx::LDSDLRasterizer::drawBlank(), openmsx::SDLRasterizer::drawBorder(), openmsx::V9990SDLRasterizer::drawBorder(), openmsx::SDLRasterizer::drawDisplay(), Base64::encode(), HexDump::encode(), cstd::exp(), openmsx::ResampleLQ< CHANNELS >::fetchData(), openmsx::CasImage::fillBuffer(), openmsx::WavImage::fillBuffer(), openmsx::CartridgeSlotManager::findSlotWith(), IterableBitSet< N >::foreachSetBit(), openmsx::DiskImageUtils::format(), openmsx::CartridgeSlotManager::freeSlot(), openmsx::SN76489::generateChannels(), openmsx::YM2413Burczynski::YM2413::generateChannels(), openmsx::YM2413Okazaki::YM2413::generateChannels(), openmsx::ResampleBlip< CHANNELS >::generateOutputImpl(), openmsx::ResampleHQ< CHANNELS >::generateOutputImpl(), openmsx::CartridgeSlotManager::getAnyFreeSlot(), openmsx::JoystickManager::getConnectedJoysticks(), openmsx::JoyMega::getDefaultConfig(), openmsx::MSXJoystick::getDefaultConfig(), openmsx::FilePool::getDirectories(), openmsx::Keyboard::getKeys(), openmsx::VDP::getMSX1Palette(), openmsx::CheckedRam::getRWCacheLines(), openmsx::Deflicker::getUnscaledLine(), openmsx::FrameSource::getWidth(), openmsx::GLHQLiteScaler::GLHQLiteScaler(), openmsx::GLHQScaler::GLHQScaler(), openmsx::GLImage::GLImage(), openmsx::GLImage::GLImage(), openmsx::Carnivore2::globalRead(), openmsx::GLRGBScaler::GLRGBScaler(), openmsx::GLScaler::GLScaler(), openmsx::GLSimpleScaler::GLSimpleScaler(), openmsx::GLTVScaler::GLTVScaler(), im::ID_for_range(), openmsx::MSXMatsushita::init(), openmsx::MSXCPU::invalidateAllSlotsRWCache(), openmsx::CartridgeSlotManager::isExternalSlot(), im::ListClipper(), im::ListClipperID(), openmsx::PNG::load(), openmsx::ImGuiDebugger::loadLine(), gl::matMxN< M, N, T >::matMxN(), gl::matMxN< M, N, T >::matMxN(), gl::matMxN< M, N, T >::matMxN(), gl::max(), gl::min(), gl::min_component(), openmsx::SoundDevice::mixChannels(), openmsx::MSXCPUInterface::MSXCPUInterface(), gl::norm2_2(), gl::operator*(), gl::operator*(), gl::operator*(), gl::operator*(), gl::operator*(), gl::operator*(), gl::operator*(), gl::operator+(), gl::operator+(), gl::operator-(), gl::operator-(), gl::operator<<(), gl::operator<<(), openmsx::Sha1Sum::operator<=>(), openmsx::Sha1Sum::operator==(), openmsx::ImGuiBitmapViewer::paint(), openmsx::ImGuiCharacter::paint(), openmsx::ImGuiConsole::paint(), openmsx::ImGuiMedia::paint(), openmsx::ImGuiSpriteViewer::paint(), openmsx::ImGuiTrainer::paint(), openmsx::ImGuiVdpRegs::paint(), openmsx::Paper::plot(), openmsx::ImagePrinter::plot9Dots(), openmsx::SCC::powerUp(), openmsx::MSXMegaRam::powerUp(), openmsx::V9990SDLRasterizer::preCalcPalettes(), openmsx::ImagePrinter::printVisibleCharacter(), ObjectPool< T >::ptr2Index(), openmsx::R800TYPE::R800TYPE(), openmsx::RawFrame::RawFrame(), openmsx::BlipBuffer::readSamples(), openmsx::DMKDiskImage::readTrack(), gl::recip(), openmsx::MSXDeviceSwitch::registerDevice(), hash_set< Value, Extractor, Hasher, Equal >::rehash(), repeat(), openmsx::MSXCPUInterface::reset(), openmsx::YM2413NukeYKT::YM2413::reset(), openmsx::YM2413Okazaki::YM2413::reset(), openmsx::AY8910::reset(), openmsx::YM2151::reset(), openmsx::MegaSCSI::reset(), openmsx::ESE_RAM::reset(), openmsx::ESE_SCC::reset(), openmsx::RomAscii8_8::reset(), openmsx::RomAscii8kB::reset(), openmsx::RomFSA1FM2::reset(), openmsx::RomGameMaster2::reset(), openmsx::RomGeneric8kB::reset(), openmsx::RomHalnote::reset(), openmsx::RomHolyQuran::reset(), openmsx::RomKonami::reset(), openmsx::RomKonamiSCC::reset(), openmsx::RomManbow2::reset(), openmsx::RomMatraCompilation::reset(), openmsx::RomMultiRom::reset(), openmsx::RomNational::reset(), openmsx::RomNeo16::reset(), openmsx::RomNeo8::reset(), openmsx::RomNettouYakyuu::reset(), openmsx::RomPadial8kB::reset(), openmsx::RomPanasonic::reset(), openmsx::RomZemina80in1::reset(), openmsx::V9990SDLRasterizer::resetPalette(), openmsx::RomAlAlamiah30in1::RomAlAlamiah30in1(), openmsx::RomBlocks< BANK_SIZE_ >::RomBlocks(), openmsx::RomMSXtra::RomMSXtra(), openmsx::RomPageNN::RomPageNN(), openmsx::RomPlain::RomPlain(), gl::round(), openmsx::Paper::save(), openmsx::ImGuiPalette::save(), openmsx::PNG::saveRGBA(), openmsx::VisibleSurface::saveScreenshotGL(), openmsx::scale_1on2(), openmsx::scale_2on1(), openmsx::scale_3on1(), openmsx::scale_3on4(), openmsx::scale_3on8(), openmsx::scale_4on1(), openmsx::scale_6on1(), openmsx::SDLRasterizer::SDLRasterizer(), openmsx::MSXCPUInterface::serialize(), openmsx::RomBlocks< BANK_SIZE_ >::serialize(), openmsx::RomFSA1FM2::serialize(), openmsx::AY8910::serialize(), openmsx::SCC::serialize(), openmsx::YM2151::serialize(), openmsx::YM2413NukeYKT::YM2413::serialize(), openmsx::YMF262::serialize(), openmsx::MSXCPUInterface::setExpanded(), openmsx::OSDImageBasedWidget::setProperty(), openmsx::ImGuiMedia::showMenu(), openmsx::ImGuiSettings::showMenu(), gl::sum(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), openmsx::HardwareConfig::testRemove(), openmsx::MSXCPUInterface::testUnsetExpanded(), openmsx::Keyboard::transferHostKeyMatrix(), gl::transpose(), gl::trunc(), openmsx::MSXDeviceSwitch::unregisterDevice(), openmsx::YM2413Burczynski::Channel::updateInstrument(), openmsx::VDPVRAM::updateVRMode(), openmsx::GLHQLiteScaler::uploadBlock(), openmsx::GLHQScaler::uploadBlock(), openmsx::VDPIODelay::VDPIODelay(), openmsx::WavData::WavData(), openmsx::V9990::writeIO(), openmsx::MegaFlashRomSCCPlus::writeMem(), openmsx::MegaFlashRomSCCPlusSD::writeMem(), openmsx::RomMatraCompilation::writeMem(), openmsx::RomPanasonic::writeMem(), openmsx::Y8950::Y8950(), openmsx::YM2413Okazaki::YM2413::YM2413(), openmsx::CartridgeSlotManager::~CartridgeSlotManager(), openmsx::HardwareConfig::~HardwareConfig(), openmsx::MSXCPUInterface::~MSXCPUInterface(), openmsx::MSXtar::~MSXtar(), and openmsx::RomAlAlamiah30in1::~RomAlAlamiah30in1().

◆ xrange() [2/2]

template<typename T1 , typename T2 >
constexpr auto xrange ( T1  b,
T2  e 
)
constexpr

Definition at line 136 of file xrange.hh.