HoviTron Video Pipeline
Public Member Functions | Static Public Member Functions | Static Public Attributes
Handle< OurType, HvtHandle, htype > Struct Template Reference

Public Member Functions

HvtHandle to_handle ()
 
HvtHandle to_handle ()
 
HvtHandle to_handle ()
 
HvtHandle to_handle ()
 

Static Public Member Functions

static OurType * check (HvtHandle hvtHandle)
 
static OurType * opt_check (HvtHandle hvtHandle)
 
static OurType * check (HvtHandle hvtHandle)
 
static OurType * opt_check (HvtHandle hvtHandle)
 
static OurType * check (HvtHandle hvtHandle)
 
static OurType * opt_check (HvtHandle hvtHandle)
 
static OurType * check (HvtHandle hvtHandle)
 
static OurType * opt_check (HvtHandle hvtHandle)
 

Static Public Attributes

static constexpr HvtHandleType staticType = htype
 

Detailed Description

template<typename OurType, typename HvtHandle, HvtHandleType htype>
struct Handle< OurType, HvtHandle, htype >

Definition at line 54 of file opencvStreamer.h.

Constructor & Destructor Documentation

◆ Handle() [1/4]

template<typename OurType , typename HvtHandle , HvtHandleType htype>
Handle< OurType, HvtHandle, htype >::Handle ( )
inline

Definition at line 55 of file opencvStreamer.h.

55: type(htype) {}

◆ Handle() [2/4]

template<typename OurType , typename HvtHandle , HvtHandleType htype>
Handle< OurType, HvtHandle, htype >::Handle ( )
inline

Definition at line 82 of file raytrixdll-v5/RaytrixStreamer.h.

82: type(htype) {}

◆ Handle() [3/4]

template<typename OurType , typename HvtHandle , HvtHandleType htype>
Handle< OurType, HvtHandle, htype >::Handle ( )
inline

Definition at line 76 of file raytrixdll-v6/RaytrixStreamer.h.

76: type(htype) {}

◆ Handle() [4/4]

template<typename OurType , typename HvtHandle , HvtHandleType htype>
Handle< OurType, HvtHandle, htype >::Handle ( )
inline

Definition at line 49 of file JsonStreamer.h.

49: type(htype) {}

Member Function Documentation

◆ check() [1/4]

template<typename OurType , typename HvtHandle , HvtHandleType htype>
static OurType * Handle< OurType, HvtHandle, htype >::check ( HvtHandle< OurType, HvtHandle, htype >  hvtHandle)
inlinestatic

Definition at line 58 of file opencvStreamer.h.

58 {
59 Handle* h = reinterpret_cast<Handle*>(hvtHandle);
60 if (h && staticType == h->type) {
61 return static_cast<OurType*>(h);
62 }
63 else {
64 throw HvtResult::HVT_ERROR_INVALID_HANDLE;
65 }
66 }

◆ check() [2/4]

template<typename OurType , typename HvtHandle , HvtHandleType htype>
static OurType * Handle< OurType, HvtHandle, htype >::check ( HvtHandle< OurType, HvtHandle, htype >  hvtHandle)
inlinestatic

Definition at line 85 of file raytrixdll-v5/RaytrixStreamer.h.

86 {
87 Handle* h = reinterpret_cast<Handle*>(hvtHandle);
88 if (h && staticType == h->type)
89 {
90 return static_cast<OurType*>(h);
91 }
92 else
93 {
94 throw HvtResult::HVT_ERROR_INVALID_HANDLE;
95 }
96 }

◆ check() [3/4]

template<typename OurType , typename HvtHandle , HvtHandleType htype>
static OurType * Handle< OurType, HvtHandle, htype >::check ( HvtHandle< OurType, HvtHandle, htype >  hvtHandle)
inlinestatic

Definition at line 79 of file raytrixdll-v6/RaytrixStreamer.h.

80 {
81 Handle* h = reinterpret_cast<Handle*>(hvtHandle);
82 if (h && staticType == h->type)
83 {
84 return static_cast<OurType*>(h);
85 }
86 else
87 {
88 throw HvtResult::HVT_ERROR_INVALID_HANDLE;
89 }
90 }

◆ check() [4/4]

template<typename OurType , typename HvtHandle , HvtHandleType htype>
static OurType * Handle< OurType, HvtHandle, htype >::check ( HvtHandle< OurType, HvtHandle, htype >  hvtHandle)
inlinestatic

Definition at line 52 of file JsonStreamer.h.

52 {
53 Handle* h = reinterpret_cast<Handle*>(hvtHandle);
54 if(h && staticType == h->type) {
55 return static_cast<OurType*>(h);
56 } else {
57 throw HvtResult::HVT_ERROR_INVALID_HANDLE;
58 }
59 }

◆ opt_check() [1/4]

template<typename OurType , typename HvtHandle , HvtHandleType htype>
static OurType * Handle< OurType, HvtHandle, htype >::opt_check ( HvtHandle< OurType, HvtHandle, htype >  hvtHandle)
inlinestatic

Definition at line 68 of file opencvStreamer.h.

68 {
69 if (!hvtHandle) {
70 return nullptr;
71 }
72 return check(hvtHandle);
73 }

◆ opt_check() [2/4]

template<typename OurType , typename HvtHandle , HvtHandleType htype>
static OurType * Handle< OurType, HvtHandle, htype >::opt_check ( HvtHandle< OurType, HvtHandle, htype >  hvtHandle)
inlinestatic

Definition at line 98 of file raytrixdll-v5/RaytrixStreamer.h.

99 {
100 if (!hvtHandle)
101 {
102 return nullptr;
103 }
104 return check(hvtHandle);
105 }

◆ opt_check() [3/4]

template<typename OurType , typename HvtHandle , HvtHandleType htype>
static OurType * Handle< OurType, HvtHandle, htype >::opt_check ( HvtHandle< OurType, HvtHandle, htype >  hvtHandle)
inlinestatic

Definition at line 92 of file raytrixdll-v6/RaytrixStreamer.h.

93 {
94 if (!hvtHandle)
95 {
96 return nullptr;
97 }
98 return check(hvtHandle);
99 }

◆ opt_check() [4/4]

template<typename OurType , typename HvtHandle , HvtHandleType htype>
static OurType * Handle< OurType, HvtHandle, htype >::opt_check ( HvtHandle< OurType, HvtHandle, htype >  hvtHandle)
inlinestatic

Definition at line 61 of file JsonStreamer.h.

61 {
62 if(!hvtHandle) {
63 return nullptr;
64 }
65 return check(hvtHandle);
66 }

◆ to_handle() [1/4]

template<typename OurType , typename HvtHandle , HvtHandleType htype>
HvtHandle Handle< OurType, HvtHandle, htype >::to_handle ( )
inline

Definition at line 75 of file opencvStreamer.h.

75 {
76 return reinterpret_cast<HvtHandle>(this);
77 }

◆ to_handle() [2/4]

template<typename OurType , typename HvtHandle , HvtHandleType htype>
HvtHandle Handle< OurType, HvtHandle, htype >::to_handle ( )
inline

Definition at line 107 of file raytrixdll-v5/RaytrixStreamer.h.

108 {
109 return reinterpret_cast<HvtHandle>(this);
110 }

◆ to_handle() [3/4]

template<typename OurType , typename HvtHandle , HvtHandleType htype>
HvtHandle Handle< OurType, HvtHandle, htype >::to_handle ( )
inline

Definition at line 101 of file raytrixdll-v6/RaytrixStreamer.h.

102 {
103 return reinterpret_cast<HvtHandle>(this);
104 }

◆ to_handle() [4/4]

template<typename OurType , typename HvtHandle , HvtHandleType htype>
HvtHandle Handle< OurType, HvtHandle, htype >::to_handle ( )
inline

Definition at line 68 of file JsonStreamer.h.

68 {
69 return reinterpret_cast<HvtHandle>(this);
70 }

Field Documentation

◆ staticType

template<typename OurType , typename HvtHandle , HvtHandleType htype>
static constexpr HvtHandleType Handle< OurType, HvtHandle, htype >::staticType = htype
staticconstexpr

Definition at line 56 of file opencvStreamer.h.


The documentation for this struct was generated from the following files: