LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
Functions | |
template<typename U > | |
static std::string | util::details::ToStringImpl< T, typename >::to_string (U &&obj) |
template<typename U > | |
static std::string | util::details::ToStringImpl< T, std::enable_if_t< util::is_basic_string_type_v< T > > >::to_string (U &&obj) |
template<typename U > | |
static std::string | util::details::ToStringImpl< T, std::enable_if_t< util::is_basic_string_view_type_v< T > > >::to_string (U &&obj) |
C++ standard library customization for user-defined classes. | |
template<typename T > | |
decltype(auto) constexpr | util::to_string (T &&obj) |
ADL-aware version of std::to_string . More... | |
template<typename T > | |
decltype(auto) constexpr | util::begin (T &&obj) |
ADL-aware version of std::begin . More... | |
template<typename T > | |
decltype(auto) constexpr | util::end (T &&obj) |
ADL-aware version of std::end . More... | |
template<typename T > | |
decltype(auto) constexpr | util::cbegin (T &&obj) |
ADL-aware version of std::cbegin . More... | |
template<typename T > | |
decltype(auto) constexpr | util::cend (T &&obj) |
ADL-aware version of std::cend . More... | |
template<typename T > | |
decltype(auto) constexpr | util::size (T &&obj) |
ADL-aware version of std::size . More... | |
template<typename T > | |
decltype(auto) constexpr | util::empty (T &&obj) |
ADL-aware version of std::empty . More... | |
template<std::size_t I, typename T > | |
decltype(auto) | util::get (T &&obj) |
ADL-aware version of std::to_string . More... | |
There are a number of functions that are provided by C++ standard library for the data types and classes defined in the standard. It is often desirable to have your class react to these standard functions in a standard way, for example for a container to react to std::begin()
to return its begin()
iterator. While sometimes this is easy (for example std::begin()
calls begin()
member function if available), some other times that is not possible. In that case, since overloading of functions in the std
namespace is not allowed by C++, the usual pattern is to rely on the argument-dependent lookup (known as "ADL") to have the comnpiler find the overloaded function that is defined in the same namespace as any of the arguments. For example:
will look in the namespace where the type of obj
is defined (that is userns
) for a userns::to_string
, then will consider std::to_string
it self.
The utilities provided here provide a transparent way to do that, at the cost of a new header and some non-standard call. The equivalent call of the above would be:
std::hash
or std::numeric_limits
, specialization of classes in std
is allowed by the standard, so no particular trick is required. decltype(auto) constexpr util::begin | ( | T && | obj | ) |
ADL-aware version of std::begin
.
Definition at line 69 of file StdUtils.h.
Referenced by lar::util::StatCollector< T, W >::add_unweighted(), lar::util::StatCollector2D< T, W >::add_unweighted(), lar::util::StatCollector< T, W >::add_weighted(), lar::util::StatCollector2D< T, W >::add_weighted(), lar::util::details::FitDataCollector< T, D >::add_with_uncertainty(), lar::util::GaussianFit< T >::add_with_uncertainty(), lar::util::details::FitDataCollector< T, D >::add_without_uncertainty(), lar::util::GaussianFit< T >::add_without_uncertainty(), art::detail::CanBeAggregated< std::array< T, N > >::aggregate(), lar_dl_content::DlTrackShowerStreamSelectionAlgorithm::AllocateToStreams(), nnet::RawWaveformClnSigDump::analyze(), lcvn::Result::ArgMax(), proxy::details::associationRangeBoundaries(), proxy::details::associationRanges(), fhicl::intermediate_table::begin(), shims::map< Key, T, Compare, Allocator >::begin(), lar::sparse_vector< T >::begin(), lar::sparse_vector< T >::const_datarange_t::begin(), evgen::FileMuons::beginJob(), pmtana::BinnedMaxOccurrence(), pmtana::BinnedMaxTH1D(), lar::sparse_vector< float >::capacity(), lar::sparse_vector< float >::cbegin(), color(), geoalgo::Trajectory::compat(), fhicl::detail::concatenate_keys(), evwgh::GenieWeightCalc::Configure(), lar_content::LArGraph::ConnectRegions(), art::detail::consumed_products_for_module(), ShowerRecoTools::ShowerIncrementalTrackHitFinder::CreateFakeShowerTrajectory(), lar_content::TrackParticleBuildingAlgorithm::CreatePfo(), art::detail::SharedResources::createQueues(), pmtana::PMTPulseRecoBase::Derivative(), lar_dl_content::DlPfoCharacterisationAlgorithm::DlPfoCharacterisationAlgorithm(), trkf::TrackKalmanFitter::doFitWork(), mf::service::ELdestination::ELdestination(), util::span< BIter, EIter >::empty(), art::HLTGlobalStatus::error(), util::UniqueRangeSet< T >::Exclusive(), util::LazyVector< T, A >::expand_front(), fhicl::ParameterSetRegistry::exportTo(), util::details::RangeForWrapperTraits< RangeRef >::extractBegin(), nutools::dbi::Table::FillChanRowMap(), art::for_each_group_with_left(), art::MixHelper::generateEventSequence(), util::span_base::get_begin(), lar::sparse_vector< T >::datarange_t::get_const_iterator(), util::details::FilterRangeForStruct< Range, Pred >::getBegin(), util::details::collection_value_access_type_impl< std::remove_reference_t< Ptr::pointer > >::getBegin(), lar_dl_content::DlVertexingAlgorithm::GetHitRegion(), lar_content::CosmicRayTaggingTool::GetPfoAssociations(), quad::GetPts2D(), lar_content::OverlapMatrix< T >::GetSortedKeyClusters(), lar_content::OverlapTensor< T >::GetSortedKeyClusters(), lar_content::OverlapMatrix< T >::GetUnambiguousElements(), lar_content::OverlapTensor< T >::GetUnambiguousElements(), evwgh::Weight_t::GetWeight(), cluster::ClusterParamsImportWrapper< Algo >::ImportHits(), util::details::GridContainerIndicesBase< DIMS >::index(), art::TriggerNamesService::index_(), vertex::PrimaryVertexFinder::IndexInVertexCollection(), lar::deep_const_fwd_iterator_nested< ITER, INNERCONTEXTRACT >::init_inner(), geo::part::SortedPartition< Data, Sorter >::initParts(), art::InputTagListSelector::InputTagListSelector(), pmtana::PMTPulseRecoBase::Integral(), art::RangeSet::invalidChecksum(), lar_dl_content::DlPfoCharacterisationAlgorithm::IsClearTrack(), lar_dl_content::DlClusterCharacterisationAlgorithm::IsClearTrack(), vertex::PrimaryVertexFinder::IsInVertexCollection(), util::details::PointerVectorMaker< Coll, typename >::make(), util::details::make_zip_begin_iterator(), proxy::makeAssociatedData(), cosmic::HitTagAssociatorAlg::MakeHitTagAssociations(), lar_dl_content::DlVertexingAlgorithm::MakeNetworkInputFromHits(), trkf::SpacePointAlg::makeSpacePoints(), lar_dl_content::DlVertexingAlgorithm::MakeWirePlaneCoordinatesFromCanvas(), lar_content::LArHierarchyHelper::MatchInfo::Match(), cluster::ClusterMatchTQ::MatchedClusters(), art::detail::ProcessAndEventSelectors::matchEvent(), pmtana::PMTPulseRecoBase::Max(), lar::details::bulk_allocator::BulkAllocatorBase< T >::MemoryChunk_t::MemoryChunk_t(), sim::MergeSimSourcesUtility::MergeAuxDetHits(), sim::MergeSimSourcesUtility::MergeSimEnergyDeposits(), pmtana::PMTPulseRecoBase::Min(), lar::util::MinMaxCollector< float >::MinMaxCollector(), sim::SimPhotons::operator+=(), lar::details::bulk_allocator::BulkAllocatorBase< T >::MemoryChunk_t::operator=(), lar::CountersMap< KEY, COUNTER, SIZE, ALLOC, SUBCOUNTERS >::operator[](), art::detail::orderedProcessNamesCollection(), lar_content::StitchingCosmicRayMergingTool::OrderPfoMerges(), art::Provenance::parameterSet(), fhicl::parse_value_string(), art::detail::path_specs(), art::PathsInfo::pathNames(), rndm::details::policyFromName(), triton_utils::printColl(), cosmic::CosmicPFParticleTagger::produce(), vertex::PrimaryVertexFinder::produce(), cluster::DBCluster3D::produce(), vertex::VertexFinder2D::produce(), NuGraphInference::produce(), trkf::CosmicTracker::produce(), art::detail::prune_config_if_enabled(), sim::MCWireCollection::push_back(), sim::MCHitCollection::push_back(), lar_content::DiscreteProbabilityVector::RandomiseDiscreteProbabilityData(), tca::Reconcile3D(), pmtana::AlgoCFD::RecoPulse(), lar_content::OverlapMatrix< T >::RemoveCluster(), lar_content::OverlapTensor< T >::RemoveCluster(), art::HLTGlobalStatus::reset(), util::LazyVector< T, A >::resize(), art::ProductRetriever::retrievedPIDs(), PointIdAlgTools::PointIdAlgTriton::Run(), util::flags::BitMask< Storage >::set(), util::span< BIter, EIter >::size(), util::details::RangeForWrapperBox< RangeRef >::size(), lar::details::bulk_allocator::BulkAllocatorBase< T >::MemoryChunk_t::size(), lar::details::iteratorRange< BITER, EITER >::size(), art::ConsumesCollector::sortConsumables(), trkf::CCTrackMaker::SortMatches(), fhicl::ParameterSetRegistry::stageIn(), util::UniqueRangeSet< T >::Start(), pma::PMAlgCosmicTagger::tagApparentStopper(), tca::TagShowerLike(), opdet::SimPhotonCounter::TotalPhotonVector(), trkf::CosmicTrackerAlg::Track3D(), trkf::TrackTrajectoryAlg::TrackTrajectory(), trkf::CosmicTrackerAlg::TrackTrajectory(), lar::details::bulk_allocator::BulkAllocatorBase< T >::MemoryChunk_t::used(), art::detail::verify_in_order_dependencies(), and art::HLTGlobalStatus::wasrun().
decltype(auto) constexpr util::cbegin | ( | T && | obj | ) |
ADL-aware version of std::cbegin
.
Definition at line 85 of file StdUtils.h.
Referenced by art::PostCloseFileRenamer::applySubstitutionsNoIndex_(), lar::CollectionView< BoundaryListRangeBase< BoundaryIter > >::begin(), util::MappedContainer< phot::IPhotonLibrary::Functions_t, Mapping >::begin(), lar::CollectionView< BoundaryListRangeBase< BoundaryIter > >::cbegin(), art::detail::componentsFromPattern(), art::detail::SharedModule::createQueues(), lar::CollectionView< BoundaryListRangeBase< BoundaryIter > >::crend(), detectGlobalDriftDir(), art::InputTagListSelector::doMatch(), lar::CollectionView< BoundaryListRangeBase< BoundaryIter > >::empty(), art::Assns< L, R, void >::fill_transients(), art::PathManager::fillModuleOnlyDeps_(), lar::CollectionView< BoundaryListRangeBase< BoundaryIter > >::front(), art::MixHelper::generateEventSequence(), util::span_base::get_cbegin(), lar::details::RangeTraits< Range >::getCBegin(), util::details::collection_value_constant_access_type_impl< std::remove_reference_t< Ptr::pointer > >::getCBegin(), art::detail::make_path_ordering_edges(), lar::details::makeCollectionExtremes(), proxy::makeOneTo01data(), makePartition(), art::detail::ModuleGraphInfoMap::ModuleGraphInfoMap(), art::detail::IPRHelper< ProdA, ProdB, Data, DATACOLL, EVENT >::operator()(), art::detail::FileNameComponents::operator<(), lar::CollectionView< BoundaryListRangeBase< BoundaryIter > >::operator[](), art::detail::path_specs(), lar::dump::details::ptr_cbegin(), art::ProductRetriever::recordAsParent_(), lar::CollectionView< BoundaryListRangeBase< BoundaryIter > >::size(), and art::detail::verify_in_order_dependencies().
decltype(auto) constexpr util::cend | ( | T && | obj | ) |
ADL-aware version of std::cend
.
Definition at line 93 of file StdUtils.h.
Referenced by artg4tk::DetectorHolderService::addDBtoCategoryMap(), art::PostCloseFileRenamer::applySubstitutionsNoIndex_(), lar::CollectionView< BoundaryListRangeBase< BoundaryIter > >::cend(), art::FileCatalogMetadata::InheritedMetadata::check_values(), art::detail::componentsFromPattern(), art::detail::consumed_products_for_module(), lar::CollectionView< BoundaryListRangeBase< BoundaryIter > >::crbegin(), art::detail::SharedModule::createQueues(), art::ProductTable::description(), detectGlobalDriftDir(), art::InputTagListSelector::doMatch(), lar::CollectionView< BoundaryListRangeBase< BoundaryIter > >::empty(), lar::CollectionView< BoundaryListRangeBase< BoundaryIter > >::end(), util::MappedContainer< phot::IPhotonLibrary::Functions_t, Mapping >::end(), art::Assns< L, R, void >::fill_transients(), art::Principal::fillGroup(), art::PathManager::fillModuleOnlyDeps_(), geo::part::SortedPartition< Data, Sorter >::findPartWithKey(), art::MixHelper::generateEventSequence(), fhicl::PrinterForTypes< Args >::get_(), util::span_base::get_cend(), cluster::HoughTransformCounters< KEY, COUNTER, SIZE, ALLOC, SUBCOUNTERS >::get_max(), lar::details::RangeTraits< Range >::getCEnd(), art::PathManager::getModuleGraphInfoCollection_(), art::ServicesManager::isAvailable(), art::detail::make_path_ordering_edges(), lar::details::makeCollectionExtremes(), proxy::makeOneTo01data(), makePartition(), art::MixHelper::mixAndPut(), art::detail::ModuleGraphInfoMap::ModuleGraphInfoMap(), art::PtrRemapper::newRefCore_(), art::detail::IPRHelper< ProdA, ProdB, Data, DATACOLL, EVENT >::operator()(), art::detail::FileNameComponents::operator<(), art::detail::path_specs(), art::TriggerNamesService::pathResults(), larg4::ParticleListActionService::preUserTrackingAction(), art::detail::prune_config_if_enabled(), art::ProductRetriever::recordAsParent_(), lar::CollectionView< BoundaryListRangeBase< BoundaryIter > >::size(), and art::detail::verify_in_order_dependencies().
decltype(auto) constexpr util::empty | ( | T && | obj | ) |
ADL-aware version of std::empty
.
Definition at line 109 of file StdUtils.h.
Referenced by art::HLTGlobalStatus::accept(), testing::BasicEnvironmentConfiguration::AddDefaultTesterConfiguration(), shower::TCShowerTemplateMaker::analyze(), pfpf::PFPAna::analyze(), cluster::ClusterTrackAna::analyze(), evd::details::RawDigitCacheDataClass::CheckUpToDate(), raw::CompressFibonacci(), rndm::details::RangeCheckHelper< SEED >::configure(), larg4::ParticleListActionService::CreateParticleFilter(), larg4::LArG4::CreateParticleVolumeFilter(), art::detail::SharedModule::createQueues(), art::detail::SharedResources::createQueues(), larg4::CustomPhysicsFactoryBase::CustomPhysicsFactoryBase(), fhicl::ParameterSet::descend_(), art::BasicOutputOptionsHandler::doProcessOptions(), fhicl::intermediate_table::empty(), fhicl::detail::fhicl_get_impl(), raw::fibonacci_encode_table(), nutools::dbi::Table::FillChanRowMap(), cluster::SmallClusterFilter::filter(), lar_cluster3d::MinSpanTreeAlg::FindBestPathInCluster(), lar_cluster3d::MSTPathFinder::FindBestPathInCluster(), shower::EMShowerAlg::FinddEdx_(), cluster::ClusterCrawlerAlg::FindVertices(), quad::QuadVtx::FindVtx(), pma::PMAlgTracker::fromMaxCluster_tpc(), util::PxHitConverter::GeneratePxHit(), if(), larg4::IonAndScint::inputCollections(), larg4::larg4Main::inputCollections(), art::RangeSet::invalidChecksum(), lar_cluster3d::ClusterParamsBuilder::keepThisCluster(), pma::PMAlgTracker::listUsedClusters(), lar_cluster3d::Cluster3D::ArtOutputHandler::makeEdgePtr(), lar_cluster3d::Cluster3D::ArtOutputHandler::makeSpacePointPtr(), trkf::SpacePointAlg::makeSpacePoints(), trkf::Track3DKalmanHitAlg::makeTracks(), pma::PMAlgTracker::matchCluster(), art::detail::ProcessAndEventSelectors::matchEvent(), cheat::ParticleInventory::MCTruthListReady(), tca::MergeTjList(), art::PathManager::moduleInformation_(), art::Observer::Observer(), evdb::ParameterSetEditRow::ParameterSetEditRow(), fhicl::ParameterSetID::ParameterSetID(), art::detail::path_specs(), art::detail::print_module_types(), art::detail::print_path_names(), testing::NameSelector::PrintConfiguration(), shower::TCShower::produce(), larg4::IonAndScint::produce(), NuGraphInference::produce(), larg4::LArG4::produce(), art::detail::prune_config_if_enabled(), art::BranchDescription::psetID(), sim::MCWireCollection::push_back(), sim::MCHitCollection::push_back(), ems::EMShower3D::Reoptimize(), art::detail::ExceptionCollector::rethrow(), lar_content::VisualParticleMonitoringAlgorithm::Run(), evwgh::WeightManager::Run(), anab::FVectorWriter< N >::saveOutputs(), util::GeometryUtilities::SelectPolygonHitList(), art::detail::sequence_to_entries(), testing::BasicEnvironmentConfiguration::SetMainTesterParameterSetPath(), trkf::CosmicTrackerAlg::Track3D(), DUNE::NeutrinoShowerEff::truthMatcher(), evdb::ParameterSetEditRow::UnpackParameter(), trkf::KalmanFilterAlg::updateMomentum(), cluster::ClusterCrawlerAlg::Vtx3ClusterMatch(), cluster::ClusterCrawlerAlg::Vtx3ClusterSplit(), and art::detail::MessageAccumulator::~MessageAccumulator().
decltype(auto) constexpr util::end | ( | T && | obj | ) |
ADL-aware version of std::end
.
Definition at line 77 of file StdUtils.h.
Referenced by lar::util::StatCollector< T, W >::add_unweighted(), lar::util::StatCollector2D< T, W >::add_unweighted(), lar::util::StatCollector< T, W >::add_weighted(), lar::util::StatCollector2D< T, W >::add_weighted(), lar::util::details::FitDataCollector< T, D >::add_with_uncertainty(), lar::util::GaussianFit< T >::add_with_uncertainty(), lar::util::details::FitDataCollector< T, D >::add_without_uncertainty(), lar::util::GaussianFit< T >::add_without_uncertainty(), lar_dl_content::DlTrackShowerStreamSelectionAlgorithm::AllocateToStreams(), nnet::RawWaveformClnSigDump::analyze(), lcvn::Result::ArgMax(), proxy::details::associationOneToOneFullSequence(), proxy::details::associationRangeBoundaries(), proxy::details::associationRanges(), proxy::details::associationRangesImpl(), tca::AttachAnyTrajToVertex(), tca::AttachAnyVertexToTraj(), tca::AttachToAnyVertex(), tca::AttachTrajToVertex(), pma::Track3D::AutoFlip(), evgen::FileMuons::beginJob(), pmtana::BinnedMaxOccurrence(), pmtana::BinnedMaxTH1D(), tss::Segmentation2D::buildSegment(), ShowerRecoTools::ShowerLinearEnergy::CalculateElement(), ShowerRecoTools::ShowerNumElectronsEnergy::CalculateElement(), lar::sparse_vector< float >::capacity(), lar::sparse_vector< float >::cend(), pmtana::CheckIndex(), checkLoadability(), tca::CheckTrajBeginChg(), tca::TrajClusterAlg::ChkInTraj(), tca::ChkStop(), tca::ChkVtxAssociations(), color(), lar::sparse_vector< T >::combine_range(), tca::CompatibleMerge(), tca::CompleteIncomplete3DVertices(), tca::CompleteIncomplete3DVerticesInGaps(), tca::CompleteIncompleteShower(), raw::CompressFibonacci(), fhicl::detail::concatenate_keys(), evwgh::GenieWeightCalc::Configure(), lar_content::LArGraph::ConnectRegions(), shower::EMShowerAlg::ConstructTrack(), util::counter(), evwgh::WeightCalcFactory::Create(), ShowerRecoTools::ShowerIncrementalTrackHitFinder::CreateFakeShowerTrajectory(), hit::HitAnaModule::createMCAssocVector(), art::detail::SharedResources::createQueues(), tca::DefineTjParents(), fhicl::detail::ValidateThenSet::delegated_parameter(), pmtana::PMTPulseRecoBase::Derivative(), lar_dl_content::DlPfoCharacterisationAlgorithm::DlPfoCharacterisationAlgorithm(), trkf::TrackKalmanFitter::doFitWork(), art::OutputModule::doSelectProducts(), tca::DotProd(), pmtana::edge_aware_mean(), mf::service::ELdestination::ELdestination(), util::UniqueRangeSet< T >::emplace(), util::span< BIter, EIter >::empty(), lariov::Snapshot< lariov::PmtGain >::End(), fhicl::intermediate_table::end(), shims::map< Key, T, Compare, Allocator >::end(), lar::sparse_vector< T >::end(), lar::sparse_vector< T >::const_datarange_t::end(), art::HLTGlobalStatus::error(), art::EventProcessor::EventProcessor(), util::UniqueRangeSet< T >::Exclusive(), fhicl::ParameterSetRegistry::exportTo(), util::details::RangeForWrapperTraits< RangeRef >::extractEnd(), raw::fibonacci_encode_table(), trkf::CCTrackMaker::FillChgNear(), tca::FilldEdx(), art::PathManager::fillModuleOnlyDeps_(), trkf::CCTrackMaker::FindMaybeVertices(), trkf::CCTrackMaker::FindMissingCluster(), tca::Finish3DShowers(), trkf::CCTrackMaker::FitVertices(), cluster::ClusterCrawlerAlg::FixMultipletLocalIndices(), for(), art::MixHelper::generateEventSequence(), lar::details::bulk_allocator::BulkAllocatorBase< T >::MemoryChunk_t::get(), util::GeometryUtilities::Get2DangleFrom3D(), util::span_base::get_end(), cluster::HoughTransformCounters< KEY, COUNTER, SIZE, ALLOC, SUBCOUNTERS >::get_max(), tca::GetAssns(), util::details::FilterRangeForStruct< Range, Pred >::getEnd(), larg4::ParticleListAction::GetPrimaryTruthIndex(), quad::GetPts2D(), cheat::PhotonBackTracker::GetSetOfTrackIDs(), cheat::BackTracker::GetSetOfTrackIds(), lar_content::OverlapMatrix< T >::GetSortedKeyClusters(), lar_content::OverlapTensor< T >::GetSortedKeyClusters(), lar_content::OverlapMatrix< T >::GetUnambiguousElements(), lar_content::OverlapTensor< T >::GetUnambiguousElements(), tca::GetVtxTjIDs(), evwgh::Weight_t::GetWeight(), cheat::BackTracker::HitToTrackIDEs(), cluster::ClusterParamsImportWrapper< Algo >::ImportHits(), art::TriggerNamesService::index_(), lar::deep_const_fwd_iterator_nested< ITER, INNERCONTEXTRACT >::init_inner(), geo::part::SortedPartition< Data, Sorter >::initParts(), pmtana::PMTPulseRecoBase::Integral(), tca::InTrajOK(), art::RangeSet::invalidChecksum(), lar_dl_content::DlPfoCharacterisationAlgorithm::IsClearTrack(), lar_content::MvaPfoCharacterisationAlgorithm< T >::IsClearTrack(), lar_dl_content::DlClusterCharacterisationAlgorithm::IsClearTrack(), quad::LinesFromPoints(), util::details::PointerVectorMaker< Coll, typename >::make(), art::detail::make_path_ordering_edges(), util::details::make_zip_end_iterator(), proxy::makeAssociatedData(), trkf::CCTrackMaker::MakeClusterChains(), cosmic::HitTagAssociatorAlg::MakeHitTagAssociations(), tca::MakePFParticles(), tca::MakePFPTjs(), tca::MakeSmallAnglePFP(), tca::MakeVertexObsolete(), lar_content::LArHierarchyHelper::MatchInfo::Match(), cluster::ClusterMatchTQ::MatchedClusters(), art::detail::ProcessAndEventSelectors::matchEvent(), pmtana::PMTPulseRecoBase::Max(), trkf::TrajectoryMCSFitter::mcsLikelihood(), lar::details::bulk_allocator::BulkAllocatorBase< T >::MemoryChunk_t::MemoryChunk_t(), sim::MergeSimSourcesUtility::MergeAuxDetHits(), tss::Segmentation2D::mergeDenseParts(), sim::MergeSimSourcesUtility::MergeSimEnergyDeposits(), tca::MergeWithVertex(), pmtana::PMTPulseRecoBase::Min(), lar::util::MinMaxCollector< float >::MinMaxCollector(), tca::NearbyCleanPt(), tca::NeutrinoPrimaryTjID(), geo::GeoNodePath::operator std::string(), mvapid::MVAAlg::SumDistance2::operator()(), art::PtrRemapper::operator()(), recob::operator<<(), lar::details::bulk_allocator::BulkAllocatorBase< T >::MemoryChunk_t::operator=(), lar::CountersMap< KEY, COUNTER, SIZE, ALLOC, SUBCOUNTERS >::operator[](), cheat::PhotonBackTracker::OpHitToTrackSDPs(), art::detail::orderedProcessNamesCollection(), fhicl::parse_value_string(), art::detail::path_specs(), art::PathsInfo::pathNames(), rndm::details::policyFromName(), tca::Print2V(), tca::Print3V(), tca::PrintAllTraj(), trkf::CCTrackMaker::PrintClusters(), triton_utils::printColl(), tca::PrintP(), tca::PrintPFP(), tca::PrintTP3Ds(), larg4::SimEnergyDepositSD::ProcessHits(), ProcessSingleFile(), trk::TrackContainmentAlg::ProcessTracks(), bogoblip::BlipMaker::produce(), hit::RawHitFinder::produce(), cosmic::CosmicPFParticleTagger::produce(), cluster::LineCluster::produce(), cluster::ClusterCrawler::produce(), vertex::PrimaryVertexFinder::produce(), sim::PhotonHitConverter::produce(), cluster::DBCluster3D::produce(), butcher::EventButcher::produce(), cluster::TrajCluster::produce(), phot::PDFastSimPVS::produce(), trkf::CCTrackMaker::produce(), phot::PDFastSimANN::produce(), vertex::VertexFinder2D::produce(), NuGraphInference::produce(), phot::PDFastSimPAR::produce(), phot::PhotonLibraryPropagation::produce(), trkf::CosmicTracker::produce(), art::detail::prune_config_if_enabled(), sim::MCWireCollection::push_back(), sim::MCHitCollection::push_back(), lar_content::DiscreteProbabilityVector::RandomiseDiscreteProbabilityData(), tca::Reconcile2VTs(), tca::Reconcile3D(), tca::ReconcileVertices(), lar_content::OverlapMatrix< T >::RemoveCluster(), lar_content::OverlapTensor< T >::RemoveCluster(), art::HLTGlobalStatus::reset(), util::LazyVector< T, A >::resize(), art::ProductRetriever::retrievedPIDs(), PointIdAlgTools::PointIdAlgTriton::Run(), art::ScheduleIteration::ScheduleIteration(), tss::Segmentation2D::Segmentation2D(), evgen::larg4SingleGen::selectOption(), evgen::SingleGen::selectOption(), util::flags::BitMask< Storage >::set(), shower::ReconTrack::SetEnd(), tca::SetHighScoreBits(), lariov::Snapshot< T >::SetIoV(), tca::SetParent(), nutools::dbi::Table::SetValidityRange(), util::span< BIter, EIter >::size(), util::details::RangeForWrapperBox< RangeRef >::size(), lar::details::iteratorRange< BITER, EITER >::size(), art::ConsumesCollector::sortConsumables(), trkf::CCTrackMaker::SortMatches(), trkf::TrackKalmanFitter::sortOutput(), tca::SplitTrajCrossingVertices(), tca::StitchPFPs(), trkf::CCTrackMaker::StoreTrack(), pma::PMAlgCosmicTagger::tagApparentStopper(), tss::Segmentation2D::tagDenseEnds(), tca::TagShowerLike(), pma::PMAlgCosmicTagger::tagTopFrontBack(), geo::OpDetGeo::ThetaZ(), opdet::SimPhotonCounter::TotalPhotonVector(), trkf::CosmicTrackerAlg::Track3D(), cheat::PhotonBackTracker::TrackIDsToOpHits(), cheat::PhotonBackTracker::TrackIdsToOpHits_Ps(), trkf::TrackTrajectoryAlg::TrackTrajectory(), trkf::CosmicTrackerAlg::TrackTrajectory(), shower::LArPandoraShowerCheatingAlg::TrueParticleIDFromTrueChain(), cluster::HoughTransformCounters< KEY, COUNTER, SIZE, ALLOC, SUBCOUNTERS >::unchecked_add_range_max(), cluster::HoughTransformCounters< KEY, COUNTER, SIZE, ALLOC, SUBCOUNTERS >::unchecked_set_range(), tca::UpdateTjChgProperties(), tca::UpdateVxEnvironment(), art::detail::verify_in_order_dependencies(), art::detail::verifyPtrCollection(), art::HLTGlobalStatus::wasrun(), geo::WireGeo::WireGeo(), and geoalgo::LineSegment::~LineSegment().
decltype(auto) util::get | ( | T && | obj | ) |
ADL-aware version of std::to_string
.
Definition at line 120 of file StdUtils.h.
Referenced by geo::vect::coordManager(), art::Principal::ctor_fetch_process_history(), geo::vect::details::CoordManager< Vector, SetterType >::decr(), geo::vect::details::CoordManager< Vector, SetterType >::div(), geo::vect::details::CoordManagerImpl< Vector, 2U >::get(), geo::vect::details::CoordManagerImpl< Vector, 3U >::get(), geo::vect::details::CoordManagerImpl< Vector, 4U >::get(), util::getByExtractedType(), geo::vect::details::CoordManager< Vector, SetterType >::incr(), geo::vect::details::CoordManager< Vector, SetterType >::mult(), and recob::TrajectoryPointFlagTraits::setFlagNames().
decltype(auto) constexpr util::size | ( | T && | obj | ) |
ADL-aware version of std::size
.
Definition at line 101 of file StdUtils.h.
Referenced by geoalgo::Vector::_SqDist_(), art::PathsInfo::add_path(), util::MultipleChoiceSelection< Choices >::addOption(), sim::MCRecoPart::AddParticles(), shower::TCShowerAnalysis::analyze(), microboone::CosmicRemovalAna::analyze(), pfpf::PFPAna::analyze(), cluster::ClusterAna::analyze(), cluster::ClusterTrackAna::analyze(), nnet::RawWaveformDump::analyze(), tca::AnalyzeHits(), trkf::TrackAna::anaStitch(), sim::MCRecoPart::AncestorTrackID(), geoalgo::Vector::Angle(), lar::sparse_vector< float >::append(), phot::IPhotonMappingTransformations::applyOpDetMapping(), lar_content::LArMCParticleHelper::AreTopologicallyContinuous(), lar::CollectionView< BoundaryListRangeBase< BoundaryIter > >::at(), util::MappedContainer< phot::IPhotonLibrary::Functions_t, Mapping >::back(), lar::sparse_vector< float >::back_is_void(), boost::python::indexing_suite< Container, DerivedPolicies, NoProxy >::base_size(), pdsp::CheckCNNScore::beginJob(), lcvn::CVNImageUtils::BuildImageVector(), lcvn::CVNImageUtils::BuildImageVectorF(), pma::PMAlgFitter::buildShowers(), pma::PMAlgFitter::buildTracks(), CalcPropLikeRatio(), ShowerRecoTools::ShowerBayesianTrucatingdEdx::CalculateElement(), lar_content::LArDiscreteProbabilityHelper::CalculateMean(), hit::RFFHitFitter::CalculateMergedMeansAndSigmas(), util::MappedContainer< phot::IPhotonLibrary::Functions_t, Mapping >::cend(), util::TensorIndices< 1U >::checkOuterIndex(), geoalgo::Trajectory::compat(), geoalgo::Vector::compat(), keras::LayerFlatten::compute_output(), keras::LayerMaxPooling::compute_output(), keras::LayerConv2D::compute_output(), keras::LayerDense::compute_output(), cluster::DBScanAlg::computeSimilarity(), cluster::DBScanAlg::computeSimilarity2(), cluster::DBScanAlg::computeWidthFactor(), trkf::SeedFinderAlgorithm::ConsolidateSeed(), shower::EMShowerAlg::ConstructTrack(), boost::python::vector_indexing_suite< Container, NoProxy, final_vector_derived_policies< Container, NoProxy > >::convert_index(), lcvn::CVNImageUtils::ConvertImageVecToImageVecF(), lcvn::CVNImageUtils::ConvertViewVecToViewVecF(), tca::TrajClusterAlg::CreateSlice(), geoalgo::Vector::Cross(), geo::part::PartitionContainer< Data >::describeIntro(), geo::part::DepthPartition< Data >::describeIntro(), geo::part::WidthPartition< Data >::describeIntro(), nnet::ParticleDecayId::DetectDecay(), geoalgo::Trajectory::Dir(), art::BasicOutputOptionsHandler::doCheckOptions(), evdb_tool::SpacePoint3DDrawerStandard::Draw(), evd::AnalysisBaseDrawer::DrawDeDx(), evd::RecoBaseDrawer::DrawTrack3D(), evd::RecoBaseDrawer::DrawTrackVertexAssns2D(), lar::sparse_vector< T >::datarange_t::dump(), wc::CellTree::DumpMCJSON(), util::MappedContainer< phot::IPhotonLibrary::Functions_t, Mapping >::empty(), lar::sparse_vector< float >::empty(), util::UniqueRangeSet< T >::End(), proxy::CollectionProxyBase< SpacePointWithCharge, MainColl, AuxColl... >::end(), util::MappedContainer< phot::IPhotonLibrary::Functions_t, Mapping >::end(), ROOT::evdbcLcLEditMenu_TClassManip(), ROOT::evdbcLcLScanFrame_TClassManip(), export_G4ParticleTable(), fhicl::ParameterSetRegistry::exportTo(), lar::sparse_vector< T >::datarange_t::extend(), pyG4ProcessTable::f1_FindProcesses(), pyG4ProcessTable::f2_FindProcesses(), pyG4ProcessTable::f3_FindProcesses(), pyG4ProcessTable::f4_FindProcesses(), pyG4ProcessManager::f_GetProcessList(), pyG4ProcessManager::f_GetProcessVector(), trkf::CCTrackMaker::FillTrkHits(), tca::FillWireHitRange(), cluster::SmallClusterFilter::filter(), pma::ProjectionMatchingAlg::FilterOutSmallParts(), vertex::FeatureVertexFinder::Find2dClusterVertexCandidates(), tca::Find3DVertices(), lar_cluster3d::MinSpanTreeAlg::FindBestPathInCluster(), lar_cluster3d::MSTPathFinder::FindBestPathInCluster(), apa::DisambigAlg::FindChanTimeEndPts(), cluster::ClusterCrawlerAlg::FindHammerClusters(), lar_cluster3d::HoughSeedFinderAlg::findHoughClusters(), lar::FindManyInChainP< Target, Intermediate >::FindManyInChainP(), util::MultipleChoiceSelection< Choices >::findOptionIndex(), trkf::SeedFinderAlgorithm::FindSeeds(), shower::EMShowerAlg::FindShowerStart_(), cluster::SmallClusterFinderAlg::FindSmallClusters(), quad::QuadVtx::FindVtx(), hit::DPRawHitFinder::FitExponentials(), trkf::Geometric3DVertexFitter::fitPFP(), trkf::CCTrackMaker::FitVertices(), ROOT::GenerateInitInstance(), phot::details::generic_size(), vertex::FeatureVertexFinder::Get3dVertexCandidates(), fhicl::Sequence< float, 3u >::get_size(), fhicl::Sequence< T,-1ull >::get_size(), sim::GenericCRTUtility::GetAuxDetChannels(), sim::GenericCRTUtility::GetAuxDetSimChannels(), evd::Ortho3DPad::GetMarkerSize(), cmtool::CMergeBookKeeper::GetMergedSet(), lcvn::Result::GetNCProbability(), lcvn::AssignLabels::GetNeutralDaughterHitsRecursive(), lcvn::AssignLabels::GetTopology(), phot::PropagationTimeModel::getVISTimes(), larg4::OpFastScintillation::getVISTimes(), evdb::WindowMenu::HandleMenu(), util::TensorIndices< 1U >::has(), util::TensorIndices< DIMS >::hasLinIndex(), cluster::HoughBaseAlg::HLSSaveBMPFile(), phot::interpolate(), larg4::OpFastScintillation::interpolate(), phot::interpolate2(), phot::interpolate3(), larg4::OpFastScintillation::interpolate3(), lar::sparse_vector< float >::is_equal(), lar::sparse_vector< T >::is_void(), geoalgo::Trajectory::IsLonger(), cmtool::CMergeBookKeeper::IsMerged(), lar_cluster3d::ClusterParamsBuilder::keepThisCluster(), larg4::LArG4DetectorService::LArG4DetectorService(), recob::ChargedSpacePointCollectionCreator::lastIndex(), geoalgo::Trajectory::Length(), pma::Track3D::Length(), tss::Cluster2D::length2(), ems::EMShower3D::LinkCandidates(), pma::PMAlgTracker::listUsedClusters(), util::details::PointerVectorMaker< Coll, std::enable_if_t< util::is_unique_ptr_v< typename Coll::value_type > > >::make(), lar::sparse_vector< T >::make_void_around(), trkf::CCTrackMaker::MakeClusterChains(), trkf::CCTrackMaker::MakeFamily(), makePartition(), shower::EMShowerAlg::MakeShower(), trkf::SpacePointAlg::makeSpacePoints(), MarshaledG4String::marshal1(), cluster::ClusterMatchTQ::MatchedClusters(), pma::PMAlgTracker::maxCluster(), fhicl::detail::MaybeDisplayParent::MaybeDisplayParent(), cmtool::CMergeBookKeeper::Merge(), cmtool::CMergeBookKeeper::MergeAllowed(), tss::Segmentation2D::mergeDenseParts(), tca::TrajClusterAlg::MergeTPHits(), tca::TrajClusterAlg::MergeTPHitsOnWire(), util::MappedContainer< Cont, Mapping >::minimal_size(), molecule(), sim::MCRecoPart::MotherTrackID(), noise(), util::TensorIndices< 1U >::operator!=(), lar_cluster3d::HoughSeedFinderAlg::SortHoughClusterList::operator()(), geoalgo::Vector::operator*(), geoalgo::Vector::operator+=(), geoalgo::Vector::operator-=(), geoalgo::Vector::operator<(), util::TensorIndices< 1U >::operator==(), geoalgo::Vector::operator==(), PyG4ParticleList::p_begin(), PyG4ParticleList::p_end(), evdb::ParameterSetEditFrame::ParameterSetEditFrame(), evdb::ParameterSetEditRow::ParameterSetEditRow(), ClusteringValidation::ClusterCounter::PassesCut(), cmtool::CMergeBookKeeper::PassResult(), img::DataProviderAlg::patchFromOriginalView(), art::PathManager::PathManager(), art::TriggerNamesService::pathResults(), art::detail::print_module_types(), art::detail::print_path_names(), art::detail::print_path_numbers(), art::detail::print_service_types(), art::detail::print_table_numbers(), sim::POTaccumulator::printMissingSubrunList(), sim::POTaccumulator::printRunSummary(), trkf::CCTrackMaker::PrintTracks(), wc::CellTree::processSpacePointTruthDepo(), trk::TrackContainmentAlg::ProcessTracks(), opdet::OpticalRawDigitReformatter::produce(), hit::DisambigCheater::produce(), tss::TrackShowerHits::produce(), hit::FFTHitFinder::produce(), trkf::TrackStitcher::produce(), trkf::TrackKalmanCheater::produce(), vertex::VertexFinder2D::produce(), evd::GraphCluster::produce(), NuGraphInference::produce(), calo::Calorimetry::produce(), larg4::LArG4::produce(), cmtool::CMergeBookKeeper::ProhibitMerge(), evd::RecoBaseDrawer::Prong3D(), lar_cluster3d::MinSpanTreeAlg::PruneAmbiguousHits(), lar_cluster3d::MSTPathFinder::PruneAmbiguousHits(), art::BranchDescription::psetID(), geoalgo::Trajectory::push_back(), lar::sparse_vector< float >::push_back(), fhicl::detail::Prettifier::push_size_(), fhicl::detail::ValuePrinter::push_size_(), fhicl::detail::PrettifierAnnotated::push_size_(), fhicl::detail::PrettifierPrefixAnnotated::push_size_(), evd::InfoTransfer::Rebuild(), util::LArFFT::ReinitializeFFT(), lar::sparse_vector< T >::resize(), lar_content::StitchingCosmicRayMergingTool::Run(), img::DataProviderAlg::scaleAdcSamples(), evd::TWQProjectionView::SetClusters(), tca::TrajClusterAlg::SetSourceHits(), calib::PhotonCalibratorStandard::SetSPESize(), evdb::ParameterSetEditRow::SetupListBox(), evdb::ParameterSetEditRow::SetupSlider(), evdb::ParameterSetEditRow::SetupTextEntry(), trkf::TrackTrajectoryAlg::ShortTrackTrajectory(), util::details::ContainerStorageBase< Mapping >::size(), util::details::ExtractTensorDimension< RANK, DIM >::size(), cluster::SmallClusterFilter::SmallClusterFilter(), trkf::CCTrackMaker::SortMatches(), util::UniqueRangeSet< T >::Start(), trkf::CCTrackMaker::StoreTrack(), trkf::KHitWireLine::subpredict(), trkf::KHitWireX::subpredict(), geoalgo::Vector::Theta(), geoalgo::Vector::ToTLorentzVector(), trkf::CosmicTrackerAlg::Track3D(), trkf::TrackTrajectoryAlg::TrackTrajectory(), trkf::CosmicTrackerAlg::TrackTrajectory(), evdb::ParameterSetEditRow::UnpackParameter(), trkf::KHitMulti::update(), trkf::KHit< N >::update(), apa::DisambigAlg::UseEndPts(), trkf::VertexFitAlg::VertexFit(), larg4::OpFastScintillation::VISHits(), cluster::EndPointAlg::VSSaveBMPFile(), and lar::details::bulk_allocator::BulkAllocatorBase< T >::MemoryChunk_t::~MemoryChunk_t().
decltype(auto) constexpr util::to_string | ( | T && | obj | ) |
ADL-aware version of std::to_string
.
Referenced by art::PathsInfo::add_path(), cluster::ClusterTrackAna::analyze(), lcvn::LArNuCVNZlibMaker::analyze(), proxy::details::associationRangesImpl(), lar::CollectionView< BoundaryListRangeBase< BoundaryIter > >::at(), artg4tk::CheckDRCalorimeterHits::beginJob(), sim::MCShower::Charge(), util::LazyVector< T, A >::check_range(), util::TensorIndices< 1U >::checkOuterIndex(), shower::EMShowerAlg::CheckShowerPlanes(), evd::RecoBaseDrawer::Cluster2D(), lar_pandora::LArPandoraOutput::CollectAllPfoOutcomes(), tca::CompleteIncomplete3DVertices(), util::details::ValueToString< Value, std::enable_if_t< std::is_enum_v< Value > > >::convert(), util::details::void_t< decltype(std::to_string(std::declval< Value >()))>::convert(), reco_tool::BaselinedGausFitCache::CreateFunction(), evgen::Decay0Gen::Decay0Gen(), util::quantities::concepts::decode(), lariov::TimeStampDecoder::DecodeTimeStamp(), recob::TrajectoryPointFlagTraits::decorateFlagName(), geo::part::PartitionContainer< Data >::describeIntro(), art::BasicOutputOptionsHandler::doCheckOptions(), recob::DumpPFParticles::DotFileName(), sim::MCShower::dQdx(), evdb_tool::DrawGausHits::Draw(), evd::RecoBaseDrawer::DrawProng2D(), evd::RecoBaseDrawer::DrawTrackOrtho(), evd::RecoBaseDrawer::DrawTrackVertexAssns2D(), tca::DumpTj(), evd::RecoBaseDrawer::EndPoint2D(), fhicl::detail::PrintAllowedConfiguration::enter_sequence(), mf::service::ELdestination::fillUsrMsg(), larg4::AuxDetReadoutGeometry::FindAndMakeAuxDet(), larg4::AuxDetReadoutGeometry::FindAndMakeAuxDetSensitive(), reco_tool::PeakFitterGaussian::findPeakParameters(), for(), sim::GENIE_INukeFateHA_RescatteringName(), lar_content::LArFormattingHelper::GetFormatCharacter(), sim::PhotonVoxelDef::GetNeighboringVoxelIDsImpl(), lariov::DBFolder::GetRow(), lariov::Snapshot< lariov::PmtGain >::GetRow(), art::detail::getType(), cluster::ClusterTrackAna::HitLocation(), fhicl::Name::index(), lar_content::MasterAlgorithm::InitializeWorkerInstances(), lar_content::InteractionDescriptor::InteractionDescriptor(), dump::raw::OpDetWaveformDumper::TickLabelMaker::label(), detsim::DumpOpDetWaveforms::TimestampLabelMaker::label(), util::makeValueIndex(), util::MappedContainer< Cont, Mapping >::minimal_size(), evd::RawDataDrawer::ManyOperations::Name(), util::EventChangeTracker_t::operator std::string(), art::detail::operator<<(), sim::ParticleName(), evgen::larg4SingleGen::presentOptions(), evgen::SingleGen::presentOptions(), lar_content::LArHierarchyHelper::MatchInfo::Print(), tca::Print2DShowers(), tca::Print2V(), tca::Print3S(), tca::Print3V(), art::detail::print_path_names(), tca::PrintAllTraj(), tca::PrintEndFlag(), cluster::ClusterCrawlerAlg::PrintHit(), tca::PrintHit(), tca::PrintHitShort(), tca::PrintP(), tca::PrintPFP(), tca::PrintPos(), art::FileDumperOutput::printPrincipal(), tca::PrintShower(), tca::PrintT(), ProcessSingleFile(), reco::shower::LArPandoraModularShowerCreation::produce(), art::Wrapper< T >::productSize(), evd::RecoBaseDrawer::Prong2D(), fhicl::intermediate_table::put(), util::quantities::details::readUnit(), phot::PhotonVisibilityService::reconfigure(), sim::RescatteringName(), art::RPManager::RPManager(), lar_content::VisualParticleMonitoringAlgorithm::Run(), lar_content::HierarchyMonitoringAlgorithm::Run(), evgb::GENIEHelper::Sample(), evgen::NeutronOsc::SelectAnnihilationMode(), evgen::larg4SingleGen::setup(), evgen::SingleGen::setup(), evd::TWQProjectionView::SetUpTPCselection(), geo::SignalTypeName(), evd::RecoBaseDrawer::Slice2D(), phot::PhotonVisibilityService::testVoxelSuggestion(), util::details::ToStringImpl< T, typename >::to_string(), sim::POTaccumulator::to_string(), util::details::ToStringImpl< T, std::enable_if_t< util::is_basic_string_view_type_v< T > > >::to_string(), util::quantities::concepts::to_string(), lartriton::TritonData< IO >::toServer(), lar_dl_content::DlVertexingAlgorithm::VertexTuple::ToString(), lar_content::LArHierarchyHelper::MCHierarchy::Node::ToString(), lar_content::LArHierarchyHelper::MCHierarchy::ToString(), lar_content::LArHierarchyHelper::RecoHierarchy::Node::ToString(), lar_content::LArHierarchyHelper::RecoHierarchy::ToString(), evd::TWQProjectionView::TotalElementsString(), recob::TrackTrajectory::TrackTrajectory(), recob::Trajectory::Trajectory(), art::detail::triggerReport(), sim::TruthCCNCname(), sim::TruthInteractionTypeName(), sim::TruthOriginName(), rndm::details::PerEventPolicy< SEED >::UniqueEventIDString(), rndm::details::PerEventPolicy< SEED >::UniqueEventString(), lariov::DBFolder::UpdateData(), evd::RecoBaseDrawer::Vertex2D(), geo::PlaneGeo::ViewName(), and fhicl::ParameterSet::walk().
|
inlinestatic |
Definition at line 142 of file StdUtils.h.
References util::to_string().
Referenced by util::details::ToStringImpl< T, std::enable_if_t< util::is_basic_string_view_type_v< T > > >::to_string().
|
inlinestatic |
Definition at line 155 of file StdUtils.h.
|
inlinestatic |
Definition at line 167 of file StdUtils.h.
References util::to_string(), and util::details::ToStringImpl< T, typename >::to_string().