Electroneum
testing::ExpectationSet Class Reference

#include <gmock-spec-builders.h>

Public Types

typedef Expectation::Set::const_iterator const_iterator
 
typedef Expectation::Set::value_type value_type
 

Public Member Functions

 ExpectationSet ()
 
 ExpectationSet (internal::ExpectationBase &exp)
 
 ExpectationSet (const Expectation &e)
 
bool operator== (const ExpectationSet &rhs) const
 
bool operator!= (const ExpectationSet &rhs) const
 
ExpectationSetoperator+= (const Expectation &e)
 
int size () const
 
const_iterator begin () const
 
const_iterator end () const
 

Detailed Description

Definition at line 563 of file gmock-spec-builders.h.

Member Typedef Documentation

◆ const_iterator

typedef Expectation::Set::const_iterator testing::ExpectationSet::const_iterator

Definition at line 566 of file gmock-spec-builders.h.

◆ value_type

typedef Expectation::Set::value_type testing::ExpectationSet::value_type

Definition at line 569 of file gmock-spec-builders.h.

Constructor & Destructor Documentation

◆ ExpectationSet() [1/3]

testing::ExpectationSet::ExpectationSet ( )
inline

Definition at line 572 of file gmock-spec-builders.h.

572 {}

◆ ExpectationSet() [2/3]

testing::ExpectationSet::ExpectationSet ( internal::ExpectationBase exp)
inline

Definition at line 577 of file gmock-spec-builders.h.

577  { // NOLINT
578  *this += Expectation(exp);
579  }

◆ ExpectationSet() [3/3]

testing::ExpectationSet::ExpectationSet ( const Expectation e)
inline

Definition at line 584 of file gmock-spec-builders.h.

584  { // NOLINT
585  *this += e;
586  }

Member Function Documentation

◆ begin()

const_iterator testing::ExpectationSet::begin ( void  ) const
inline

Definition at line 608 of file gmock-spec-builders.h.

608 { return expectations_.begin(); }
Here is the caller graph for this function:

◆ end()

const_iterator testing::ExpectationSet::end ( void  ) const
inline

Definition at line 609 of file gmock-spec-builders.h.

609 { return expectations_.end(); }
Here is the caller graph for this function:

◆ operator!=()

bool testing::ExpectationSet::operator!= ( const ExpectationSet rhs) const
inline

Definition at line 597 of file gmock-spec-builders.h.

597 { return !(*this == rhs); }

◆ operator+=()

ExpectationSet& testing::ExpectationSet::operator+= ( const Expectation e)
inline

Definition at line 601 of file gmock-spec-builders.h.

601  {
602  expectations_.insert(e);
603  return *this;
604  }

◆ operator==()

bool testing::ExpectationSet::operator== ( const ExpectationSet rhs) const
inline

Definition at line 593 of file gmock-spec-builders.h.

593  {
594  return expectations_ == rhs.expectations_;
595  }

◆ size()

int testing::ExpectationSet::size ( void  ) const
inline

Definition at line 606 of file gmock-spec-builders.h.

606 { return static_cast<int>(expectations_.size()); }

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