#include <doubleptr.h>
Definition at line 40 of file doubleptr.h.
◆ DoublePtr() [1/2]
tesseract::DoublePtr::DoublePtr |
( |
| ) |
|
|
inline |
Definition at line 42 of file doubleptr.h.
42: other_end_(nullptr) {}
◆ DoublePtr() [2/2]
tesseract::DoublePtr::DoublePtr |
( |
const DoublePtr & |
src | ) |
|
|
inline |
Definition at line 46 of file doubleptr.h.
46 {
47 other_end_ = src.other_end_;
48 if (other_end_ != nullptr) {
49 other_end_->other_end_ = this;
51 }
52 }
◆ Connect()
void tesseract::DoublePtr::Connect |
( |
DoublePtr * |
other | ) |
|
|
inline |
Definition at line 66 of file doubleptr.h.
66 {
67 other->Disconnect();
69 other->other_end_ = this;
70 other_end_ = other;
71 }
◆ Disconnect()
void tesseract::DoublePtr::Disconnect |
( |
| ) |
|
|
inline |
Definition at line 73 of file doubleptr.h.
73 {
74 if (other_end_ != nullptr) {
75 other_end_->other_end_ = nullptr;
76 other_end_ = nullptr;
77 }
78 }
◆ operator=()
void tesseract::DoublePtr::operator= |
( |
const DoublePtr & |
src | ) |
|
|
inline |
Definition at line 56 of file doubleptr.h.
56 {
58 other_end_ = src.other_end_;
59 if (other_end_ != nullptr) {
60 other_end_->other_end_ = this;
62 }
63 }
◆ OtherEnd()
DoublePtr * tesseract::DoublePtr::OtherEnd |
( |
| ) |
const |
|
inline |
Definition at line 80 of file doubleptr.h.
80 {
81 return other_end_;
82 }
The documentation for this class was generated from the following file:
- /media/home/debian/src/github/tesseract-ocr/tesseract/unittest/doubleptr.h