Public Member Functions | List of all members
std::hash< WireCell::cluster_node_t > Struct Template Reference

#include <ICluster.h>

Public Member Functions

std::size_t operator() (const WireCell::cluster_node_t &n) const
 

Detailed Description

template<>
struct std::hash< WireCell::cluster_node_t >

Definition at line 68 of file ICluster.h.

Member Function Documentation

std::size_t std::hash< WireCell::cluster_node_t >::operator() ( const WireCell::cluster_node_t n) const
inline

Definition at line 69 of file ICluster.h.

69  {
70  size_t h = 0;
71  switch (n.ptr.index()) {
72  case 0: h=std::get<0>(n.ptr); break;
73  case 1: h=(std::size_t)std::get<1>(n.ptr).get(); break;
74  case 2: h=(std::size_t)std::get<2>(n.ptr).get(); break;
75  case 3: h=(std::size_t)std::get<3>(n.ptr).get(); break;
76  case 4: h=(std::size_t)std::get<4>(n.ptr).get(); break;
77  case 5: h=(std::size_t)std::get<5>(n.ptr).get(); break;
78  }
79  return h;
80  }
cluster_ptr_t ptr
Definition: ICluster.h:36
h
training ###############################
Definition: train_cnn.py:186

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