22.05.01
|
OptionalBase is the common functionality between reference and non-reference optional types. More...
#include <Optional.hpp>
Public Member Functions | |
OptionalBase () noexcept | |
bool | has_value () const noexcept |
operator bool () const noexcept | |
Conversion to bool, so can be used in if-statements and similar contexts expecting a bool. More... | |
Protected Member Functions | |
OptionalBase (bool hasValue) noexcept | |
Protected Attributes | |
bool | m_HasValue |
OptionalBase is the common functionality between reference and non-reference optional types.
Definition at line 45 of file Optional.hpp.
|
inlinenoexcept |
Definition at line 48 of file Optional.hpp.
|
inlineprotectednoexcept |
Definition at line 67 of file Optional.hpp.
|
inlinenoexcept |
Definition at line 53 of file Optional.hpp.
Referenced by NetworkImpl::AddConvolution2dLayer(), NetworkImpl::AddDepthwiseConvolution2dLayer(), ProfilingDetails::AddDetailsToString(), NetworkImpl::AddFullyConnectedLayer(), NetworkImpl::AddPrecompiledLayer(), NetworkImpl::AddTransposeConvolution2dLayer(), TestLayerVisitor::CheckOptionalConstTensors(), armnnOnnxParser::CreateConstTensorImpl(), BackendRegistry::Deregister(), armnn::ExtractJsonObjects(), armnn::GetBiasDataType(), RefLayerSupport::IsConvolution2dSupported(), LayerSupportHandle::IsConvolution2dSupported(), RefLayerSupport::IsConvolution3dSupported(), LayerSupportHandle::IsConvolution3dSupported(), RefLayerSupport::IsDepthwiseConvolutionSupported(), LayerSupportHandle::IsDepthwiseConvolutionSupported(), LayerSupportHandle::IsDilatedDepthwiseConvolutionSupported(), LayerSupportHandle::IsFullyConnectedSupported(), DelegateOptions::IsLoggingEnabled(), RefLayerSupport::IsTransposeConvolution2dSupported(), LayerSupportHandle::IsTransposeConvolution2dSupported(), LayerSupportHandle::IsUnidirectionalSequenceLstmSupported(), OptionalReferenceSwitch< std::is_reference< armnn::DebugCallbackFunction >::value, armnn::DebugCallbackFunction >::operator=(), OptionalReferenceSwitch< true, T >::operator=(), Optional< armnn::LogSeverity >::operator==(), armnnUtils::Permuted(), PopulateTensorWithData(), PopulateTensorWithDataGeneric(), BackendRegistry::Register(), and TEST_SUITE().
|
inlineexplicitnoexcept |
Conversion to bool, so can be used in if-statements and similar contexts expecting a bool.
Note this is explicit so that it doesn't get implicitly converted to a bool in unwanted cases, for example "Optional<TypeA> == Optional<TypeB>" should not compile.
Definition at line 61 of file Optional.hpp.
|
protected |
Definition at line 72 of file Optional.hpp.