From 6940dd720ebb6b3d1df8ca203ab696daefe58189 Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Fri, 20 Mar 2020 12:25:56 +0000 Subject: renamed Documentation folder 20.02 and added .nojekyll file Signed-off-by: Jim Flynn --- 20.02/classarmnn_1_1_optional.xhtml | 444 ++++++++++++++++++++++++++++++++++++ 1 file changed, 444 insertions(+) create mode 100644 20.02/classarmnn_1_1_optional.xhtml (limited to '20.02/classarmnn_1_1_optional.xhtml') diff --git a/20.02/classarmnn_1_1_optional.xhtml b/20.02/classarmnn_1_1_optional.xhtml new file mode 100644 index 0000000000..25b1e0d083 --- /dev/null +++ b/20.02/classarmnn_1_1_optional.xhtml @@ -0,0 +1,444 @@ + + + + + + + + + + + + + +ArmNN: Optional< T > Class Template Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
Optional< T > Class Template Referencefinal
+
+
+ +

#include <Optional.hpp>

+
+Inheritance diagram for Optional< T >:
+
+
+ + +OptionalReferenceSwitch< std::is_reference< T >::value, T > +OptionalBase + +
+ + + + + + + +

+Public Types

using BaseSwitch = OptionalReferenceSwitch< std::is_reference< T >::value, T >
 
- Public Types inherited from OptionalReferenceSwitch< std::is_reference< T >::value, T >
using Base = OptionalBase
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

 Optional () noexcept
 
 Optional (const T &value)
 
 Optional (EmptyOptional empty)
 
 Optional (const Optional &other)
 
 Optional (const BaseSwitch &other)
 
template<class... Args>
 Optional (ConstructInPlace, Args &&... args)
 
bool operator== (const Optional< T > &rhs) const
 Two optionals are considered equal if they are both empty or both contain values which themselves are considered equal (via their own == operator). More...
 
- Public Member Functions inherited from OptionalReferenceSwitch< std::is_reference< T >::value, T >
 OptionalReferenceSwitch () noexcept
 
 OptionalReferenceSwitch (EmptyOptional) noexcept
 
 OptionalReferenceSwitch (const T &value)
 
 OptionalReferenceSwitch (ConstructInPlace, Args &&... args)
 
 OptionalReferenceSwitch (const OptionalReferenceSwitch &other)
 
OptionalReferenceSwitchoperator= (const T &value)
 
OptionalReferenceSwitchoperator= (const OptionalReferenceSwitch &other)
 
OptionalReferenceSwitchoperator= (EmptyOptional)
 
 ~OptionalReferenceSwitch ()
 
void reset ()
 
const T & value () const
 
T & value ()
 
- Public Member Functions inherited from OptionalBase
 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...
 
+ + + + + + + +

+Additional Inherited Members

- Protected Member Functions inherited from OptionalBase
 OptionalBase (bool hasValue) noexcept
 
- Protected Attributes inherited from OptionalBase
bool m_HasValue
 
+

Detailed Description

+

template<typename T>
+class armnn::Optional< T >

+ + +

Definition at line 270 of file Optional.hpp.

+

Member Typedef Documentation

+ +

◆ BaseSwitch

+ +
+
+ + + + +
using BaseSwitch = OptionalReferenceSwitch<std::is_reference<T>::value, T>
+
+ +

Definition at line 273 of file Optional.hpp.

+ +
+
+

Constructor & Destructor Documentation

+ +

◆ Optional() [1/6]

+ +
+
+ + + + + +
+ + + + + + + +
Optional ()
+
+inlinenoexcept
+
+ +

Definition at line 275 of file Optional.hpp.

+
275 : BaseSwitch{} {}
OptionalReferenceSwitch< std::is_reference< T >::value, T > BaseSwitch
Definition: Optional.hpp:273
+
+
+
+ +

◆ Optional() [2/6]

+ +
+
+ + + + + +
+ + + + + + + + +
Optional (const T & value)
+
+inline
+
+ +

Definition at line 276 of file Optional.hpp.

+
276 : BaseSwitch{value} {}
+
OptionalReferenceSwitch< std::is_reference< T >::value, T > BaseSwitch
Definition: Optional.hpp:273
+
+
+
+ +

◆ Optional() [3/6]

+ +
+
+ + + + + +
+ + + + + + + + +
Optional (EmptyOptional< T > empty)
+
+inline
+
+ +

Definition at line 277 of file Optional.hpp.

+
277 : BaseSwitch{empty} {}
OptionalReferenceSwitch< std::is_reference< T >::value, T > BaseSwitch
Definition: Optional.hpp:273
+
+
+
+ +

◆ Optional() [4/6]

+ +
+
+ + + + + +
+ + + + + + + + +
Optional (const Optional< T > & other)
+
+inline
+
+ +

Definition at line 278 of file Optional.hpp.

+
278 : BaseSwitch{other} {}
OptionalReferenceSwitch< std::is_reference< T >::value, T > BaseSwitch
Definition: Optional.hpp:273
+
+
+
+ +

◆ Optional() [5/6]

+ +
+
+ + + + + +
+ + + + + + + + +
Optional (const BaseSwitchother)
+
+inline
+
+ +

Definition at line 279 of file Optional.hpp.

+
279 : BaseSwitch{other} {}
OptionalReferenceSwitch< std::is_reference< T >::value, T > BaseSwitch
Definition: Optional.hpp:273
+
+
+
+ +

◆ Optional() [6/6]

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + +
Optional (ConstructInPlace ,
Args &&... args 
)
+
+inlineexplicit
+
+ +

Definition at line 282 of file Optional.hpp.

+
282  :
283  BaseSwitch(CONSTRUCT_IN_PLACE, std::forward<Args>(args)...) {}
#define CONSTRUCT_IN_PLACE
Definition: Optional.hpp:41
+
OptionalReferenceSwitch< std::is_reference< T >::value, T > BaseSwitch
Definition: Optional.hpp:273
+
+
+
+

Member Function Documentation

+ +

◆ operator==()

+ +
+
+ + + + + +
+ + + + + + + + +
bool operator== (const Optional< T > & rhs) const
+
+inline
+
+ +

Two optionals are considered equal if they are both empty or both contain values which themselves are considered equal (via their own == operator).

+ +

Definition at line 287 of file Optional.hpp.

+
288  {
289  if (!this->has_value() && !rhs.has_value())
290  {
291  return true;
292  }
293  if (this->has_value() && rhs.has_value() && this->value() == rhs.value())
294  {
295  return true;
296  }
297  return false;
298  }
+
bool has_value() const noexcept
Definition: Optional.hpp:53
+
+
+
+
The documentation for this class was generated from the following file: +
+
+ + + + -- cgit v1.2.1