void Item::add( ItemPtr item ) { if( isAncestor( item.getObject() ) ) throw 1; subitems_.push_back( item ); item->addParent( this ); }