22#ifndef TESSERACT_CCUTIL_DOUBLEPTR_H_
23#define TESSERACT_CCUTIL_DOUBLEPTR_H_
47 other_end_ = src.other_end_;
48 if (other_end_ !=
nullptr) {
49 other_end_->other_end_ =
this;
58 other_end_ = src.other_end_;
59 if (other_end_ !=
nullptr) {
60 other_end_->other_end_ =
this;
69 other->other_end_ =
this;
74 if (other_end_ !=
nullptr) {
75 other_end_->other_end_ =
nullptr;
DoublePtr * OtherEnd() const
DoublePtr(const DoublePtr &src)
void operator=(const DoublePtr &src)
void Connect(DoublePtr *other)