本文整理汇总了C++中GraphComponentPtr::fullName方法的典型用法代码示例。如果您正苦于以下问题:C++ GraphComponentPtr::fullName方法的具体用法?C++ GraphComponentPtr::fullName怎么用?C++ GraphComponentPtr::fullName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GraphComponentPtr
的用法示例。
在下文中一共展示了GraphComponentPtr::fullName方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: removeChildInternal
void GraphComponent::removeChildInternal( GraphComponentPtr child, bool emitParentChanged )
{
if( emitParentChanged )
{
child->parentChanging( 0 );
}
ChildContainer::iterator it = std::find( m_children.begin(), m_children.end(), child );
if( it == m_children.end() || child->m_parent != this )
{
// the public removeChild() method protects against this case, but it's still possible to
// arrive here if an Action (which has a direct binding to removeChildInternal) is being replayed
// from the undo queue, and just prior to that something called the public removeChild() method.
// this can occur if a slot calls removeChild() from a signal triggered during the replay of the
// undo queue. the onus is on such slots to not reperform their work when ScriptNode::currentActionStage()
// is Action::Redo - instead they should rely on the fact that their actions will have been
// recorded and replayed automatically.
throw Exception( boost::str( boost::format( "GraphComponent::removeChildInternal : \"%s\" is not a child of \"%s\"." ) % child->fullName() % fullName() ) );
}
m_children.erase( it );
child->m_parent = 0;
childRemovedSignal()( this, child.get() );
if( emitParentChanged )
{
child->parentChangedSignal()( child.get(), this );
}
}