Public Member Functions | Static Public Member Functions | Public Attributes | Static Private Attributes
rs_context_base Struct Reference

#include <context.h>

Inheritance diagram for rs_context_base:
Inheritance graph
[legend]

List of all members.

Public Member Functions

rs_deviceget_device (int index) const override
size_t get_device_count () const override
 rs_context_base ()
 ~rs_context_base ()

Static Public Member Functions

static rs_contextacquire_instance ()
static void release_instance ()

Public Attributes

std::shared_ptr
< rsimpl::uvc::context > 
context
std::vector< std::shared_ptr
< rs_device > > 
devices

Static Private Attributes

static std::string api_version = std::string(rs_api_version.begin(),rs_api_version.end())
static rs_contextinstance = nullptr
static std::mutex instance_lock
static int ref_count = 0

Detailed Description

Definition at line 11 of file context.h.


Constructor & Destructor Documentation

Definition at line 54 of file context.cpp.

Definition at line 112 of file context.cpp.


Member Function Documentation

Definition at line 93 of file context.cpp.

rs_device * rs_context_base::get_device ( int  index) const [override, virtual]

Implements rs_context.

Definition at line 122 of file context.cpp.

size_t rs_context_base::get_device_count ( ) const [override, virtual]

Implements rs_context.

Definition at line 117 of file context.cpp.

Definition at line 103 of file context.cpp.


Member Data Documentation

std::string rs_context_base::api_version = std::string(rs_api_version.begin(),rs_api_version.end()) [static, private]

Definition at line 28 of file context.h.

std::shared_ptr<rsimpl::uvc::context> rs_context_base::context

Definition at line 13 of file context.h.

std::vector<std::shared_ptr<rs_device> > rs_context_base::devices

Definition at line 14 of file context.h.

rs_context * rs_context_base::instance = nullptr [static, private]

Definition at line 27 of file context.h.

std::mutex rs_context_base::instance_lock [static, private]

Definition at line 26 of file context.h.

int rs_context_base::ref_count = 0 [static, private]

Definition at line 25 of file context.h.


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


librealsense
Author(s): Sergey Dorodnicov , Mark Horn , Reagan Lopez
autogenerated on Tue Jun 25 2019 19:54:41