Public Member Functions | Static Public Member Functions | Public Attributes | Static Private Attributes | List of all members
rs_context_base Struct Reference

#include <context.h>

Inheritance diagram for rs_context_base:
Inheritance graph
[legend]

Public Member Functions

rs_deviceget_device (int index) const override
 
size_t get_device_count () const override
 
 rs_context_base ()
 
 ~rs_context_base ()
 
- Public Member Functions inherited from rs_context
virtual ~rs_context ()
 

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

rs_context_base::rs_context_base ( )

Definition at line 54 of file context.cpp.

rs_context_base::~rs_context_base ( )

Definition at line 112 of file context.cpp.

Member Function Documentation

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
overridevirtual

Implements rs_context.

Definition at line 122 of file context.cpp.

size_t rs_context_base::get_device_count ( ) const
overridevirtual

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.

Member Data Documentation

std::string rs_context_base::api_version = std::string(rs_api_version.begin(),rs_api_version.end())
staticprivate

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
staticprivate

Definition at line 27 of file context.h.

std::mutex rs_context_base::instance_lock
staticprivate

Definition at line 26 of file context.h.

int rs_context_base::ref_count = 0
staticprivate

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 Fri Mar 13 2020 03:16:19