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 > | |
void | sort (RAIter first, RAIter last, Compare comp, Proj proj) |
template<typename RandomAccessRange , typename Compare = std::less<>, typename Proj > | |
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 > | |
bool | all_of (InputRange &&range, UnaryPredicate pred) |
template<typename InputRange , typename UnaryPredicate > | |
bool | any_of (InputRange &&range, UnaryPredicate pred) |
template<typename InputRange , typename UnaryPredicate > | |
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>) | |
auto | copy (InputRange &&range, OutputIter out) |
template<sized_range Input, sized_range Output> | |
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> | |
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> | |
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 380 of file ranges.hh.
Referenced by openmsx::OSDImageBasedWidget::hasConstantAlpha().
bool ranges::all_of | ( | InputRange && | range, |
UnaryPredicate | pred | ||
) |
Definition at line 186 of file ranges.hh.
References all_of(), begin(), and end().
Referenced by all_of(), IterableBitSet< N >::empty(), openmsx::Sha1Sum::empty(), openmsx::BlipBuffer::readSamples(), and openmsx::MSXDeviceSwitch::~MSXDeviceSwitch().
bool ranges::any_of | ( | InputRange && | range, |
UnaryPredicate | pred | ||
) |
Definition at line 192 of file ranges.hh.
References any_of(), begin(), and end().
Referenced by any_of(), openmsx::SoundDevice::mixChannels(), and openmsx::MSXMixer::needStereoRecording().
bool ranges::binary_search | ( | ForwardRange && | range, |
const T & | value | ||
) |
Definition at line 103 of file ranges.hh.
References begin(), binary_search(), and end().
Referenced by openmsx::OggReader::stopFrame().
bool ranges::binary_search | ( | ForwardRange && | range, |
const T & | value, | ||
Compare | comp | ||
) |
Definition at line 109 of file ranges.hh.
References begin(), binary_search(), openmsx::comp(), and end().
Referenced by binary_search().
auto ranges::copy | ( | Input && | in, |
Output && | out | ||
) |
auto ranges::copy | ( | InputRange && | range, |
OutputIter | out | ||
) |
Definition at line 232 of file ranges.hh.
References begin(), copy(), and end().
Referenced by openmsx::Rom::addPadding(), allocate_c_string(), openmsx::XMLDocument::allocateString(), openmsx::DeltaBlockCopy::apply(), openmsx::VDPVRAM::change4k8kMapping(), strCatImpl::ConcatViaString::copy(), strCatImpl::ConcatUnit< std::string_view >::copy(), strCatImpl::ConcatIntegral< T >::copy(), openmsx::EmptyPatch::copyBlock(), openmsx::IPSPatch::copyBlock(), openmsx::DeltaBlockCopy::DeltaBlockCopy(), openmsx::SDLRasterizer< Pixel >::drawDisplay(), Base64::encode(), openmsx::SuperImposeScalerOutput< Pixel >::fillLine(), openmsx::SettingsManager::findSetting(), openmsx::YM2413NukeYKT::YM2413::generateChannels(), openmsx::YM2413OriginalNukeYKT::YM2413::generateChannels(), make_string_storage(), openmsx::Scale_1on1< Pixel >::operator()(), view::detail::TransformIterator< Iterator, UnaryOp >::operator++(), XRange< T >::Iter::operator++(), view::detail::TransformIterator< Iterator, UnaryOp >::operator--(), XRange< T >::Iter::operator--(), openmsx::SDLSnow< Pixel >::paint(), openmsx::CompressedFileAdapter::read(), openmsx::MemoryBufferFile::read(), openmsx::SchedulerQueue< T >::remove(), openmsx::MemOutputArchive::save(), openmsx::Scaler1< Pixel >::scale1x1to1x1(), openmsx::Scaler2< Pixel >::scale1x1to1x1(), openmsx::Scaler2< Pixel >::scale1x1to1x2(), openmsx::FrameSource::scaleLine(), openmsx::NowindHost::serialize(), openmsx::MemOutputArchive::serialize_blob(), openmsx::MemInputArchive::serialize_blob(), StringOp::split_view(), openmsx::DBParser::stop(), openmsx::TC8566AF::TC8566AF(), TEST_CASE(), openmsx::tiger(), openmsx::SHA1::update(), openmsx::SDLSoundDriver::uploadBuffer(), openmsx::YM2413NukeYKT::YM2413::YM2413(), openmsx::AviWriter::~AviWriter(), openmsx::Scheduler::~Scheduler(), and openmsx::Subject< T >::~Subject().
auto ranges::copy_if | ( | InputRange && | range, |
OutputIter | out, | ||
UnaryPredicate | pred | ||
) |
auto ranges::count | ( | InputRange && | range, |
const T & | value | ||
) |
auto ranges::count_if | ( | InputRange && | range, |
UnaryPredicate | pred | ||
) |
Definition at line 327 of file ranges.hh.
References begin(), count_if(), and end().
Referenced by count_if().
bool ranges::equal | ( | InputRange1 && | range1, |
InputRange2 && | range2, | ||
Pred | pred = {} , |
||
Proj1 | proj1 = {} , |
||
Proj2 | proj2 = {} |
||
) |
Definition at line 343 of file ranges.hh.
Referenced by openmsx::DeltaBlockCopy::compress(), openmsx::DeltaBlockDiff::DeltaBlockDiff(), openmsx::OggReader::OggReader(), and TEST_CASE().
bool ranges::equal | ( | SizedRange1 && | range1, |
SizedRange2 && | range2, | ||
Pred | pred = {} , |
||
Proj1 | proj1 = {} , |
||
Proj2 | proj2 = {} |
||
) |
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 133 of file ranges.hh.
Referenced by openmsx::MSXCPUInterface::checkBreakPoints(), and openmsx::MSXCPUInterface::removeBreakPoint().
|
constexpr |
Definition at line 287 of file ranges.hh.
References begin(), end(), and fill().
Referenced by openmsx::AbstractIDEDevice::AbstractIDEDevice(), openmsx::Rom::addPadding(), openmsx::BlipBuffer::BlipBuffer(), openmsx::Sha1Sum::clear(), openmsx::V9990VRAM::clear(), openmsx::VDPVRAM::clear(), strCatImpl::ConcatSpaces::copy(), openmsx::EmptyPatch::copyBlock(), openmsx::DirAsDSK::DirAsDSK(), fill(), openmsx::DiskImageUtils::format(), openmsx::SpriteChecker::frameStart(), openmsx::YM2413Burczynski::YM2413::generateChannels(), hash_set< Value, Extractor, Hasher, Equal >::grow(), openmsx::HardwareConfig::HardwareConfig(), 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(), hash_set< Value, Extractor, Hasher, Equal >::reserve(), 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::SCC::SCC(), openmsx::SDLOffScreenSurface::SDLOffScreenSurface(), openmsx::SpriteChecker::serialize(), openmsx::SoundDevice::SoundDevice(), openmsx::AbstractIDEDevice::startShortReadTransfer(), TEST_CASE(), openmsx::GLHQLiteScaler::uploadBlock(), openmsx::GLHQScaler::uploadBlock(), openmsx::WD33C93::WD33C93(), openmsx::ImagePrinter::write(), openmsx::YM2413OriginalNukeYKT::YM2413::writePort(), openmsx::Wav16Writer::writeSilence(), openmsx::YM2413Burczynski::YM2413::YM2413(), openmsx::YM2413Okazaki::YM2413::YM2413(), and openmsx::YMF278::YMF278().
auto ranges::find | ( | InputRange && | range, |
const T & | value | ||
) |
Definition at line 160 of file ranges.hh.
References begin(), end(), and find().
Referenced by openmsx::MachineMediaInfo::execute(), openmsx::PluggingController::findConnector(), openmsx::MSXMotherBoard::findDevice(), openmsx::MSXMixer::findDevice(), openmsx::MSXMotherBoard::findExtension(), openmsx::PluggingController::findPluggable(), openmsx::UserSettings::findSetting(), openmsx::TTFFontPool::get(), openmsx::ResampleCoeffs::getCoeffs(), openmsx::HDImageCLI::getImageForId(), openmsx::parseTclArgs(), openmsx::WavImageCache::release(), openmsx::MSXCPUInterface::removeWatchPoint(), openmsx::EventDelay::sync(), and openmsx::EnumSettingBase::toStringBase().
auto ranges::find | ( | InputRange && | range, |
const T & | value, | ||
Proj | proj | ||
) |
auto ranges::find_if | ( | InputRange && | range, |
UnaryPredicate | pred | ||
) |
Definition at line 173 of file ranges.hh.
References begin(), and end().
Referenced by openmsx::Display::addLayer(), find(), openmsx::Display::findActiveLayer(), partition_copy_remove(), openmsx::SchedulerQueue< T >::remove(), and openmsx::ReverseManager::stopReplay().
void ranges::generate | ( | ForwardRange && | range, |
Generator && | g | ||
) |
Definition at line 257 of file ranges.hh.
References begin(), end(), g, and generate().
Referenced by generate(), and openmsx::GLSnow::GLSnow().
|
constexpr |
Definition at line 294 of file ranges.hh.
Referenced by openmsx::ESE_SCC::ESE_SCC(), openmsx::Carnivore2::reset(), openmsx::KonamiUltimateCollection::reset(), openmsx::MegaFlashRomSCCPlus::reset(), openmsx::MegaFlashRomSCCPlusSD::reset(), openmsx::ReproCartridgeV1::reset(), and openmsx::ReproCartridgeV2::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 115 of file ranges.hh.
Referenced by openmsx::IPSPatch::copyBlock(), openmsx::LastDeltaBlocks::createNew(), openmsx::LastDeltaBlocks::createNullDiff(), and openmsx::RawTrack::write().
bool ranges::none_of | ( | InputRange && | range, |
UnaryPredicate | pred | ||
) |
auto ranges::remove | ( | ForwardRange && | range, |
const T & | value | ||
) |
auto ranges::remove_if | ( | ForwardRange && | range, |
UnaryPredicate | pred | ||
) |
Definition at line 269 of file ranges.hh.
References begin(), end(), and remove_if().
Referenced by openmsx::SchedulerQueue< T >::remove_all(), and remove_if().
|
constexpr |
void ranges::replace_if | ( | ForwardRange && | range, |
UnaryPredicate | pred, | ||
const T & | new_value | ||
) |
Definition at line 281 of file ranges.hh.
References begin(), end(), and replace_if().
Referenced by replace_if().
auto ranges::set_difference | ( | InputRange1 && | range1, |
InputRange2 && | range2, | ||
OutputIter | out | ||
) |
Definition at line 333 of file ranges.hh.
References begin(), end(), and set_difference().
Referenced by set_difference().
void ranges::sort | ( | RAIter | first, |
RAIter | last, | ||
Compare | comp, | ||
Proj | proj | ||
) |
|
constexpr |
Definition at line 49 of file ranges.hh.
References begin(), end(), and sort().
Referenced by openmsx::CommandLineParser::CommandLineParser(), openmsx::EnumSettingBase::EnumSettingBase(), openmsx::Reactor::getHwConfigs(), sort(), and test().
|
constexpr |
void ranges::sort | ( | RandomAccessRange && | range, |
Compare | comp, | ||
Proj | proj | ||
) |
void ranges::stable_sort | ( | RAIter | first, |
RAIter | last, | ||
Compare | comp, | ||
Proj | proj | ||
) |
Definition at line 88 of file ranges.hh.
References stable_sort().
void ranges::stable_sort | ( | RandomAccessRange && | range | ) |
Definition at line 76 of file ranges.hh.
References begin(), end(), and stable_sort().
Referenced by stable_sort().
void ranges::stable_sort | ( | RandomAccessRange && | range, |
Compare | comp | ||
) |
Definition at line 82 of file ranges.hh.
References begin(), openmsx::comp(), end(), and stable_sort().
void ranges::stable_sort | ( | RandomAccessRange && | range, |
Compare | comp, | ||
Proj | proj | ||
) |
Definition at line 97 of file ranges.hh.
References begin(), openmsx::comp(), end(), and stable_sort().
Referenced by stable_sort().
auto ranges::transform | ( | InputRange && | range, |
OutputIter | out, | ||
UnaryOperation | op | ||
) |
Definition at line 251 of file ranges.hh.
References begin(), end(), and transform().
Referenced by transform(), transform_in_place(), and openmsx::Wav16Writer::write().
auto ranges::unique | ( | ForwardRange && | range | ) |
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 124 of file ranges.hh.
Referenced by openmsx::IPSPatch::copyBlock(), openmsx::MSXCPUInterface::insertBreakPoint(), and openmsx::EventDistributor::registerEventListener().