Class TraceBuffer
Defined in File TraceBuffer.hpp
Inheritance Relationships
Base Type
public std::list< TraceWithBuffer >
Class Documentation
-
class TraceBuffer : public std::list<TraceWithBuffer>
Represents a buffer of a search Trace tree, i.e. a set of traces each representing a possible path for the car to take. It provides methods to prune the possibilities and other useful functionality.
Public Functions
-
TraceBuffer(const Params::WayComputer::Search ¶ms)
-
void setEdgeAsDefinitive(const Edge &nextEdge)
Adds the next edge to the definitive path.
- Parameters:
nextEdge – [in] represents the next valid Edge that should be part of the definitive path
-
TraceWithBuffer bestTraceWithBuffer() const
Returns the best TraceWithBuffer (according to Trace::operator<). WARNING, if empty, returns an empty Trace!
-
Trace bestTrace() const
Returns the best Trace (according to Trace::operator<). WARNING, if empty, returns an empty Trace!
-
TraceBuffer(const Params::WayComputer::Search ¶ms)