proxygen
TestFilter< Owned > Class Template Reference
Inheritance diagram for TestFilter< Owned >:
proxygen::GenericFilter< TesterInterface, TesterInterface::Callback,&TesterInterface::setCallback, Owned > TesterInterface TesterInterface::Callback TestFilterNoCall< Owned > TestFilterNoCallback< Owned > TestFilterNoCallbackNoCall< Owned > TestFilterOddDeleteOn< Owned >

Public Member Functions

 TestFilter ()
 
 TestFilter (bool calls, bool callbacks)
 
void setCallback (TesterInterface::Callback *cb) override
 
void doA () override
 
void onA () override
 
- Public Member Functions inherited from proxygen::GenericFilter< TesterInterface, TesterInterface::Callback,&TesterInterface::setCallback, Owned >
 GenericFilter (bool calls, bool callbacks)
 
 ~GenericFilter () override
 
void append (Filter *nextFilter)
 
- Public Member Functions inherited from TesterInterface
virtual ~TesterInterface ()
 
- Public Member Functions inherited from TesterInterface::Callback
virtual ~Callback ()
 

Public Attributes

uint32_t do_ {0}
 
uint32_t on_ {0}
 
uint32_t id_ {idCounter_++}
 
- Public Attributes inherited from proxygen::GenericFilter< TesterInterface, TesterInterface::Callback,&TesterInterface::setCallback, Owned >
const bool kWantsCalls_
 
const bool kWantsCallbacks_
 

Static Public Attributes

static uint32_t idCounter_ = 0
 

Additional Inherited Members

- Public Types inherited from proxygen::GenericFilter< TesterInterface, TesterInterface::Callback,&TesterInterface::setCallback, Owned >
using Filter = GenericFilter< TesterInterface, TesterInterface::Callback, set_callback, TakeOwnership, std::default_delete< TesterInterface > >
 
- Protected Member Functions inherited from proxygen::GenericFilter< TesterInterface, TesterInterface::Callback,&TesterInterface::setCallback, Owned >
void setCallbackInternal (TesterInterface::Callback *cb)
 
void drop ()
 
- Protected Attributes inherited from proxygen::GenericFilter< TesterInterface, TesterInterface::Callback,&TesterInterface::setCallback, Owned >
TesterInterfacecall_
 
TesterInterface::Callbackcallback_
 

Detailed Description

template<bool Owned>
class TestFilter< Owned >

Definition at line 67 of file GenericFilterTest.cpp.

Constructor & Destructor Documentation

template<bool Owned>
TestFilter< Owned >::TestFilter ( )
inline
template<bool Owned>
TestFilter< Owned >::TestFilter ( bool  calls,
bool  callbacks 
)
inline

Definition at line 78 of file GenericFilterTest.cpp.

Member Function Documentation

template<bool Owned>
void TestFilter< Owned >::doA ( )
inlineoverridevirtual

Implements TesterInterface.

Definition at line 87 of file GenericFilterTest.cpp.

template<bool Owned>
void TestFilter< Owned >::onA ( )
inlineoverridevirtual

Implements TesterInterface::Callback.

Reimplemented in TestFilterOddDeleteOn< Owned >.

Definition at line 91 of file GenericFilterTest.cpp.

template<bool Owned>
void TestFilter< Owned >::setCallback ( TesterInterface::Callback cb)
inlineoverridevirtual

Implements TesterInterface.

Definition at line 84 of file GenericFilterTest.cpp.

Member Data Documentation

template<bool Owned>
uint32_t TestFilter< Owned >::do_ {0}

Definition at line 95 of file GenericFilterTest.cpp.

Referenced by TEST_F().

template<bool Owned>
uint32_t TestFilter< Owned >::id_ {idCounter_++}

Definition at line 97 of file GenericFilterTest.cpp.

template<bool Owned>
uint32_t TestFilter< Owned >::idCounter_ = 0
static

Definition at line 98 of file GenericFilterTest.cpp.

template<bool Owned>
uint32_t TestFilter< Owned >::on_ {0}

Definition at line 96 of file GenericFilterTest.cpp.

Referenced by TEST_F().


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