- inset_->destroyed.connect(
- boost::bind(&CursorSlice::invalidate, this));
-}
-
-
-CursorSlice::CursorSlice(CursorSlice const & cs)
-{
- operator=(cs);
-}
-
-
-CursorSlice & CursorSlice::operator=(CursorSlice const & cs)
-{
- inset_ = cs.inset_;
- idx_ = cs.idx_;
- pit_ = cs.pit_;
- pos_ = cs.pos_;
- if (inset_) {
- BOOST_ASSERT(inset_);
- inset_->destroyed.connect(
- boost::bind(&CursorSlice::invalidate, this));
- }
- return *this;
-}
-
-
-void CursorSlice::invalidate()
-{
- inset_ = 0;
-}
-
-
-bool CursorSlice::isValid() const
-{
- return inset_ != 0;