Class AnyFrameSetSource¶
Defined in File frame_set_source_utils.h
Inheritance Relationships¶
Base Type¶
public ouster::sdk::core::FrameSetSourceWrapperClass FrameSetSourceWrapper
Class Documentation¶
-
class AnyFrameSetSource : public ouster::sdk::core::FrameSetSourceWrapper¶
Wraps a shared pointer to a FrameSetSource to allow easy use of it by value.
Public Functions
-
AnyFrameSetSource(std::unique_ptr<FrameSetSource> source)¶
Construct an AnyFrameSetSource from a provided source, taking ownership of it.
- Parameters:
source[in] the source to wrap and take ownership of
-
virtual FrameSetIterator begin() const override¶
Provides each frame from all sensors in time order.
- Returns:
start iterator for all sensors
-
virtual FrameSetIterator begin(int idx) const override¶
Provides frames from a single sensor in time order If idx < 0 provides frames from all sensors.
- Parameters:
sensor_index[in] sensor index
sensor_index[in] sensor index
- Throws:
std::runtime_error – if sensor_idx >= number of sensors
- Returns:
start iterator for the sensor with the given index
-
virtual FrameSetIterator end() const override¶
Return the end iterator.
- Returns:
end iterator
-
virtual std::unique_ptr<FrameSetSource> move() override¶
move into a newly allocated item
- Returns:
a unique pointer to a newly allocated
FrameSetSourceinstance containing the moved-from state.
-
std::shared_ptr<FrameSetSource> child() const¶
Get the FrameSetSource wrapped by this FrameSetSource.
- Returns:
wrapped FrameSetSource
-
AnyFrameSetSource(std::unique_ptr<FrameSetSource> source)¶