예제 #1
0
파일: ChildNode.cpp 프로젝트: mydw/mydw
// This only makes a shallow copy, cloneChildren must also be called for a
// deep clone
ChildNode::ChildNode(const ChildNode &other)
  : NodeImpl(other)
{
    // Need to break the association w/ original siblings and parent
    this->previousSibling = null;
    this->nextSibling = null;
    isFirstChild(false);
}
예제 #2
0
파일: ChildNode.cpp 프로젝트: mydw/mydw
NodeImpl * ChildNode::getPreviousSibling() {
    // if we are the firstChild, previousSibling actually refers to our
    // parent's lastChild, but we hide that
    return isFirstChild() ? null : previousSibling;
}
예제 #3
0
 ChildNode *		_previousSibling() const {
   return isFirstChild() ? 0 : previousSibling;
 }