Exemplo n.º 1
0
BulletMLNode* BulletMLNode::next() {
	BulletMLNode* parent = getParent();
	if (parent == 0) return 0;
	ChildIterator ite =
		std::find(parent->childBegin(), parent->childEnd(), this);
	BulletMLError::doAssert(ite != parent->childEnd(), name_ + ": not found");
	ite++;
	if (ite == parent->childEnd()) return 0;
	else return *ite;
}