MCPcopy Create free account
hub / github.com/apache/arrow / garrow_round_binary_options_class_init

Function garrow_round_binary_options_class_init

c_glib/arrow-glib/compute.cpp:9376–9401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9374}
9375
9376static void
9377garrow_round_binary_options_class_init(GArrowRoundBinaryOptionsClass *klass)
9378{
9379 auto gobject_class = G_OBJECT_CLASS(klass);
9380
9381 gobject_class->set_property = garrow_round_binary_options_set_property;
9382 gobject_class->get_property = garrow_round_binary_options_get_property;
9383
9384 arrow::compute::RoundBinaryOptions options;
9385
9386 GParamSpec *spec;
9387 /**
9388 * GArrowRoundBinaryOptions:mode:
9389 *
9390 * The rounding and tie-breaking mode.
9391 *
9392 * Since: 23.0.0
9393 */
9394 spec = g_param_spec_enum("mode",
9395 "Mode",
9396 "The rounding and tie-breaking mode",
9397 GARROW_TYPE_ROUND_MODE,
9398 static_cast<GArrowRoundMode>(options.round_mode),
9399 static_cast<GParamFlags>(G_PARAM_READWRITE));
9400 g_object_class_install_property(gobject_class, PROP_ROUND_BINARY_OPTIONS_MODE, spec);
9401}
9402
9403/**
9404 * garrow_round_binary_options_new:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected