proxygen
MyFunctor Class Reference

Public Member Functions

 MyFunctor (int *ptr)
 
void operator() ()
 

Private Attributes

int * ptr_
 

Detailed Description

Definition at line 33 of file ScopeGuardTest.cpp.

Constructor & Destructor Documentation

MyFunctor::MyFunctor ( int *  ptr)
inlineexplicit

Definition at line 35 of file ScopeGuardTest.cpp.

Referenced by TEST().

35 : ptr_(ptr) {}
void * ptr

Member Function Documentation

void MyFunctor::operator() ( )
inline

Definition at line 37 of file ScopeGuardTest.cpp.

References ptr_.

Referenced by TEST().

37  {
38  ++*ptr_;
39  }

Member Data Documentation

int* MyFunctor::ptr_
private

Definition at line 42 of file ScopeGuardTest.cpp.

Referenced by operator()().


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