ArmNN
 22.02
BackendVersion Struct Reference

#include <IBackendInternal.hpp>

Public Member Functions

constexpr BackendVersion ()
 
constexpr BackendVersion (uint32_t major, uint32_t minor)
 
bool operator== (const BackendVersion &other) const
 
bool operator<= (const BackendVersion &other) const
 
bool operator>= (const BackendVersion &other) const
 

Public Attributes

uint32_t m_Major
 
uint32_t m_Minor
 

Detailed Description

Definition at line 31 of file IBackendInternal.hpp.

Constructor & Destructor Documentation

◆ BackendVersion() [1/2]

constexpr BackendVersion ( )
inline

Definition at line 36 of file IBackendInternal.hpp.

Referenced by IBackendInternal::GetApiVersion().

37  : m_Major(0)
38  , m_Minor(0)
39  {}

◆ BackendVersion() [2/2]

constexpr BackendVersion ( uint32_t  major,
uint32_t  minor 
)
inline

Definition at line 40 of file IBackendInternal.hpp.

41  : m_Major(major)
42  , m_Minor(minor)
43  {}

Member Function Documentation

◆ operator<=()

bool operator<= ( const BackendVersion other) const
inline

Definition at line 52 of file IBackendInternal.hpp.

References BackendVersion::m_Major, and BackendVersion::m_Minor.

53  {
54  return this->m_Major < other.m_Major ||
55  (this->m_Major == other.m_Major &&
56  this->m_Minor <= other.m_Minor);
57  }

◆ operator==()

bool operator== ( const BackendVersion other) const
inline

Definition at line 45 of file IBackendInternal.hpp.

References BackendVersion::m_Major, and BackendVersion::m_Minor.

46  {
47  return this == &other ||
48  (this->m_Major == other.m_Major &&
49  this->m_Minor == other.m_Minor);
50  }

◆ operator>=()

bool operator>= ( const BackendVersion other) const
inline

Definition at line 59 of file IBackendInternal.hpp.

References BackendVersion::m_Major, and BackendVersion::m_Minor.

60  {
61  return this->m_Major > other.m_Major ||
62  (this->m_Major == other.m_Major &&
63  this->m_Minor >= other.m_Minor);
64  }

Member Data Documentation

◆ m_Major

◆ m_Minor


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