MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ ahead()

template<typename Handle >
const VisionStep * MayaFlux::Kinesis::Vision::VisionPass< Handle >::ahead ( size_t  offset = 1) const
inlinenoexcept

Op at offset steps ahead, or nullptr past the end.

Replaces the adjacency booleans derived by VisionSequence::Builder. Correct under any mutation of steps because it is evaluated at the point of use.

Definition at line 193 of file VisionContext.hpp.

194 {
195 const auto& steps = sequence->steps;
196 const size_t at = index + offset;
197 return at < steps.size() ? &steps[at] : nullptr;
198 }
float offset
auto at(const B &anchor, F &&factory, Args &&... args) -> decltype(std::forward< F >(factory)(Kinesis::bounds_of(anchor), std::forward< Args >(args)...))
Call a bounds-taking factory with an anchor's region.
Definition Geometry.hpp:152

References MayaFlux::Kinesis::Vision::VisionPass< Handle >::index, offset, MayaFlux::Kinesis::Vision::VisionPass< Handle >::sequence, and MayaFlux::Kinesis::Vision::VisionSequence::steps.