.. index:: pair: struct; gpr::SexpatLocalOracleScope .. _doxid-structgpr_1_1_sexpat_local_oracle_scope: struct gpr::SexpatLocalOracleScope ================================== .. toctree:: :hidden: RAII guard: flips sexpat_local_oracle_active to true on construction and restores the saved value on destruction. Used by GaussianProcessRegression::fitSVGDFromScratch's grad_oracle lambda so the per-particle gradient compute picks up the OpenMP parallelism gated by use_openmp_local_oracle. .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct SexpatLocalOracleScope { // fields bool :target:`prev_`; // construction :target:`SexpatLocalOracleScope`(); :target:`SexpatLocalOracleScope`(const SexpatLocalOracleScope&); :target:`~SexpatLocalOracleScope`(); // methods :ref:`SexpatLocalOracleScope`& :target:`operator=`(const :ref:`SexpatLocalOracleScope`&); };