# C++ reference The user-facing part of the library, in namespace `bgspprc`. Describe the problem in a `ProblemView` over arrays the caller owns, bundle the resources past the grid's main ones in a `ResourcePack`, and solve with a `Solver`; see [Use as a Library](index.md#use-as-a-library) for a worked example. The headers are under `include/bgspprc/`, and `bgspprc.h` includes all but three, which are included on their own: `executor_thread.h` (`StdThreadExecutor`), `resources/cumulative_cost.h` and `resources/pickup_delivery.h`. The labeling engine behind `Solver` (`BucketGraph`, `bucket_graph.h`) is not listed here. ## Solver ```{doxygenclass} bgspprc::Solver ``` `Solver::Path` and `Solver::WalkCost` are the engine's types, defined in `bucket_graph.h`: - `Path`, a path a solve returns: `std::vector vertices` and `std::vector arcs` in order from source to sink, and `double reduced_cost` and `double original_cost`. - `WalkCost`, what `cost_of` returns for a feasible walk: `double reduced_cost` and `double original_cost`. ```{doxygenenum} bgspprc::Stage ``` ```{doxygenenum} bgspprc::Direction ``` ```{doxygenenum} bgspprc::Symmetry ``` ```{doxygenvariable} bgspprc::INF ``` ```{doxygenvariable} bgspprc::NEG_INF ``` ```{doxygenvariable} bgspprc::EPS ``` ## Problem data ```{doxygenstruct} bgspprc::ProblemView ``` ```{doxygenstruct} bgspprc::AdjacencyView ``` ```{doxygenclass} bgspprc::CsrAdjacency ``` ```{doxygenstruct} bgspprc::Adjacency ``` ## Resources ```{doxygenconcept} bgspprc::Resource ``` ```{doxygenstruct} bgspprc::ResourcePack ``` ```{doxygentypedef} bgspprc::EmptyPack ``` ```{doxygenstruct} bgspprc::StandardResource ``` ```{doxygenstruct} bgspprc::SideResources ``` ```{doxygenvariable} bgspprc::kMaxSideResources ``` ```{doxygenstruct} bgspprc::CumulativeCostResource ``` ```{doxygenstruct} bgspprc::PickupDeliveryResource ``` ### ng-paths ```{doxygenstruct} bgspprc::NgPathData ``` ```{doxygenclass} bgspprc::NgPathView ``` ```{doxygenstruct} bgspprc::NgPathResource ``` ### Rank-1 cuts ```{doxygenstruct} bgspprc::R1Cut ``` ```{doxygenstruct} bgspprc::R1VertexCut ``` ```{doxygenclass} bgspprc::BasicR1CData ``` ```{doxygenclass} bgspprc::BasicR1CView ``` ```{doxygenstruct} bgspprc::BasicR1CResource ``` ```{doxygentypedef} bgspprc::R1CData ``` ```{doxygentypedef} bgspprc::R1CView ``` ```{doxygentypedef} bgspprc::R1CResource ``` ```{doxygentypedef} bgspprc::R1CState ``` ```{doxygenstruct} bgspprc::R1CFit ``` ```{doxygenstruct} bgspprc::R1CError ``` ```{doxygenenum} bgspprc::R1CErrc ``` ```{doxygenvariable} bgspprc::kR1CMaxDenominator ``` ## Executors ```{doxygenconcept} bgspprc::Executor ``` ```{doxygenstruct} bgspprc::SequentialExecutor ``` ```{doxygenclass} bgspprc::ThreadPool ``` ```{doxygenclass} bgspprc::ThreadPoolExecutor ``` ```{doxygenstruct} bgspprc::StdThreadExecutor ```