Public Member Functions | Protected Attributes | List of all members
librealsense::float_option Class Reference

#include <option.h>

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

Public Member Functions

 float_option (option_range range)
 
const char * get_description () const override
 
bool is_enabled () const override
 
float query () const override
 
void set (float value) override
 
- Public Member Functions inherited from librealsense::option_base
virtual void enable_recording (std::function< void(const option &)> recording_action) override
 
option_range get_range () const override
 
bool is_valid (float value) const
 
 option_base (const option_range &opt_range)
 
- Public Member Functions inherited from librealsense::option
virtual void create_snapshot (std::shared_ptr< option > &snapshot) const
 
virtual const char * get_value_description (float) const
 
virtual bool is_read_only () const
 
virtual ~option ()=default
 
- Public Member Functions inherited from librealsense::recordable< option >
virtual ~recordable ()=default
 

Protected Attributes

float _value
 
- Protected Attributes inherited from librealsense::option_base
const option_range _opt_range
 
std::function< void(const option &)> _recording_function = [](const option&) {}
 

Detailed Description

Definition at line 232 of file option.h.

Constructor & Destructor Documentation

librealsense::float_option::float_option ( option_range  range)
inline

Definition at line 235 of file option.h.

Member Function Documentation

const char* librealsense::float_option::get_description ( ) const
inlineoverridevirtual
bool librealsense::float_option::is_enabled ( ) const
inlineoverridevirtual

Implements librealsense::option.

Definition at line 239 of file option.h.

float librealsense::float_option::query ( void  ) const
inlineoverridevirtual

Implements librealsense::option.

Definition at line 238 of file option.h.

void librealsense::float_option::set ( float  value)
overridevirtual

Implements librealsense::option.

Reimplemented in librealsense::readonly_float_option.

Definition at line 35 of file option.cpp.

Member Data Documentation

float librealsense::float_option::_value
protected

Definition at line 243 of file option.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