ArmNN
 21.11
PredicateResult Class Reference

#include <PredicateResult.hpp>

Public Member Functions

 PredicateResult (bool result)
 
 PredicateResult (const PredicateResult &predicateResult)
 
void SetResult (bool newResult)
 
std::stringstream & Message ()
 
bool operator! () const
 
void operator= (PredicateResult otherPredicateResult)
 

Public Attributes

bool m_Result
 
std::stringstream m_Message
 

Detailed Description

Definition at line 12 of file PredicateResult.hpp.

Constructor & Destructor Documentation

◆ PredicateResult() [1/2]

PredicateResult ( bool  result)
inlineexplicit

Definition at line 15 of file PredicateResult.hpp.

16  : m_Result(result)
17  {}

◆ PredicateResult() [2/2]

PredicateResult ( const PredicateResult predicateResult)
inline

Definition at line 19 of file PredicateResult.hpp.

20  : m_Result(predicateResult.m_Result)
21  , m_Message(predicateResult.m_Message.str())
22  {}
std::stringstream m_Message

Member Function Documentation

◆ Message()

std::stringstream& Message ( )
inline

Definition at line 29 of file PredicateResult.hpp.

References PredicateResult::m_Message.

Referenced by CompareTensors().

30  {
31  return m_Message;
32  }
std::stringstream m_Message

◆ operator!()

bool operator! ( ) const
inline

Definition at line 34 of file PredicateResult.hpp.

References PredicateResult::m_Result.

35  {
36  return !m_Result;
37  }

◆ operator=()

void operator= ( PredicateResult  otherPredicateResult)
inline

Definition at line 39 of file PredicateResult.hpp.

References PredicateResult::m_Result.

40  {
41  otherPredicateResult.m_Result = m_Result;
42  }

◆ SetResult()

void SetResult ( bool  newResult)
inline

Definition at line 24 of file PredicateResult.hpp.

References PredicateResult::m_Result.

Referenced by CompareTensors().

25  {
26  m_Result = newResult;
27  }

Member Data Documentation

◆ m_Message

std::stringstream m_Message

Definition at line 45 of file PredicateResult.hpp.

Referenced by PredicateResult::Message().

◆ m_Result


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