Intel® RealSense™ Cross Platform API
Intel Realsense Cross-platform API
Public Member Functions | List of all members
librealsense::struct_field_option< T, R, W, U > Class Template Reference

#include <option.h>

Inheritance diagram for librealsense::struct_field_option< T, R, W, U >:
librealsense::option librealsense::recordable< option >

Public Member Functions

void set (float value) override
 
float query () const override
 
option_range get_range () const override
 
bool is_enabled () const override
 
 struct_field_option (std::shared_ptr< struct_interface< T, R, W >> struct_interface, U T::*field, const option_range &range)
 
const char * get_description () const override
 
void enable_recording (std::function< void(const option &)> record_action) override
 
- Public Member Functions inherited from librealsense::option
virtual bool is_read_only () const
 
virtual const char * get_value_description (float) const
 
virtual void create_snapshot (std::shared_ptr< option > &snapshot) const override
 
virtual ~option ()=default
 
- Public Member Functions inherited from librealsense::recordable< option >
virtual ~recordable ()=default
 

Constructor & Destructor Documentation

§ struct_field_option()

template<class T , class R , class W , class U >
librealsense::struct_field_option< T, R, W, U >::struct_field_option ( std::shared_ptr< struct_interface< T, R, W >>  struct_interface,
U T::*  field,
const option_range range 
)
inlineexplicit

Member Function Documentation

§ enable_recording()

template<class T , class R , class W , class U >
void librealsense::struct_field_option< T, R, W, U >::enable_recording ( std::function< void(const option &)>  recording_function)
inlineoverridevirtual

Instruct the derived class to begin notifying on changes Derived class should call the recording_function with a reference of themselves

Implements librealsense::recordable< option >.

§ get_description()

template<class T , class R , class W , class U >
const char* librealsense::struct_field_option< T, R, W, U >::get_description ( ) const
inlineoverridevirtual

Implements librealsense::option.

§ get_range()

template<class T , class R , class W , class U >
option_range librealsense::struct_field_option< T, R, W, U >::get_range ( ) const
inlineoverridevirtual

Implements librealsense::option.

§ is_enabled()

template<class T , class R , class W , class U >
bool librealsense::struct_field_option< T, R, W, U >::is_enabled ( ) const
inlineoverridevirtual

Implements librealsense::option.

§ query()

template<class T , class R , class W , class U >
float librealsense::struct_field_option< T, R, W, U >::query ( ) const
inlineoverridevirtual

Implements librealsense::option.

§ set()

template<class T , class R , class W , class U >
void librealsense::struct_field_option< T, R, W, U >::set ( float  value)
inlineoverridevirtual

Implements librealsense::option.


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