MCPcopy Create free account
hub / github.com/boostorg/histogram / integer_init

Function integer_init

src/python/axis.cpp:242–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242bha::integer<>* integer_init(int lower, int upper, bp::str pylabel, bool with_uoflow) {
243 using namespace ::boost::python;
244 const auto uo = with_uoflow ? bha::uoflow_type::on : bha::uoflow_type::off;
245 return new bha::integer<>(
246 lower, upper,
247 {extract<const char*>(pylabel)(), static_cast<std::size_t>(bp::len(pylabel))}, uo);
248}
249
250void register_axis_types() {
251 using namespace ::boost::python;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected