context.h
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2015 Intel Corporation. All Rights Reserved.
3 
4 #pragma once
5 #ifndef LIBREALSENSE_CONTEXT_H
6 #define LIBREALSENSE_CONTEXT_H
7 
8 #include "types.h"
9 #include "uvc.h"
10 
12 {
13  std::shared_ptr<rsimpl::uvc::context> context;
14  std::vector<std::shared_ptr<rs_device>> devices;
15 
18 
19  static rs_context* acquire_instance();
20  static void release_instance();
21 
22  size_t get_device_count() const override;
23  rs_device * get_device(int index) const override;
24 private:
25  static int ref_count;
26  static std::mutex instance_lock;
29 };
30 
31 #endif
size_t get_device_count() const override
Definition: context.cpp:117
rs_device * get_device(int index) const override
Definition: context.cpp:122
static int ref_count
Definition: context.h:25
static std::mutex instance_lock
Definition: context.h:26
GLsizei const GLchar *const * string
Definition: glext.h:683
static rs_context * instance
Definition: context.h:27
GLuint index
Definition: glext.h:655
std::shared_ptr< rsimpl::uvc::context > context
Definition: context.h:13
static rs_context * acquire_instance()
Definition: context.cpp:93
static std::string api_version
Definition: context.h:28
std::vector< std::shared_ptr< rs_device > > devices
Definition: context.h:14
static void release_instance()
Definition: context.cpp:103


librealsense
Author(s): Sergey Dorodnicov , Mark Horn , Reagan Lopez
autogenerated on Fri Mar 13 2020 03:16:16