#include <context.h>
Public Member Functions | |
rs_device * | get_device (int index) const override |
size_t | get_device_count () const override |
rs_context_base () | |
~rs_context_base () | |
Static Public Member Functions | |
static rs_context * | acquire_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_context * | instance = nullptr |
static std::mutex | instance_lock |
static int | ref_count = 0 |
Definition at line 54 of file context.cpp.
Definition at line 112 of file context.cpp.
rs_context * rs_context_base::acquire_instance | ( | ) | [static] |
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.
void rs_context_base::release_instance | ( | ) | [static] |
Definition at line 103 of file context.cpp.
std::string rs_context_base::api_version = std::string(rs_api_version.begin(),rs_api_version.end()) [static, private] |
std::shared_ptr<rsimpl::uvc::context> rs_context_base::context |
std::vector<std::shared_ptr<rs_device> > rs_context_base::devices |
rs_context * rs_context_base::instance = nullptr [static, private] |
std::mutex rs_context_base::instance_lock [static, private] |
int rs_context_base::ref_count = 0 [static, private] |