本文整理汇总了C++中NodesList::empty方法的典型用法代码示例。如果您正苦于以下问题:C++ NodesList::empty方法的具体用法?C++ NodesList::empty怎么用?C++ NodesList::empty使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NodesList
的用法示例。
在下文中一共展示了NodesList::empty方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: assert
//.........这里部分代码省略.........
if ( !knobs[i]->isUserKnob() &&
knobs[i]->getIsPersistant() &&
!isGroup && !isPage
&& knobs[i]->hasModificationsForSerialization() ) {
///For choice do a deepclone because we need entries
//bool doCopyKnobs = isChoice ? true : copyKnobs;
boost::shared_ptr<KnobSerialization> newKnobSer( new KnobSerialization(knobs[i]) );
_knobsValues.push_back(newKnobSer);
}
}
_nbKnobs = (int)_knobsValues.size();
for (std::list<KnobPtr >::const_iterator it = userPages.begin(); it != userPages.end(); ++it) {
boost::shared_ptr<GroupKnobSerialization> s( new GroupKnobSerialization(*it) );
_userPages.push_back(s);
}
_knobsAge = n->getKnobsAge();
_nodeLabel = n->getLabel_mt_safe();
_nodeScriptName = n->getScriptName_mt_safe();
_cacheID = n->getCacheID();
_pluginID = n->getPluginID();
if ( !n->hasPyPlugBeenEdited() ) {
_pythonModule = n->getPluginPythonModule();
_pythonModuleVersion = n->getMajorVersion();
}
_pluginMajorVersion = n->getMajorVersion();
_pluginMinorVersion = n->getMinorVersion();
if (serializeInputs) {
n->getInputNames(_inputs);
}
NodePtr masterNode = n->getMasterNode();
if (masterNode) {
_masterNodeName = masterNode->getFullyQualifiedName();
}
boost::shared_ptr<RotoContext> roto = n->getRotoContext();
if ( roto && !roto->isEmpty() ) {
_hasRotoContext = true;
roto->save(&_rotoContext);
} else {
_hasRotoContext = false;
}
boost::shared_ptr<TrackerContext> tracker = n->getTrackerContext();
if (tracker) {
_hasTrackerContext = true;
tracker->save(&_trackerContext);
} else {
_hasTrackerContext = false;
}
NodeGroup* isGrp = n->isEffectGroup();
if (isGrp) {
NodesList nodes;
isGrp->getActiveNodes(&nodes);
_children.clear();
for (NodesList::iterator it = nodes.begin(); it != nodes.end(); ++it) {
if ( (*it)->isPartOfProject() ) {
boost::shared_ptr<NodeSerialization> state( new NodeSerialization(*it) );
_children.push_back(state);
}
}
}
_multiInstanceParentName = n->getParentMultiInstanceName();
NodesList childrenMultiInstance;
_node->getChildrenMultiInstance(&childrenMultiInstance);
if ( !childrenMultiInstance.empty() ) {
assert(!isGrp);
for (NodesList::iterator it = childrenMultiInstance.begin(); it != childrenMultiInstance.end(); ++it) {
assert( (*it)->getParentMultiInstance() );
if ( (*it)->isActivated() ) {
boost::shared_ptr<NodeSerialization> state( new NodeSerialization(*it) );
_children.push_back(state);
}
}
}
n->getUserCreatedComponents(&_userComponents);
_isNull = false;
}
}