RTC Toolkit 5.1.0
Loading...
Searching...
No Matches
Classes | Namespaces | Variables
typeTraits.hpp File Reference

Provides useful mechanisms to test various type traits. More...

#include <complex>
#include <gsl/span>
#include <utility>
#include <vector>
#include <rtctk/componentFramework/matrixBuffer.hpp>
#include <rtctk/componentFramework/matrixSpan.hpp>

Go to the source code of this file.

Classes

struct  rtctk::componentFramework::IsVectorType< typename >
 Structure for detecting std::vector types using SFINAE. More...
 
struct  rtctk::componentFramework::IsVectorType< std::vector< T, A > >
 Structure for detecting std::vector types using SFINAE. More...
 
struct  rtctk::componentFramework::IsMatrixBufferType< typename >
 Structure for detecting MatrixBuffer types using SFINAE. More...
 
struct  rtctk::componentFramework::IsMatrixBufferType< MatrixBuffer< T, A > >
 Structure for detecting MatrixBuffer types using SFINAE. More...
 
struct  rtctk::componentFramework::IsSpanType< typename >
 Structure for detecting gsl::span types using SFINAE. More...
 
struct  rtctk::componentFramework::IsSpanType< gsl::span< T, N > >
 Structure for detecting gsl::span types using SFINAE. More...
 
struct  rtctk::componentFramework::IsMatrixSpanType< typename >
 Structure for detecting MatrixSpan types using SFINAE. More...
 
struct  rtctk::componentFramework::IsMatrixSpanType< MatrixSpan< T > >
 Structure for detecting MatrixSpan types using SFINAE. More...
 
struct  rtctk::componentFramework::IsStdArrayType< typename >
 Structure for detecting std::array types using SFINAE. More...
 
struct  rtctk::componentFramework::IsStdArrayType< std::array< T, N > >
 Structure for detecting std::array types using SFINAE. More...
 
struct  rtctk::componentFramework::IsStaticSpanType< typename >
 Structure for detecting gsl::span types of fixed size using SFINAE. More...
 
struct  rtctk::componentFramework::IsStaticSpanType< gsl::span< T, N > >
 Structure for detecting gsl::span types of fixed size using SFINAE. More...
 
struct  rtctk::componentFramework::IsDynamicSpanType< typename >
 Structure for detecting gsl::span types of dynamic size using SFINAE. More...
 
struct  rtctk::componentFramework::IsDynamicSpanType< gsl::span< T, N > >
 Structure for detecting gsl::span types of dynamic size using SFINAE. More...
 
struct  rtctk::componentFramework::IsSupportedUriSchemeDefined< class, class >
 Structure for detecting if a class declared a member called SUPPORTED_URI_SCHEME using SFINAE. More...
 
struct  rtctk::componentFramework::IsSupportedUriSchemeDefined< T, std::void_t< decltype(T::SUPPORTED_URI_SCHEME)> >
 Structure for detecting if a class declared a member called SUPPORTED_URI_SCHEME using SFINAE. More...
 
struct  rtctk::componentFramework::IsAdapterIdTypeDefined< class, class >
 Structure for detecting if a class declared a type called AdapterIdType using SFINAE. More...
 
struct  rtctk::componentFramework::IsAdapterIdTypeDefined< T, std::void_t< decltype(std::declval< typename T::AdapterIdType >())> >
 Structure for detecting if a class declared a type called AdapterIdType using SFINAE. More...
 
struct  rtctk::componentFramework::IsComplexType< typename >
 Structure for detecting std::vector types using SFINAE. More...
 
struct  rtctk::componentFramework::IsComplexType< std::complex< T > >
 Structure for detecting std::vector types using SFINAE. More...
 

Namespaces

namespace  rtctk
 
namespace  rtctk::componentFramework
 

Variables

template<typename T >
constexpr bool rtctk::componentFramework::IS_VECTOR_TYPE = IsVectorType<T>::value
 Is true if the type is a std::vector<U> of some type U.
 
template<typename T >
constexpr bool rtctk::componentFramework::IS_MATRIX_BUFFER_TYPE = IsMatrixBufferType<T>::value
 Is true if the type is a MatrixBuffer<U> of some type U.
 
template<typename T >
constexpr bool rtctk::componentFramework::IS_SPAN_TYPE = IsSpanType<T>::value
 Is true if the type is a gsl::span<U> of some type U.
 
template<typename T >
constexpr bool rtctk::componentFramework::IS_MATRIX_SPAN_TYPE = IsMatrixSpanType<T>::value
 Is true if the type is a MatrixSpan<U> of some type U.
 
template<typename T >
constexpr bool rtctk::componentFramework::IS_STD_ARRAY_TYPE = IsStdArrayType<T>::value
 Is true if the type is a std::array<U> of some type U.
 
template<typename T >
constexpr bool rtctk::componentFramework::IS_STATIC_SPAN_TYPE = IsStaticSpanType<T>::value
 Is true if the type is a gsl::span type with fixed size.
 
template<typename T >
constexpr bool rtctk::componentFramework::IS_DYNAMIC_SPAN_TYPE = IsDynamicSpanType<T>::value
 Is true if the type is a gsl::span type with dynamic size.
 
template<typename T >
constexpr bool rtctk::componentFramework::IS_SUPPORTED_URI_SCHEME_DEFINED = IsSupportedUriSchemeDefined<T>::value
 Is true if the class contains the member SUPPORTED_URI_SCHEME.
 
template<typename T >
constexpr bool rtctk::componentFramework::IS_ADAPTER_ID_TYPE_DEFINED = IsAdapterIdTypeDefined<T>::value
 Is true if the class contains the type declaration for AdapterIdType.
 
template<typename T >
constexpr bool rtctk::componentFramework::IS_COMPLEX_TYPE = IsComplexType<T>::value
 Is true if the type is a std::complex<U> of some type U.
 

Detailed Description

Provides useful mechanisms to test various type traits.