use super::{generic::PlanBuilder, FixedPointBorrowedResidentPlan};
use crate::fixed_point_resident::FixedPointResidentGraph;
use crate::fixed_point_resident_frontier::FixedPointResidentFrontierScratch;
impl<'a> FixedPointBorrowedResidentPlan<'a> {
#[must_use]
pub fn new(
graph: &'a FixedPointResidentGraph,
pipeline: std::sync::Arc<dyn vyre::CompiledPipeline>,
) -> Self {
Self {
inner: PlanBuilder { graph, pipeline },
}
}
pub fn clear_frontier(
&self,
backend: &dyn vyre::VyreBackend,
resident_frontier: &mut FixedPointResidentFrontierScratch,
) -> Result<(), vyre::BackendError> {
resident_frontier.clear(backend)
}
}