openMSX
|
Concepts | |
concept | range |
concept | sized_range |
Functions | |
template<typename ForwardRange , typename Compare = std::less<>, typename Proj = std::identity> | |
bool | is_sorted (ForwardRange &&range, Compare comp={}, Proj proj={}) |
template<typename RandomAccessRange > | |
constexpr void | sort (RandomAccessRange &&range) |
template<typename RandomAccessRange , typename Compare > | |
constexpr void | sort (RandomAccessRange &&range, Compare comp) |
template<typename RAIter , typename Compare = std::less<>, typename Proj > | |
constexpr void | sort (RAIter first, RAIter last, Compare comp, Proj proj) |
template<typename RandomAccessRange , typename Compare = std::less<>, typename Proj > | |
constexpr void | sort (RandomAccessRange &&range, Compare comp, Proj proj) |
template<typename RandomAccessRange > | |
void | stable_sort (RandomAccessRange &&range) |
template<typename RandomAccessRange , typename Compare > | |
void | stable_sort (RandomAccessRange &&range, Compare comp) |
template<typename RAIter , typename Compare = std::less<>, typename Proj > | |
void | stable_sort (RAIter first, RAIter last, Compare comp, Proj proj) |
template<typename RandomAccessRange , typename Compare = std::less<>, typename Proj > | |
void | stable_sort (RandomAccessRange &&range, Compare comp, Proj proj) |
template<typename ForwardRange , typename T > | |
bool | binary_search (ForwardRange &&range, const T &value) |
template<typename ForwardRange , typename T , typename Compare > | |
bool | binary_search (ForwardRange &&range, const T &value, Compare comp) |
template<typename ForwardRange , typename T , typename Compare = std::less<>, typename Proj = std::identity> | |
auto | lower_bound (ForwardRange &&range, const T &value, Compare comp={}, Proj proj={}) |
template<typename ForwardRange , typename T , typename Compare = std::less<>, typename Proj = std::identity> | |
auto | upper_bound (ForwardRange &&range, const T &value, Compare comp={}, Proj proj={}) |
template<typename ForwardRange , typename T , typename Compare = std::less<>> | |
auto | equal_range (ForwardRange &&range, const T &value, Compare comp={}) |
template<typename ForwardRange , typename T , typename Compare = std::less<>, typename Proj = std::identity> | |
auto | equal_range (ForwardRange &&range, const T &value, Compare comp, Proj proj) |
template<typename InputRange , typename T > | |
auto | find (InputRange &&range, const T &value) |
template<typename InputRange , typename T , typename Proj > | |
auto | find (InputRange &&range, const T &value, Proj proj) |
template<typename InputRange , typename UnaryPredicate > | |
auto | find_if (InputRange &&range, UnaryPredicate pred) |
template<typename InputRange , typename UnaryPredicate > | |
constexpr bool | all_of (InputRange &&range, UnaryPredicate pred) |
template<typename InputRange , typename UnaryPredicate > | |
constexpr bool | any_of (InputRange &&range, UnaryPredicate pred) |
template<typename InputRange , typename UnaryPredicate > | |
constexpr bool | none_of (InputRange &&range, UnaryPredicate pred) |
template<typename ForwardRange > | |
auto | unique (ForwardRange &&range) |
template<typename ForwardRange , typename BinaryPredicate > | |
auto | unique (ForwardRange &&range, BinaryPredicate pred) |
template<typename RAIter , typename Compare = std::equal_to<>, typename Proj > | |
auto | unique (RAIter first, RAIter last, Compare comp, Proj proj) |
template<typename RandomAccessRange , typename Compare = std::equal_to<>, typename Proj > | |
auto | unique (RandomAccessRange &&range, Compare comp, Proj proj) |
template<typename InputRange , typename OutputIter > requires (!range<OutputIter>) | |
constexpr auto | copy (InputRange &&range, OutputIter out) |
template<sized_range Input, sized_range Output> | |
constexpr auto | copy (Input &&in, Output &&out) |
template<typename InputRange , typename OutputIter , typename UnaryPredicate > | |
auto | copy_if (InputRange &&range, OutputIter out, UnaryPredicate pred) |
template<typename InputRange , typename OutputIter , typename UnaryOperation > | |
auto | transform (InputRange &&range, OutputIter out, UnaryOperation op) |
template<typename ForwardRange , typename Generator > | |
void | generate (ForwardRange &&range, Generator &&g) |
template<typename ForwardRange , typename T > | |
auto | remove (ForwardRange &&range, const T &value) |
template<typename ForwardRange , typename UnaryPredicate > | |
auto | remove_if (ForwardRange &&range, UnaryPredicate pred) |
template<typename ForwardRange , typename T > | |
constexpr void | replace (ForwardRange &&range, const T &old_value, const T &new_value) |
template<typename ForwardRange , typename UnaryPredicate , typename T > | |
void | replace_if (ForwardRange &&range, UnaryPredicate pred, const T &new_value) |
template<typename ForwardRange , typename T > | |
constexpr void | fill (ForwardRange &&range, const T &value) |
template<typename ForwardIt , typename T > | |
constexpr void | iota (ForwardIt first, ForwardIt last, T value) |
template<typename ForwardRange , typename T > | |
constexpr void | iota (ForwardRange &&range, T &&value) |
template<typename InputRange , typename T > | |
T | accumulate (InputRange &&range, T init) |
template<typename InputRange , typename T , typename BinaryOperation > | |
T | accumulate (InputRange &&range, T init, BinaryOperation op) |
template<typename InputRange , typename T > | |
auto | count (InputRange &&range, const T &value) |
template<typename InputRange , typename UnaryPredicate > | |
auto | count_if (InputRange &&range, UnaryPredicate pred) |
template<typename InputRange1 , typename InputRange2 , typename OutputIter > | |
auto | set_difference (InputRange1 &&range1, InputRange2 &&range2, OutputIter out) |
template<range InputRange1, range InputRange2, typename Pred = std::equal_to<void>, typename Proj1 = std::identity, typename Proj2 = std::identity> | |
constexpr bool | equal (InputRange1 &&range1, InputRange2 &&range2, Pred pred={}, Proj1 proj1={}, Proj2 proj2={}) |
template<sized_range SizedRange1, sized_range SizedRange2, typename Pred = std::equal_to<void>, typename Proj1 = std::identity, typename Proj2 = std::identity> | |
constexpr bool | equal (SizedRange1 &&range1, SizedRange2 &&range2, Pred pred={}, Proj1 proj1={}, Proj2 proj2={}) |
template<typename InputRange , typename Proj = std::identity> | |
bool | all_equal (InputRange &&range, Proj proj={}) |
T ranges::accumulate | ( | InputRange && | range, |
T | init | ||
) |
T ranges::accumulate | ( | InputRange && | range, |
T | init, | ||
BinaryOperation | op | ||
) |
bool ranges::all_equal | ( | InputRange && | range, |
Proj | proj = {} |
||
) |
Definition at line 415 of file ranges.hh.
Referenced by openmsx::OSDImageBasedWidget::hasConstantAlpha(), and TEST_CASE().
|
constexpr |
Definition at line 188 of file ranges.hh.
Referenced by IterableBitSet< N >::empty(), openmsx::Sha1Sum::empty(), openmsx::filterIndices(), openmsx::BlipBuffer::readSamples(), openmsx::AmdFlash::Geometry::validate(), and openmsx::MSXDeviceSwitch::~MSXDeviceSwitch().
|
constexpr |
Definition at line 200 of file ranges.hh.
Referenced by openmsx::CartridgeSlotManager::isExternalSlot(), openmsx::SoundDevice::mixChannels(), and openmsx::MSXMixer::needStereoRecording().
bool ranges::binary_search | ( | ForwardRange && | range, |
const T & | value | ||
) |
Definition at line 105 of file ranges.hh.
Referenced by openmsx::OggReader::stopFrame().
bool ranges::binary_search | ( | ForwardRange && | range, |
const T & | value, | ||
Compare | comp | ||
) |
|
constexpr |
|
constexpr |
Definition at line 252 of file ranges.hh.
Referenced by openmsx::Rom::addPadding(), allocate_c_string(), openmsx::XMLDocument::allocateString(), openmsx::DeltaBlockCopy::apply(), openmsx::VDPVRAM::change4k8kMapping(), openmsx::Ram::clear(), strCatImpl::ConcatViaString::copy(), strCatImpl::ConcatUnit< std::string_view >::copy(), strCatImpl::ConcatIntegral< T >::copy(), openmsx::EmptyPatch::copyBlock(), openmsx::IPSPatch::copyBlock(), strCatImpl::ConcatIntegral< T >::copyTail(), openmsx::DeltaBlockCopy::DeltaBlockCopy(), openmsx::SDLRasterizer::drawDisplay(), Base64::encode(), openmsx::YM2413NukeYKT::YM2413::generateChannels(), openmsx::YM2413OriginalNukeYKT::YM2413::generateChannels(), make_string_storage(), openmsx::ImGuiPalette::paint(), openmsx::CompressedFileAdapter::read(), openmsx::MemoryBufferFile::read(), openmsx::MemOutputArchive::save(), openmsx::FrameSource::scaleLine(), openmsx::NowindHost::serialize(), openmsx::MemOutputArchive::serialize_blob(), openmsx::MemInputArchive::serialize_blob(), static_vector< T, N >::static_vector(), openmsx::DBParser::stop(), openmsx::TC8566AF::TC8566AF(), TEST_CASE(), openmsx::tiger(), openmsx::SHA1::update(), openmsx::SDLSoundDriver::uploadBuffer(), openmsx::WavWriter::WavWriter(), openmsx::YM2413NukeYKT::YM2413::YM2413(), and openmsx::AviWriter::~AviWriter().
auto ranges::copy_if | ( | InputRange && | range, |
OutputIter | out, | ||
UnaryPredicate | pred | ||
) |
auto ranges::count | ( | InputRange && | range, |
const T & | value | ||
) |
Definition at line 349 of file ranges.hh.
Referenced by count_if().
auto ranges::count_if | ( | InputRange && | range, |
UnaryPredicate | pred | ||
) |
Definition at line 355 of file ranges.hh.
References count().
Referenced by openmsx::CartridgeSlotManager::getNumberOfSlots().
|
constexpr |
Definition at line 378 of file ranges.hh.
Referenced by openmsx::DeltaBlockCopy::compress(), openmsx::DeltaBlockDiff::DeltaBlockDiff(), openmsx::OggReader::OggReader(), TEST_CASE(), and TEST_CASE().
|
constexpr |
auto ranges::equal_range | ( | ForwardRange && | range, |
const T & | value, | ||
Compare | comp, | ||
Proj | proj | ||
) |
auto ranges::equal_range | ( | ForwardRange && | range, |
const T & | value, | ||
Compare | comp = {} |
||
) |
Definition at line 135 of file ranges.hh.
Referenced by openmsx::MSXCPUInterface::checkBreakPoints(), openmsx::ImGuiDebugger::loadLine(), openmsx::MSXCPUInterface::removeBreakPoint(), and openmsx::ImGuiDebugger::showMenu().
|
constexpr |
Definition at line 315 of file ranges.hh.
Referenced by openmsx::AbstractIDEDevice::AbstractIDEDevice(), openmsx::Rom::addPadding(), openmsx::AY8910::AY8910(), openmsx::BlipBuffer::BlipBuffer(), openmsx::Sha1Sum::clear(), openmsx::V9990VRAM::clear(), openmsx::VDPVRAM::clear(), openmsx::Ram::clear(), strCatImpl::ConcatSpaces::copy(), openmsx::EmptyPatch::copyBlock(), PerfectMinimalHash::create(), openmsx::DirAsDSK::DirAsDSK(), openmsx::V9990SDLRasterizer::drawBorder(), openmsx::MemoryOps::fill_2(), openmsx::DiskImageUtils::format(), openmsx::SpriteChecker::frameStart(), openmsx::YM2413Burczynski::YM2413::generateChannels(), openmsx::HardwareConfig::HardwareConfig(), inplace_buffer< T, BUF_SIZE >::inplace_buffer(), openmsx::MSXCPU::invalidateAllSlotsRWCache(), openmsx::Keyboard::Keyboard(), openmsx::MB89352::MB89352(), openmsx::SRAM::memset(), openmsx::SoundDevice::mixChannels(), openmsx::MsxChar2Unicode::MsxChar2Unicode(), openmsx::MSXCPUInterface::MSXCPUInterface(), openmsx::MSXDeviceSwitch::MSXDeviceSwitch(), openmsx::MSXSCCPlusCart::MSXSCCPlusCart(), openmsx::NinjaTap::NinjaTap(), openmsx::OSDImageBasedWidget::OSDImageBasedWidget(), openmsx::Paper::Paper(), openmsx::SCC::powerUp(), openmsx::VLM5030::reset(), openmsx::YM2413Okazaki::Slot::reset(), openmsx::YM2413NukeYKT::YM2413::reset(), openmsx::YM2413OriginalNukeYKT::YM2413::reset(), openmsx::WD33C93::reset(), openmsx::Y8950::reset(), openmsx::MSXMemoryMapperBase::reset(), openmsx::RomHolyQuran2::reset(), openmsx::ROMHunterMk2::reset(), openmsx::RomNettouYakyuu::reset(), openmsx::RomPanasonic::reset(), openmsx::V9990::reset(), openmsx::FrameSource::scaleLine(), openmsx::SCC::SCC(), openmsx::SpriteChecker::serialize(), small_buffer< T, BUF_SIZE >::small_buffer(), openmsx::SoundDevice::SoundDevice(), openmsx::AbstractIDEDevice::startShortReadTransfer(), TEST_CASE(), openmsx::GLHQScaler::uploadBlock(), openmsx::WD33C93::WD33C93(), openmsx::ImagePrinter::write(), openmsx::YM2413OriginalNukeYKT::YM2413::writePort(), openmsx::YM2413Burczynski::YM2413::YM2413(), openmsx::YM2413Okazaki::YM2413::YM2413(), and openmsx::YMF278::YMF278().
auto ranges::find | ( | InputRange && | range, |
const T & | value | ||
) |
Definition at line 162 of file ranges.hh.
Referenced by openmsx::addRecentItem(), openmsx::MachineMediaInfo::execute(), openmsx::PluggingController::findConnector(), openmsx::MSXMotherBoard::findDevice(), openmsx::MSXMixer::findDeviceInfo(), openmsx::MSXMotherBoard::findExtension(), openmsx::ImGuiMedia::findExtensionInfo(), openmsx::SymbolManager::findFile(), openmsx::PluggingController::findPluggable(), openmsx::MSXCommandController::findSetting(), openmsx::UserSettings::findSetting(), openmsx::TTFFontPool::get(), openmsx::ResampleCoeffs::getCoeffs(), openmsx::DiskManipulator::getDrive(), openmsx::HDImageCLI::getImageForId(), openmsx::Reactor::getMachine(), openmsx::ImGuiSymbols::paint(), openmsx::Shortcuts::parseShortcutName(), openmsx::SymbolManager::parseSymbolOrValue(), openmsx::parseTclArgs(), openmsx::WavImageCache::release(), openmsx::SymbolManager::reloadFile(), openmsx::JoystickManager::remove(), openmsx::MSXCPUInterface::removeBreakPoint(), openmsx::MSXCPUInterface::removeCondition(), openmsx::SymbolManager::removeFile(), openmsx::MSXCPUInterface::removeWatchPoint(), openmsx::MSXCPUInterface::removeWatchPoint(), openmsx::ImGuiSettings::showMenu(), openmsx::ImGuiTools::showMenu(), openmsx::EventDelay::sync(), openmsx::EnumSettingBase::toStringBase(), openmsx::JoystickManager::translateSdlInstanceId(), and openmsx::ImGuiManager::unregisterPart().
auto ranges::find | ( | InputRange && | range, |
const T & | value, | ||
Proj | proj | ||
) |
auto ranges::find_if | ( | InputRange && | range, |
UnaryPredicate | pred | ||
) |
Definition at line 175 of file ranges.hh.
Referenced by openmsx::Display::addLayer(), find(), openmsx::Display::findActiveLayer(), openmsx::getOptionalDictValue(), openmsx::SymbolManager::parseSymbolOrValue(), openmsx::ReverseManager::stopReplay(), and openmsx::Display::updateZ().
void ranges::generate | ( | ForwardRange && | range, |
Generator && | g | ||
) |
|
constexpr |
Definition at line 322 of file ranges.hh.
Referenced by openmsx::ESE_SCC::ESE_SCC(), iota(), openmsx::Carnivore2::reset(), openmsx::KonamiUltimateCollection::reset(), openmsx::MegaFlashRomSCCPlus::reset(), openmsx::MegaFlashRomSCCPlusSD::reset(), openmsx::ReproCartridgeV1::reset(), openmsx::ReproCartridgeV2::reset(), and openmsx::RomAscii16X::reset().
|
constexpr |
bool ranges::is_sorted | ( | ForwardRange && | range, |
Compare | comp = {} , |
||
Proj | proj = {} |
||
) |
auto ranges::lower_bound | ( | ForwardRange && | range, |
const T & | value, | ||
Compare | comp = {} , |
||
Proj | proj = {} |
||
) |
Definition at line 117 of file ranges.hh.
Referenced by openmsx::IPSPatch::copyBlock(), openmsx::LastDeltaBlocks::createNew(), openmsx::LastDeltaBlocks::createNullDiff(), openmsx::ImGuiKey2SDL(), openmsx::SDLKey2ImGui(), openmsx::ImGuiDebugger::showMenu(), and openmsx::RawTrack::write().
|
constexpr |
Definition at line 212 of file ranges.hh.
Referenced by openmsx::MSXMultiMemDevice::canAdd(), and openmsx::ImGuiDiskManipulator::paint().
auto ranges::remove | ( | ForwardRange && | range, |
const T & | value | ||
) |
Definition at line 291 of file ranges.hh.
Referenced by openmsx::Subject< T >::notify().
auto ranges::remove_if | ( | ForwardRange && | range, |
UnaryPredicate | pred | ||
) |
|
constexpr |
Definition at line 303 of file ranges.hh.
Referenced by PerfectMinimalHash::create(), openmsx::ImGuiSettings::showMenu(), and openmsx::ImGuiTools::showMenu().
void ranges::replace_if | ( | ForwardRange && | range, |
UnaryPredicate | pred, | ||
const T & | new_value | ||
) |
auto ranges::set_difference | ( | InputRange1 && | range1, |
InputRange2 && | range2, | ||
OutputIter | out | ||
) |
|
constexpr |
|
constexpr |
Definition at line 51 of file ranges.hh.
Referenced by openmsx::CommandLineParser::CommandLineParser(), PerfectMinimalHash::create(), openmsx::EnumSettingBase::EnumSettingBase(), openmsx::getAllValuesFor(), openmsx::Reactor::getHwConfigs(), openmsx::ImGuiKey2SDL(), openmsx::ImGuiTrainer::paint(), openmsx::parseAllConfigFiles(), openmsx::SDLKey2ImGui(), openmsx::ImGuiDebugger::showMenu(), openmsx::ImGuiSettings::showMenu(), sort(), and test().
|
constexpr |
|
constexpr |
void ranges::stable_sort | ( | RAIter | first, |
RAIter | last, | ||
Compare | comp, | ||
Proj | proj | ||
) |
void ranges::stable_sort | ( | RandomAccessRange && | range | ) |
Definition at line 78 of file ranges.hh.
Referenced by openmsx::sortUpDown_String(), openmsx::sortUpDown_T(), and stable_sort().
void ranges::stable_sort | ( | RandomAccessRange && | range, |
Compare | comp | ||
) |
void ranges::stable_sort | ( | RandomAccessRange && | range, |
Compare | comp, | ||
Proj | proj | ||
) |
Definition at line 99 of file ranges.hh.
References stable_sort().
auto ranges::transform | ( | InputRange && | range, |
OutputIter | out, | ||
UnaryOperation | op | ||
) |
Definition at line 279 of file ranges.hh.
Referenced by openmsx::ImGuiBitmapViewer::paint(), openmsx::ImGuiCharacter::paint(), openmsx::ImGuiSpriteViewer::paint(), and openmsx::Wav16Writer::write().
auto ranges::unique | ( | ForwardRange && | range | ) |
Definition at line 224 of file ranges.hh.
Referenced by openmsx::Reactor::getHwConfigs(), and unique().
auto ranges::unique | ( | ForwardRange && | range, |
BinaryPredicate | pred | ||
) |
auto ranges::unique | ( | RAIter | first, |
RAIter | last, | ||
Compare | comp, | ||
Proj | proj | ||
) |
auto ranges::unique | ( | RandomAccessRange && | range, |
Compare | comp, | ||
Proj | proj | ||
) |
auto ranges::upper_bound | ( | ForwardRange && | range, |
const T & | value, | ||
Compare | comp = {} , |
||
Proj | proj = {} |
||
) |
Definition at line 126 of file ranges.hh.
Referenced by openmsx::IPSPatch::copyBlock(), openmsx::MSXCPUInterface::insertBreakPoint(), openmsx::EventDistributor::registerEventListener(), and openmsx::ConsoleLine::splitAtColumn().