Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
testing::gmock_matchers_test::SampleOptionalInt Class Reference

Public Types

typedef int value_type
 

Public Member Functions

 SampleOptionalInt (int value)
 
 SampleOptionalInt ()
 
 operator bool () const
 
const int & operator* () const
 

Detailed Description

Definition at line 6574 of file gmock-matchers_test.cc.

Member Typedef Documentation

◆ value_type

Constructor & Destructor Documentation

◆ SampleOptionalInt() [1/2]

testing::gmock_matchers_test::SampleOptionalInt::SampleOptionalInt ( int value)
inlineexplicit

Definition at line 6577 of file gmock-matchers_test.cc.

6577: value_(value), has_value_(true) {}
#define value
Definition pkcs11.h:157

◆ SampleOptionalInt() [2/2]

testing::gmock_matchers_test::SampleOptionalInt::SampleOptionalInt ( )
inline

Definition at line 6578 of file gmock-matchers_test.cc.

6578: value_(0), has_value_(false) {}

Member Function Documentation

◆ operator bool()

testing::gmock_matchers_test::SampleOptionalInt::operator bool ( ) const
inline

Definition at line 6579 of file gmock-matchers_test.cc.

6579 {
6580 return has_value_;
6581 }

◆ operator*()

const int & testing::gmock_matchers_test::SampleOptionalInt::operator* ( ) const
inline

Definition at line 6582 of file gmock-matchers_test.cc.

6582 {
6583 return value_;
6584 }

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