#include <sample4.h>
Definition at line 35 of file sample4.h.
◆ Counter()
◆ Decrement()
int Counter::Decrement |
( |
| ) |
|
Definition at line 43 of file sample4.cc.
43 {
44 if (counter_ == 0) {
45 return counter_;
46 } else {
47 return counter_--;
48 }
49}
◆ Increment()
int Counter::Increment |
( |
| ) |
|
Definition at line 37 of file sample4.cc.
37 {
38 return counter_++;
39}
◆ Print()
void Counter::Print |
( |
| ) |
const |
Definition at line 52 of file sample4.cc.
52 {
53 printf("%d", counter_);
54}
The documentation for this class was generated from the following files:
- /media/home/debian/src/github/tesseract-ocr/tesseract/unittest/third_party/googletest/googletest/samples/sample4.h
- /media/home/debian/src/github/tesseract-ocr/tesseract/unittest/third_party/googletest/googletest/samples/sample4.cc