File indexing completed on 2024-04-06 11:56:20
0001 #ifndef GENERS_VPACKIOCYCLER_HH_
0002 #define GENERS_VPACKIOCYCLER_HH_
0003
0004 #include "Alignment/Geners/interface/GenericIO.hh"
0005
0006 namespace gs {
0007 namespace Private
0008 {
0009 template<typename Pack, int N>
0010 struct VPackIOCycler
0011 {
0012 template <typename Stream>
0013 inline static bool read(Pack* s, Stream& is)
0014 {
0015 return VPackIOCycler<Pack, N-1>::read(s, is) &&
0016 process_item<GenericReader>(
0017 std::get<N-1>(*(static_cast<typename Pack::Base*>(s))),
0018 is, &s->iostack_[N-1], false);
0019 }
0020 };
0021
0022 template<typename Pack>
0023 struct VPackIOCycler<Pack, 0>
0024 {
0025 template <typename Stream>
0026 inline static bool read(Pack*, Stream&)
0027 {return true;}
0028 };
0029 }
0030 }
0031
0032 #endif
0033