20.02
|
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 Network::AddConcatLayer(), Network::AddConvolution2dLayer(), Network::AddElementwiseUnaryLayer(), Network::AddTransposeConvolution2dLayer(), BOOST_AUTO_TEST_CASE(), TestLayerVisitor::CheckOptionalConstTensors(), CounterDirectory::Clear(), armnn::GetBiasDataType(), RefLayerSupport::IsConvolution2dSupported(), RefLayerSupport::IsDepthwiseConvolutionSupported(), RefLayerSupport::IsTransposeConvolution2dSupported(), OptionalReferenceSwitch< std::is_reference< int32_t >::value, int32_t >::operator=(), OptionalReferenceSwitch< true, T >::operator=(), Optional< armnnTfLiteParser::ITfLiteParser::TfLiteParserOptions >::operator==(), PeriodicCounterSelectionCommandHandler::PeriodicCounterSelectionCommandHandler(), CounterDirectory::RegisterCounter(), CounterDirectory::RegisterCounterSet(), CounterDirectory::RegisterDevice(), VerifyTimelineEntityBinaryPacketData(), VerifyTimelineEventBinaryPacket(), VerifyTimelineLabelBinaryPacketData(), VerifyTimelineRelationshipBinaryPacketData(), QuantizerVisitor::VisitConvolution2dLayer(), SerializerVisitor::VisitConvolution2dLayer(), QuantizerVisitor::VisitDepthwiseConvolution2dLayer(), SerializerVisitor::VisitDepthwiseConvolution2dLayer(), QuantizerVisitor::VisitFullyConnectedLayer(), QuantizerVisitor::VisitTransposeConvolution2dLayer(), and SerializerVisitor::VisitTransposeConvolution2dLayer().
|
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.