Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
rs2::tools::converter::converter_base Class Referenceabstract

#include <converter.hpp>

Inheritance diagram for rs2::tools::converter::converter_base:
Inheritance graph

Public Member Functions

virtual void convert (rs2::frame &frame)=0
virtual std::string get_statistics ()
virtual std::string name () const =0
void wait ()

Protected Member Functions

template<typename F >
void add_sub_worker (const F &f)
bool frames_map_get_and_set (rs2_stream streamType, frame_number_t frameNumber)
template<typename F >
void start_worker (const F &f)
void wait_sub_workers ()

Protected Attributes

std::unordered_map< int, std::unordered_set< frame_number_t > > _framesMap
std::vector< std::thread > _subWorkers
std::thread _worker

Detailed Description

Definition at line 44 of file converter.hpp.

Member Function Documentation

template<typename F >
void rs2::tools::converter::converter_base::add_sub_worker ( const F &  f)

Definition at line 72 of file converter.hpp.

virtual void rs2::tools::converter::converter_base::convert ( rs2::frame frame)
pure virtual
bool rs2::tools::converter::converter_base::frames_map_get_and_set ( rs2_stream  streamType,
frame_number_t  frameNumber 

Definition at line 51 of file converter.hpp.

virtual std::string rs2::tools::converter::converter_base::get_statistics ( )

Definition at line 91 of file converter.hpp.

virtual std::string rs2::tools::converter::converter_base::name ( ) const
pure virtual
template<typename F >
void rs2::tools::converter::converter_base::start_worker ( const F &  f)

Definition at line 67 of file converter.hpp.

void rs2::tools::converter::converter_base::wait ( )

Definition at line 107 of file converter.hpp.

void rs2::tools::converter::converter_base::wait_sub_workers ( )

Definition at line 77 of file converter.hpp.

Member Data Documentation

std::unordered_map<int, std::unordered_set<frame_number_t> > rs2::tools::converter::converter_base::_framesMap

Definition at line 48 of file converter.hpp.

std::vector<std::thread> rs2::tools::converter::converter_base::_subWorkers

Definition at line 47 of file converter.hpp.

std::thread rs2::tools::converter::converter_base::_worker

Definition at line 46 of file converter.hpp.

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

Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:41