1 #ifndef art_Utilities_PerScheduleContainer_h 2 #define art_Utilities_PerScheduleContainer_h 26 return !
data_.empty();
38 return data_.cbegin();
79 template <
typename... Args>
83 data_.emplace_back(std::forward<Args>(
args)...);
91 "An error occurred while calling " 92 "PerScheduleContainer::expand_to_num_schedules"}
93 <<
"Can only call resize when the container is invalid.\n";
103 "An error occurred while calling " 104 "PerScheduleContainer::expand_to_num_schedules"}
105 <<
"Can only call expand_to_num_schedules when the " 106 "container is invalid.";
T const & at(ScheduleID const sid) const
void emplace_back(Args &&...args)
static constexpr ScheduleID first()
auto begin() const noexcept
T & at(ScheduleID const sid)
auto cbegin() const noexcept
ScheduleID::size_type nschedules() const
T const & operator[](ScheduleID const sid) const
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
constexpr id_type id() const noexcept
void reserve(ScheduleID::size_type const sz)
auto end() const noexcept
PerScheduleContainer(ScheduleID::size_type const n)
static Globals * instance()
auto expand_to_num_schedules()
PerScheduleContainer()=default
void resize(ScheduleID::size_type const sz)
auto cend() const noexcept
T & operator[](ScheduleID const sid)