LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
MakeIndex.h File Reference

Procedures to create maps of object locations. More...

Go to the source code of this file.

Namespaces

 util
 Namespace for general, non-LArSoft-specific utilities.
 

Functions

template<typename Coll , typename KeyOf >
std::vector< size_t > util::MakeIndex (Coll const &data, KeyOf key_of=KeyOf())
 Creates a map of indices from an existing collection. More...
 
template<typename Coll , typename KeyOf >
auto util::MakeMap (Coll const &data, KeyOf key_of=KeyOf()) -> std::vector< decltype(key_of(*(data.begin()))) const * >
 Creates a map of objects from an existing collection. More...
 

Detailed Description

Procedures to create maps of object locations.

Author
Gianluca Petrillo (petri.nosp@m.llo@.nosp@m.fnal..nosp@m.gov)
Date
March 13th, 2015

Definition in file MakeIndex.h.