Public Member Functions | Private Member Functions | Private Attributes | List of all members
rs::context Class Reference

Context. More...

#include <rs.hpp>

Public Member Functions

 context ()
 Creates RealSense context that is required for the rest of the API. More...
 
 context (rs_context *handle)
 
deviceget_device (int index)
 
int get_device_count () const
 
 ~context ()
 

Private Member Functions

 context (const context &)=delete
 
contextoperator= (const context &)=delete
 

Private Attributes

rs_contexthandle
 

Detailed Description

Context.

Definition at line 319 of file rs.hpp.

Constructor & Destructor Documentation

rs::context::context ( const context )
privatedelete
rs::context::context ( )
inline

Creates RealSense context that is required for the rest of the API.

Definition at line 327 of file rs.hpp.

rs::context::context ( rs_context handle)
inlineexplicit

Definition at line 334 of file rs.hpp.

rs::context::~context ( )
inline

Definition at line 336 of file rs.hpp.

Member Function Documentation

device* rs::context::get_device ( int  index)
inline

Retrieves connected device by index

Parameters
[in]indexZero-based index of device to retrieve
Returns
Requested device

Definition at line 354 of file rs.hpp.

int rs::context::get_device_count ( ) const
inline

Determines number of connected devices

Returns
Device count

Definition at line 343 of file rs.hpp.

context& rs::context::operator= ( const context )
privatedelete

Member Data Documentation

rs_context* rs::context::handle
private

Definition at line 321 of file rs.hpp.


The documentation for this class was generated from the following file:


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