39 unsigned long long hash;
40 if (!(input >> delimiter) || delimiter !=
'(' ||
41 !(input >> box_count >> hash) || box_count < 0 ||
42 box_count >
static_cast<long long>(std::numeric_limits<int>::max())) {
46 std::vector<amrex::Box> boxes;
47 boxes.reserve(
static_cast<std::size_t
>(box_count));
48 for (
long long ibox = 0; ibox < box_count; ++ibox) {
49 if (!(input >> delimiter) || delimiter !=
'(')
return false;
50 amrex::IntVect small, big, type;
53 !(input >> delimiter) || delimiter !=
')') {
56 boxes.emplace_back(small, big, type);
58 if (!(input >> delimiter) || delimiter !=
')')
return false;
60 result = boxes.empty()
62 : amrex::BoxArray(boxes.data(),
static_cast<int>(boxes.size()));
bool read_int_vector(std::istream &input, amrex::IntVect &value)
Definition: ERF_IntervalMeansCheckpoint.H:20