tesseract
3.03
|
#include <doubleptr.h>
Public Member Functions | |
DoublePtr () | |
DoublePtr (DoublePtr &src) | |
void | operator= (DoublePtr &src) |
void | Connect (DoublePtr *other) |
void | Disconnect () |
DoublePtr * | OtherEnd () const |
Definition at line 41 of file doubleptr.h.
tesseract::DoublePtr::DoublePtr | ( | ) | [inline] |
Definition at line 43 of file doubleptr.h.
: other_end_(NULL) {}
tesseract::DoublePtr::DoublePtr | ( | DoublePtr & | src | ) | [inline] |
Definition at line 47 of file doubleptr.h.
{ other_end_ = src.other_end_; if (other_end_ != NULL) { other_end_->other_end_ = this; src.other_end_ = NULL; } }
void tesseract::DoublePtr::Connect | ( | DoublePtr * | other | ) | [inline] |
Definition at line 67 of file doubleptr.h.
{ other->Disconnect(); Disconnect(); other->other_end_ = this; other_end_ = other; }
void tesseract::DoublePtr::Disconnect | ( | ) | [inline] |
Definition at line 74 of file doubleptr.h.
{
if (other_end_ != NULL) {
other_end_->other_end_ = NULL;
other_end_ = NULL;
}
}
void tesseract::DoublePtr::operator= | ( | DoublePtr & | src | ) | [inline] |
Definition at line 57 of file doubleptr.h.
{ Disconnect(); other_end_ = src.other_end_; if (other_end_ != NULL) { other_end_->other_end_ = this; src.other_end_ = NULL; } }
DoublePtr* tesseract::DoublePtr::OtherEnd | ( | ) | const [inline] |
Definition at line 81 of file doubleptr.h.
{
return other_end_;
}