proxygen
testing::internal::SetArgumentPointeeAction< N, Proto, true > Class Template Reference

#include <gmock-actions.h>

Public Member Functions

 SetArgumentPointeeAction (const Proto &proto)
 
template<typename Result , typename ArgumentTuple >
void Perform (const ArgumentTuple &args) const
 
 SetArgumentPointeeAction (const Proto &proto)
 
template<typename Result , typename ArgumentTuple >
void Perform (const ArgumentTuple &args) const
 
 SetArgumentPointeeAction (const Proto &proto)
 
template<typename Result , typename ArgumentTuple >
void Perform (const ArgumentTuple &args) const
 

Private Member Functions

 GTEST_DISALLOW_ASSIGN_ (SetArgumentPointeeAction)
 
 GTEST_DISALLOW_ASSIGN_ (SetArgumentPointeeAction)
 
 GTEST_DISALLOW_ASSIGN_ (SetArgumentPointeeAction)
 

Private Attributes

const internal::linked_ptr< Proto > proto_
 

Detailed Description

template<size_t N, typename Proto>
class testing::internal::SetArgumentPointeeAction< N, Proto, true >

Definition at line 823 of file gmock-actions.h.

Constructor & Destructor Documentation

template<size_t N, typename Proto >
testing::internal::SetArgumentPointeeAction< N, Proto, true >::SetArgumentPointeeAction ( const Proto &  proto)
inlineexplicit

Definition at line 829 of file gmock-actions.h.

829  : proto_(new Proto) {
830  proto_->CopyFrom(proto);
831  }
template<size_t N, typename Proto >
testing::internal::SetArgumentPointeeAction< N, Proto, true >::SetArgumentPointeeAction ( const Proto &  proto)
inlineexplicit

Definition at line 829 of file gmock-actions.h.

829  : proto_(new Proto) {
830  proto_->CopyFrom(proto);
831  }
template<size_t N, typename Proto >
testing::internal::SetArgumentPointeeAction< N, Proto, true >::SetArgumentPointeeAction ( const Proto &  proto)
inlineexplicit

Definition at line 829 of file gmock-actions.h.

829  : proto_(new Proto) {
830  proto_->CopyFrom(proto);
831  }

Member Function Documentation

template<size_t N, typename Proto >
testing::internal::SetArgumentPointeeAction< N, Proto, true >::GTEST_DISALLOW_ASSIGN_ ( SetArgumentPointeeAction< N, Proto, true >  )
private
template<size_t N, typename Proto >
testing::internal::SetArgumentPointeeAction< N, Proto, true >::GTEST_DISALLOW_ASSIGN_ ( SetArgumentPointeeAction< N, Proto, true >  )
private
template<size_t N, typename Proto >
testing::internal::SetArgumentPointeeAction< N, Proto, true >::GTEST_DISALLOW_ASSIGN_ ( SetArgumentPointeeAction< N, Proto, true >  )
private
template<size_t N, typename Proto >
template<typename Result , typename ArgumentTuple >
void testing::internal::SetArgumentPointeeAction< N, Proto, true >::Perform ( const ArgumentTuple &  args) const
inline

Definition at line 834 of file gmock-actions.h.

834  {
835  CompileAssertTypesEqual<void, Result>();
836  ::testing::get<N>(args)->CopyFrom(*proto_);
837  }
template<size_t N, typename Proto >
template<typename Result , typename ArgumentTuple >
void testing::internal::SetArgumentPointeeAction< N, Proto, true >::Perform ( const ArgumentTuple &  args) const
inline

Definition at line 834 of file gmock-actions.h.

References GTEST_DISALLOW_ASSIGN_.

834  {
835  CompileAssertTypesEqual<void, Result>();
836  ::testing::get<N>(args)->CopyFrom(*proto_);
837  }
template<size_t N, typename Proto >
template<typename Result , typename ArgumentTuple >
void testing::internal::SetArgumentPointeeAction< N, Proto, true >::Perform ( const ArgumentTuple &  args) const
inline

Definition at line 834 of file gmock-actions.h.

References GTEST_DISALLOW_ASSIGN_.

834  {
835  CompileAssertTypesEqual<void, Result>();
836  ::testing::get<N>(args)->CopyFrom(*proto_);
837  }

Member Data Documentation

template<size_t N, typename Proto >
const internal::linked_ptr< Proto > testing::internal::SetArgumentPointeeAction< N, Proto, true >::proto_
private

Definition at line 840 of file gmock-actions.h.


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