proxygen
testing::gmock_matchers_test::DivisibleByImpl Class Reference

Public Member Functions

 DivisibleByImpl (int a_divider)
 
template<typename T >
bool MatchAndExplain (const T &n, MatchResultListener *listener) const
 
void DescribeTo (ostream *os) const
 
void DescribeNegationTo (ostream *os) const
 
void set_divider (int a_divider)
 
int divider () const
 
 DivisibleByImpl (int a_divider)
 
template<typename T >
bool MatchAndExplain (const T &n, MatchResultListener *listener) const
 
void DescribeTo (ostream *os) const
 
void DescribeNegationTo (ostream *os) const
 
void set_divider (int a_divider)
 
int divider () const
 
 DivisibleByImpl (int a_divider)
 
template<typename T >
bool MatchAndExplain (const T &n, MatchResultListener *listener) const
 
void DescribeTo (ostream *os) const
 
void DescribeNegationTo (ostream *os) const
 
void set_divider (int a_divider)
 
int divider () const
 

Private Attributes

int divider_
 

Detailed Description

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

Constructor & Destructor Documentation

testing::gmock_matchers_test::DivisibleByImpl::DivisibleByImpl ( int  a_divider)
inlineexplicit

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

testing::gmock_matchers_test::DivisibleByImpl::DivisibleByImpl ( int  a_divider)
inlineexplicit

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

testing::gmock_matchers_test::DivisibleByImpl::DivisibleByImpl ( int  a_divider)
inlineexplicit

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

Member Function Documentation

void testing::gmock_matchers_test::DivisibleByImpl::DescribeNegationTo ( ostream *  os) const
inline

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

3979  {
3980  *os << "is not divisible by " << divider_;
3981  }
void testing::gmock_matchers_test::DivisibleByImpl::DescribeNegationTo ( ostream *  os) const
inline

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

3979  {
3980  *os << "is not divisible by " << divider_;
3981  }
void testing::gmock_matchers_test::DivisibleByImpl::DescribeNegationTo ( ostream *  os) const
inline

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

3979  {
3980  *os << "is not divisible by " << divider_;
3981  }
void testing::gmock_matchers_test::DivisibleByImpl::DescribeTo ( ostream *  os) const
inline

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

3975  {
3976  *os << "is divisible by " << divider_;
3977  }
void testing::gmock_matchers_test::DivisibleByImpl::DescribeTo ( ostream *  os) const
inline

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

3975  {
3976  *os << "is divisible by " << divider_;
3977  }
void testing::gmock_matchers_test::DivisibleByImpl::DescribeTo ( ostream *  os) const
inline

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

3975  {
3976  *os << "is divisible by " << divider_;
3977  }
int testing::gmock_matchers_test::DivisibleByImpl::divider ( ) const
inline
template<typename T >
bool testing::gmock_matchers_test::DivisibleByImpl::MatchAndExplain ( const T n,
MatchResultListener listener 
) const
inline

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

3969  {
3970  *listener << "which is " << (n % divider_) << " modulo "
3971  << divider_;
3972  return (n % divider_) == 0;
3973  }
template<typename T >
bool testing::gmock_matchers_test::DivisibleByImpl::MatchAndExplain ( const T n,
MatchResultListener listener 
) const
inline

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

3969  {
3970  *listener << "which is " << (n % divider_) << " modulo "
3971  << divider_;
3972  return (n % divider_) == 0;
3973  }
template<typename T >
bool testing::gmock_matchers_test::DivisibleByImpl::MatchAndExplain ( const T n,
MatchResultListener listener 
) const
inline

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

3969  {
3970  *listener << "which is " << (n % divider_) << " modulo "
3971  << divider_;
3972  return (n % divider_) == 0;
3973  }
void testing::gmock_matchers_test::DivisibleByImpl::set_divider ( int  a_divider)
inline
void testing::gmock_matchers_test::DivisibleByImpl::set_divider ( int  a_divider)
inline

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

void testing::gmock_matchers_test::DivisibleByImpl::set_divider ( int  a_divider)
inline

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

Member Data Documentation

int testing::gmock_matchers_test::DivisibleByImpl::divider_
private

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


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