HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
onnxruntime::utils::ContainerChecker Class Reference

#include <data_types_internal.h>

Public Member Functions

 ContainerChecker (MLDataType)
 
 ~ContainerChecker ()=default
 
bool IsMap () const noexcept
 
bool IsSequence () const noexcept
 
template<class T >
bool IsSequenceOf () const
 
template<class K , class V >
bool IsMapOf () const
 

Detailed Description

Provides generic interface to test whether MLDataType is a Sequence, Map or an Opaque type including arbitrary recursive definitions without querying DataTypeImpl::GetType<T> for all known complex types

Definition at line 475 of file data_types_internal.h.

Constructor & Destructor Documentation

onnxruntime::utils::ContainerChecker::ContainerChecker ( MLDataType  )
explicit
onnxruntime::utils::ContainerChecker::~ContainerChecker ( )
default

Member Function Documentation

bool onnxruntime::utils::ContainerChecker::IsMap ( ) const
inlinenoexcept

Definition at line 543 of file data_types_internal.h.

template<class K , class V >
bool onnxruntime::utils::ContainerChecker::IsMapOf ( ) const
inline

Definition at line 560 of file data_types_internal.h.

bool onnxruntime::utils::ContainerChecker::IsSequence ( ) const
inlinenoexcept

Definition at line 548 of file data_types_internal.h.

template<class T >
bool onnxruntime::utils::ContainerChecker::IsSequenceOf ( ) const
inline

Definition at line 554 of file data_types_internal.h.


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