Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
Bool Struct Reference

Public Member Functions

 Bool (int val)
 
bool operator> (int n) const
 
Bool operator+ (const Bool &rhs) const
 
bool operator== (const Bool &rhs) const
 

Public Attributes

bool value
 

Detailed Description

Definition at line 56 of file gtest_pred_impl_unittest.cc.

Constructor & Destructor Documentation

◆ Bool()

Bool::Bool ( int val)
inlineexplicit

Definition at line 57 of file gtest_pred_impl_unittest.cc.

57: value(val != 0) {}
Here is the caller graph for this function:

Member Function Documentation

◆ operator+()

Bool Bool::operator+ ( const Bool & rhs) const
inline

Definition at line 61 of file gtest_pred_impl_unittest.cc.

61{ return Bool(value + rhs.value); }
Here is the call graph for this function:

◆ operator==()

bool Bool::operator== ( const Bool & rhs) const
inline

Definition at line 63 of file gtest_pred_impl_unittest.cc.

63{ return value == rhs.value; }

◆ operator>()

bool Bool::operator> ( int n) const
inline

Definition at line 59 of file gtest_pred_impl_unittest.cc.

59{ return value > Bool(n).value; }
Here is the call graph for this function:

Member Data Documentation

◆ value

bool Bool::value

Definition at line 65 of file gtest_pred_impl_unittest.cc.


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