ArmNN
 21.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
 

Public Attributes

uint32_t m_Major
 
uint32_t m_Minor
 

Detailed Description

Definition at line 32 of file IBackendInternal.hpp.

Constructor & Destructor Documentation

◆ BackendVersion() [1/2]

constexpr BackendVersion ( )
inline

Definition at line 37 of file IBackendInternal.hpp.

Referenced by IBackendInternal::GetApiVersion().

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

◆ BackendVersion() [2/2]

constexpr BackendVersion ( uint32_t  major,
uint32_t  minor 
)
inline

Definition at line 41 of file IBackendInternal.hpp.

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

Member Function Documentation

◆ operator<=()

bool operator<= ( const BackendVersion other) const
inline

Definition at line 53 of file IBackendInternal.hpp.

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

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

◆ operator==()

bool operator== ( const BackendVersion other) const
inline

Definition at line 46 of file IBackendInternal.hpp.

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

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

Member Data Documentation

◆ m_Major

◆ m_Minor


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