tesseract  3.03
tesseract::DoublePtr Class Reference

#include <doubleptr.h>

List of all members.

Public Member Functions

 DoublePtr ()
 DoublePtr (DoublePtr &src)
void operator= (DoublePtr &src)
void Connect (DoublePtr *other)
void Disconnect ()
DoublePtrOtherEnd () const

Detailed Description

Definition at line 41 of file doubleptr.h.


Constructor & Destructor Documentation

Definition at line 43 of file doubleptr.h.

: other_end_(NULL) {}

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;
    }
  }

Member Function Documentation

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;
  }

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;
    }
  }

Definition at line 81 of file doubleptr.h.

                              {
    return other_end_;
  }

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines