WireCellToolkit
Wire Cell Simulation, Signal Process and Reconstruction Toolki for Liquid Argon Detectors
WireCell::IndexedSet< TYPE > Class Template Reference

#include <IndexedSet.h>

Public Types

typedef std::unordered_map< TYPE, int > index_type
 
typedef std::vector< TYPE > collection_type
 
typedef collection_type::size_type size_type
 

Public Member Functions

size_type size ()
 
int operator() (const TYPE &obj) const
 
int operator() (const TYPE &obj)
 
bool has (const TYPE &obj)
 

Public Attributes

index_type index
 
collection_type collection
 

Detailed Description

template<class TYPE>
class WireCell::IndexedSet< TYPE >

IndexedSet - maintain a collection of exactly one thing in a first added order

Definition at line 13 of file IndexedSet.h.

Member Typedef Documentation

◆ collection_type

template<class TYPE>
typedef std::vector<TYPE> WireCell::IndexedSet< TYPE >::collection_type

Definition at line 18 of file IndexedSet.h.

◆ index_type

template<class TYPE>
typedef std::unordered_map<TYPE, int> WireCell::IndexedSet< TYPE >::index_type

Definition at line 17 of file IndexedSet.h.

◆ size_type

template<class TYPE>
typedef collection_type::size_type WireCell::IndexedSet< TYPE >::size_type

Definition at line 19 of file IndexedSet.h.

Member Function Documentation

◆ has()

template<class TYPE>
bool WireCell::IndexedSet< TYPE >::has ( const TYPE &  obj)
inline

Definition at line 43 of file IndexedSet.h.

◆ operator()() [1/2]

template<class TYPE>
int WireCell::IndexedSet< TYPE >::operator() ( const TYPE &  obj) const
inline

Definition at line 25 of file IndexedSet.h.

◆ operator()() [2/2]

template<class TYPE>
int WireCell::IndexedSet< TYPE >::operator() ( const TYPE &  obj)
inline

Definition at line 32 of file IndexedSet.h.

◆ size()

template<class TYPE>
size_type WireCell::IndexedSet< TYPE >::size ( )
inline

Definition at line 23 of file IndexedSet.h.

Member Data Documentation

◆ collection

template<class TYPE>
collection_type WireCell::IndexedSet< TYPE >::collection

Definition at line 22 of file IndexedSet.h.

◆ index

template<class TYPE>
index_type WireCell::IndexedSet< TYPE >::index

Definition at line 21 of file IndexedSet.h.


The documentation for this class was generated from the following file: