SimpleDepoSet.h
Go to the documentation of this file.
2 
3 namespace WireCell {
4 
5 
6  class SimpleDepoSet : public IDepoSet {
7  int m_ident;
9  public:
11  : m_ident(ident)
12  , m_depos(std::make_shared<IDepo::vector>(depos.begin(), depos.end()))
13  { }
14  virtual ~SimpleDepoSet();
15  virtual int ident() const { return m_ident; }
16  virtual IDepo::shared_vector depos() const { return m_depos; }
17  };
18 
19 
20 }
SimpleDepoSet(int ident, const IDepo::vector &depos)
Definition: SimpleDepoSet.h:10
IDepo::shared_vector m_depos
Definition: SimpleDepoSet.h:8
virtual int ident() const
Return some identifier number that is unique to this set.
Definition: SimpleDepoSet.h:15
STL namespace.
std::vector< pointer > vector
Definition: IData.h:21
decltype(auto) constexpr end(T &&obj)
ADL-aware version of std::end.
Definition: StdUtils.h:72
virtual IDepo::shared_vector depos() const
Return the depositions in this set.
Definition: SimpleDepoSet.h:16
Definition: Main.h:22
decltype(auto) constexpr begin(T &&obj)
ADL-aware version of std::begin.
Definition: StdUtils.h:67
std::shared_ptr< const vector > shared_vector
Definition: IData.h:22