Classes | Namespaces | Macros | Functions
extension.h File Reference
#include "../../include/librealsense2/h/rs_types.h"
#include <memory>
#include <functional>
Include dependency graph for extension.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  librealsense::extendable_interface
 
class  librealsense::extension_snapshot
 
struct  librealsense::ExtensionToType< rs2_extension >
 
class  librealsense::recordable< T >
 
struct  librealsense::TypeToExtension< T >
 

Namespaces

 librealsense
 

Macros

#define MAP_EXTENSION(E, T)
 

Functions

template<typename T , typename P >
std::shared_ptr< T > librealsense::As (std::shared_ptr< P > ptr)
 
template<typename T , typename P >
T * librealsense::As (P *ptr)
 
template<typename T , typename P >
bool librealsense::Is (std::shared_ptr< P > ptr)
 
template<typename T , typename P >
bool librealsense::Is (P *ptr)
 
template<typename To >
bool librealsense::try_extend (std::shared_ptr< extension_snapshot > from, void **ext)
 

Macro Definition Documentation

#define MAP_EXTENSION (   E,
 
)
Value:
template<> struct ExtensionToType<E> { \
using type = T; \
static constexpr const char* to_string() { return #T; }; \
}; \
template<> struct TypeToExtension<T> { \
static constexpr rs2_extension value = E; \
static constexpr const char* to_string() { return #T; }; \
} \
GLfloat value
rs2_extension
Specifies advanced interfaces (capabilities) objects may implement.
Definition: rs_types.h:166
GLenum type
std::string to_string(T value)

Preprocessor Macro to define mapping between rs2_extension and their respective interface (and vice versa)

Definition at line 10 of file extension.h.



librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:25