Functions
validate_large_sequence_t.cc File Reference
#include "fhiclcpp/ParameterSet.h"
#include "fhiclcpp/types/Sequence.h"
#include "fhiclcpp/types/Table.h"
#include <cassert>
#include <iostream>
#include <numeric>

Go to the source code of this file.

Functions

int main ()
 

Function Documentation

int main ( void  )

Definition at line 19 of file validate_large_sequence_t.cc.

20 {
21  ParameterSet pset;
22  std::vector<int> numbers(5000);
23  std::iota(begin(numbers), end(numbers), 0);
24  pset.put("many_numbers", numbers);
25  auto const numbers_str = pset.to_indented_string();
26 
27  auto new_pset = ParameterSet::make(numbers_str);
28  auto const a = new_pset.get<std::vector<int>>("many_numbers");
29  assert(numbers == a);
30 
31  Table<Configuration> validated_config{new_pset};
32  auto const b = validated_config().numbers();
33  assert(numbers == b);
34 }
end
while True: pbar.update(maxval-len(onlies[E][S])) #print iS, "/", len(onlies[E][S]) found = False for...
const double a
std::string to_indented_string() const
unique_ptr< InputSource > make(ParameterSet const &conf, InputSourceDescription &desc)
static bool * b
Definition: config.cpp:1043
decltype(auto) constexpr begin(T &&obj)
ADL-aware version of std::begin.
Definition: StdUtils.h:72
void put(std::string const &key)