#include <utility>
#include <vector>
#include <algorithm>
Go to the source code of this file.
Functions | |
template<class RandomAccessIterator , class Extractor > | |
void | precomputed_value_sort (RandomAccessIterator begin, RandomAccessIterator end, const Extractor &extr) |
template<class RandomAccessIterator , class Extractor , class BinaryPredicate > | |
void | precomputed_value_sort (RandomAccessIterator begin, RandomAccessIterator end, const Extractor &extr, const BinaryPredicate &pred) |
Sort using a BinaryPredicate. More... | |
Sort using precomputed values.
precomputed_value_sort behaves like std::sort, but pre-computes the values used in the sorting using an Extractor, so that the computation is performed only once per element.
Definition in file precomputed_value_sort.h.
void precomputed_value_sort | ( | RandomAccessIterator | begin, |
RandomAccessIterator | end, | ||
const Extractor & | extr | ||
) |
Definition at line 39 of file precomputed_value_sort.h.
References end, plotBeamSpotDB::first, i, and python.multivaluedict::sort().
Referenced by MagGeoBuilderFromDDD::bLayer::bLayer(), MagGeoBuilderFromDDD::bRod::bRod(), MagGeoBuilderFromDDD::bSector::bSector(), MagGeoBuilderFromDDD::bSlab::bSlab(), MagGeoBuilderFromDDD::build(), MuonGEMDetLayerGeometryBuilder::buildLayer(), MuonRPCDetLayerGeometryBuilder::buildLayer(), MuonDTDetLayerGeometryBuilder::buildLayers(), MagGeoBuilderFromDDD::eLayer::eLayer(), MagGeoBuilderFromDDD::eSector::eSector(), ForwardDetRingOneZ::initialize(), DetRodOneR::initialize(), MuonRPCDetLayerGeometryBuilder::makeBarrelLayers(), MuonRPCDetLayerGeometryBuilder::makeBarrelRods(), MuonCSCDetLayerGeometryBuilder::makeDetRing(), MuonGEMDetLayerGeometryBuilder::makeDetRing(), MuRodBarrelLayer::MuRodBarrelLayer(), PhiBorderFinder::PhiBorderFinder(), RBorderFinder::RBorderFinder(), MuonDetLayerGeometry::sortLayers(), InOutConversionTrackFinder::tracks(), and OutInConversionTrackFinder::tracks().
void precomputed_value_sort | ( | RandomAccessIterator | begin, |
RandomAccessIterator | end, | ||
const Extractor & | extr, | ||
const BinaryPredicate & | pred | ||
) |
Sort using a BinaryPredicate.
Definition at line 69 of file precomputed_value_sort.h.
References end, plotBeamSpotDB::first, i, and python.multivaluedict::sort().