openMSX
Classes | Functions
xrange.hh File Reference
#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. More...
 

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 155 of file xrange.hh.

Referenced by openmsx::BlipBuffer::addDelta(), openmsx::AviRecorder::addWave(), openmsx::CartridgeSlotManager::allocateAnyPrimarySlot(), openmsx::CartridgeSlotManager::allocateSlot(), openmsx::BlipBuffer::BlipBuffer(), openmsx::calcEdgesGL(), openmsx::V9990BitmapConverter< Pixel >::convertLine(), openmsx::IPSPatch::copyBlock(), PerfectMinimalHash::create(), openmsx::CartridgeSlotManager::createExternalSlot(), openmsx::VDPAccessSlots::CycleTable::CycleTable(), openmsx::CPUCore< CPU_POLICY >::disasmCommand(), openmsx::Scanline< Pixel >::draw(), openmsx::LDSDLRasterizer< Pixel >::drawBlank(), openmsx::SDLRasterizer< Pixel >::drawBorder(), openmsx::V9990SDLRasterizer< Pixel >::drawBorder(), openmsx::SDLRasterizer< Pixel >::drawDisplay(), Base64::encode(), HexDump::encode(), cstd::exp(), openmsx::ResampleLQ< CHANNELS >::fetchData(), openmsx::CasImage::fillBuffer(), openmsx::WavImage::fillBuffer(), 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::Keyboard::getKeys(), openmsx::PostProcessor::getLineWidth(), openmsx::VDP::getMSX1Palette(), openmsx::CheckedRam::getRWCacheLines(), openmsx::FrameSource::getWidth(), openmsx::GLHQLiteScaler::GLHQLiteScaler(), openmsx::GLHQScaler::GLHQScaler(), openmsx::GLImage::GLImage(), openmsx::Carnivore2::globalRead(), openmsx::GLPostProcessor::GLPostProcessor(), openmsx::GLRGBScaler::GLRGBScaler(), openmsx::GLScaler::GLScaler(), openmsx::GLSimpleScaler::GLSimpleScaler(), openmsx::GLTVScaler::GLTVScaler(), openmsx::MSXCPU::invalidateAllSlotsRWCache(), openmsx::PNG::load(), gl::matMxN< M, N, T >::matMxN(), gl::max(), gl::min(), gl::min_component(), openmsx::SoundDevice::mixChannels(), openmsx::MSXCommandEvent::MSXCommandEvent(), openmsx::MSXCPUInterface::MSXCPUInterface(), gl::norm2_2(), openmsx::Scale_1on2< Pixel >::operator()(), openmsx::Scale_2on1< Pixel >::operator()(), openmsx::Scale_6on1< Pixel >::operator()(), openmsx::Scale_4on1< Pixel >::operator()(), openmsx::Scale_3on1< Pixel >::operator()(), openmsx::Scale_3on4< Pixel >::operator()(), openmsx::Scale_3on8< Pixel >::operator()(), openmsx::ZoomLine< Pixel >::operator()(), openmsx::HQ_1x1on3x3< Pixel >::operator()(), openmsx::HQLite_1x1on3x3< Pixel >::operator()(), openmsx::HQ_1x1on2x2< Pixel >::operator()(), openmsx::HQ_1x1on1x2< Pixel >::operator()(), openmsx::HQLite_1x1on2x2< Pixel >::operator()(), openmsx::HQLite_1x1on1x2< Pixel >::operator()(), openmsx::BlendLines< Pixel, w1, w2 >::operator()(), openmsx::AlphaBlendLines< Pixel >::operator()(), gl::operator*(), gl::operator+(), gl::operator-(), openmsx::Sha1Sum::operator<(), gl::operator<<(), gl::operator==(), openmsx::Sha1Sum::operator==(), AdhocCliCommParser::parse(), openmsx::CommandLineParser::parse(), openmsx::Paper::plot(), openmsx::ImagePrinter::plot9Dots(), openmsx::SCC::powerUp(), openmsx::MSXMegaRam::powerUp(), openmsx::V9990SDLRasterizer< Pixel >::preCalcPalettes(), openmsx::ImagePrinter::printVisibleCharacter(), ObjectPool< T >::ptr2Index(), openmsx::R800TYPE::R800TYPE(), openmsx::RawFrame::RawFrame(), openmsx::BlipBuffer::readSamples(), openmsx::SectorAccessibleDisk::readSectorsImpl(), openmsx::DMKDiskImage::readTrack(), gl::recip(), openmsx::Joystick::registerAll(), openmsx::JoyMega::registerAll(), openmsx::MSXDeviceSwitch::registerDevice(), hash_set< Value, Extractor, Hasher, Equal >::rehash(), repeat(), openmsx::MSXCPUInterface::reset(), openmsx::YM2413Burczynski::YM2413::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::RomNettouYakyuu::reset(), openmsx::RomPadial8kB::reset(), openmsx::RomPanasonic::reset(), openmsx::RomZemina80in1::reset(), openmsx::V9990SDLRasterizer< Pixel >::resetPalette(), openmsx::RomBlocks< BANK_SIZE_ >::RomBlocks(), openmsx::RomMSXtra::RomMSXtra(), openmsx::RomPageNN::RomPageNN(), openmsx::RomPlain::RomPlain(), openmsx::FBPostProcessor< Pixel >::rotateFrames(), gl::round(), openmsx::Paper::save(), openmsx::SDLGLVisibleSurface::saveScreenshotGL(), openmsx::SDLVisibleSurface::saveScreenshotSDL(), openmsx::Scaler1< Pixel >::scale1x2to1x1(), openmsx::Scaler3< Pixel >::scaleBlank1to3(), openmsx::SaI3xScaler< Pixel >::scaleBlank1to3(), openmsx::MLAAScaler< Pixel >::scaleImage(), openmsx::SDLRasterizer< Pixel >::SDLRasterizer(), openmsx::MSXCPUInterface::serialize(), openmsx::MSXCommandEvent::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(), gl::sum(), TEST_CASE(), openmsx::HardwareConfig::testRemove(), openmsx::tiger_leaf(), openmsx::Keyboard::transferHostKeyMatrix(), gl::transpose(), gl::trunc(), openmsx::MSXDeviceSwitch::unregisterDevice(), openmsx::YM2413Burczynski::Channel::updateInstrument(), openmsx::VDPVRAM::updateVRMode(), openmsx::GLHQLiteScaler::uploadBlock(), openmsx::GLHQScaler::uploadBlock(), openmsx::V9990::V9990(), openmsx::VDPIODelay::VDPIODelay(), gl::vecN< N, T >::vecN(), openmsx::Wav16Writer::write(), openmsx::V9990::writeIO(), openmsx::MegaFlashRomSCCPlus::writeMem(), openmsx::MegaFlashRomSCCPlusSD::writeMem(), openmsx::RomMatraCompilation::writeMem(), openmsx::RomPanasonic::writeMem(), openmsx::SectorAccessibleDisk::writeSectors(), openmsx::Y8950::Y8950(), openmsx::YM2413Okazaki::YM2413::YM2413(), openmsx::CartridgeSlotManager::~CartridgeSlotManager(), openmsx::HardwareConfig::~HardwareConfig(), openmsx::MSXCPUInterface::~MSXCPUInterface(), and openmsx::MSXtar::~MSXtar().

◆ xrange() [2/2]

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

Definition at line 159 of file xrange.hh.