Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
librealsense::composite_matcher Class Referenceabstract

#include <sync.h>

Inheritance diagram for librealsense::composite_matcher:
Inheritance graph
[legend]

Public Member Functions

virtual bool are_equivalent (frame_holder &a, frame_holder &b)=0
 
virtual void clean_inactive_streams (frame_holder &f)=0
 
 composite_matcher (std::vector< std::shared_ptr< matcher >> matchers, std::string name)
 
void dispatch (frame_holder f, const syncronization_environment &env) override
 
std::shared_ptr< matcherfind_matcher (const frame_holder &f)
 
std::string frames_to_string (std::vector< librealsense::matcher * > matchers)
 
virtual bool is_smaller_than (frame_holder &a, frame_holder &b)=0
 
virtual bool skip_missing_stream (std::vector< matcher * > synced, matcher *missing, const syncronization_environment &env)=0
 
virtual void stop () override
 
void sync (frame_holder f, const syncronization_environment &env) override
 
virtual void update_last_arrived (frame_holder &f, matcher *m)=0
 
- Public Member Functions inherited from librealsense::matcher
callback_invocation_holder begin_callback ()
 
bool get_active () const
 
virtual std::string get_name () const override
 
const std::vector< stream_id > & get_streams () const override
 
const std::vector< rs2_stream > & get_streams_types () const override
 
 matcher (std::vector< stream_id > streams_id={})
 
void set_active (const bool active)
 
virtual void set_callback (sync_callback f) override
 
virtual ~matcher ()
 

Protected Member Functions

virtual void update_next_expected (const frame_holder &f)=0
 

Protected Attributes

std::map< matcher *, single_consumer_frame_queue< frame_holder > > _frames_queue
 
std::map< stream_id, std::shared_ptr< matcher > > _matchers
 
std::map< matcher *, double > _next_expected
 
std::map< matcher *, rs2_timestamp_domain_next_expected_domain
 
- Protected Attributes inherited from librealsense::matcher
bool _active = true
 
sync_callback _callback
 
callbacks_heap _callback_inflight
 
std::string _name
 
std::vector< stream_id_streams_id
 
std::vector< rs2_stream_streams_type
 

Detailed Description

Definition at line 123 of file sync.h.

Constructor & Destructor Documentation

librealsense::composite_matcher::composite_matcher ( std::vector< std::shared_ptr< matcher >>  matchers,
std::string  name 
)

Definition at line 104 of file sync.cpp.

Member Function Documentation

virtual bool librealsense::composite_matcher::are_equivalent ( frame_holder a,
frame_holder b 
)
pure virtual
virtual void librealsense::composite_matcher::clean_inactive_streams ( frame_holder f)
pure virtual
void librealsense::composite_matcher::dispatch ( frame_holder  f,
const syncronization_environment env 
)
overridevirtual

Implements librealsense::matcher_interface.

Definition at line 126 of file sync.cpp.

std::shared_ptr< matcher > librealsense::composite_matcher::find_matcher ( const frame_holder f)

Definition at line 146 of file sync.cpp.

std::string librealsense::composite_matcher::frames_to_string ( std::vector< librealsense::matcher * >  matchers)

Definition at line 249 of file sync.cpp.

virtual bool librealsense::composite_matcher::is_smaller_than ( frame_holder a,
frame_holder b 
)
pure virtual
virtual bool librealsense::composite_matcher::skip_missing_stream ( std::vector< matcher * >  synced,
matcher missing,
const syncronization_environment env 
)
pure virtual
void librealsense::composite_matcher::stop ( )
overridevirtual

Reimplemented from librealsense::matcher.

Definition at line 241 of file sync.cpp.

void librealsense::composite_matcher::sync ( frame_holder  f,
const syncronization_environment env 
)
overridevirtual

Reimplemented from librealsense::matcher.

Reimplemented in librealsense::composite_identity_matcher.

Definition at line 261 of file sync.cpp.

virtual void librealsense::composite_matcher::update_last_arrived ( frame_holder f,
matcher m 
)
pure virtual
virtual void librealsense::composite_matcher::update_next_expected ( const frame_holder f)
protectedpure virtual

Member Data Documentation

std::map<matcher*, single_consumer_frame_queue<frame_holder> > librealsense::composite_matcher::_frames_queue
protected

Definition at line 145 of file sync.h.

std::map<stream_id, std::shared_ptr<matcher> > librealsense::composite_matcher::_matchers
protected

Definition at line 146 of file sync.h.

std::map<matcher*, double> librealsense::composite_matcher::_next_expected
protected

Definition at line 147 of file sync.h.

std::map<matcher*, rs2_timestamp_domain> librealsense::composite_matcher::_next_expected_domain
protected

Definition at line 148 of file sync.h.


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


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