SOMHunter Core
sh::FrameRange Struct Reference

Represents CONTINOUS range of frames. More...

#include <dataset-frames.h>

Public Member Functions

 FrameRange ()=default
 
 FrameRange (std::vector< VideoFrame >::iterator b, std::vector< VideoFrame >::iterator e)
 
size_t size () const
 
const VideoFrameoperator[] (size_t idx) const
 Returns VideoFrame reference to the frame with given index in this frame range. More...
 
VideoFrameoperator[] (size_t idx)
 
std::vector< VideoFrame >::const_iterator begin () const
 
std::vector< VideoFrame >::iterator begin ()
 
std::vector< VideoFrame >::const_iterator end () const
 
std::vector< VideoFrame >::iterator end ()
 

Public Attributes

std::vector< VideoFrame >::iterator _begin
 
std::vector< VideoFrame >::iterator _end
 

Detailed Description

Represents CONTINOUS range of frames.

Constructor & Destructor Documentation

◆ FrameRange() [1/2]

sh::FrameRange::FrameRange ( )
default

◆ FrameRange() [2/2]

sh::FrameRange::FrameRange ( std::vector< VideoFrame >::iterator  b,
std::vector< VideoFrame >::iterator  e 
)
inline

Member Function Documentation

◆ begin() [1/2]

std::vector<VideoFrame>::iterator sh::FrameRange::begin ( )
inline

◆ begin() [2/2]

std::vector<VideoFrame>::const_iterator sh::FrameRange::begin ( ) const
inline

◆ end() [1/2]

std::vector<VideoFrame>::iterator sh::FrameRange::end ( )
inline

◆ end() [2/2]

std::vector<VideoFrame>::const_iterator sh::FrameRange::end ( ) const
inline

◆ operator[]() [1/2]

VideoFrame& sh::FrameRange::operator[] ( size_t  idx)
inline

◆ operator[]() [2/2]

const VideoFrame& sh::FrameRange::operator[] ( size_t  idx) const
inline

Returns VideoFrame reference to the frame with given index in this frame range.

◆ size()

size_t sh::FrameRange::size ( ) const
inline

Member Data Documentation

◆ _begin

std::vector<VideoFrame>::iterator sh::FrameRange::_begin

◆ _end

std::vector<VideoFrame>::iterator sh::FrameRange::_end

The documentation for this struct was generated from the following file: