本文整理汇总了C++中nodevector::const_iterator::get方法的典型用法代码示例。如果您正苦于以下问题:C++ const_iterator::get方法的具体用法?C++ const_iterator::get怎么用?C++ const_iterator::get使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类nodevector::const_iterator
的用法示例。
在下文中一共展示了const_iterator::get方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: getNodeByTag
Node* NodeList::getNodeByTag(int tag) const
{
for (NodeVector::const_iterator iter = m_nodes.begin(); iter != m_nodes.end(); ++iter) {
if (iter->get()->m_tag == tag)
return iter->get();
}
return 0;
}
示例2: willRemoveChildren
static void willRemoveChildren(ContainerNode* container)
{
NodeVector children;
getChildNodes(container, children);
container->document()->nodeChildrenWillBeRemoved(container);
#if ENABLE(MUTATION_OBSERVERS)
ChildListMutationScope mutation(container);
#endif
for (NodeVector::const_iterator it = children.begin(); it != children.end(); it++) {
Node* child = it->get();
#if ENABLE(MUTATION_OBSERVERS)
mutation.willRemoveChild(child);
child->notifyMutationObserversNodeWillDetach();
#endif
#if ENABLE(UNDO_MANAGER)
if (UndoManager::isRecordingAutomaticTransaction(container))
UndoManager::addTransactionStep(NodeRemovingDOMTransactionStep::create(container, child));
#endif
// fire removed from document mutation events.
dispatchChildRemovalEvents(child);
}
ChildFrameDisconnector(container, ChildFrameDisconnector::DoNotIncludeRoot).disconnect();
}
示例3: parserInsertBefore
void ContainerNode::parserInsertBefore(PassRefPtr<Node> newChild, Node* nextChild)
{
ASSERT(newChild);
ASSERT(nextChild);
ASSERT(nextChild->parentNode() == this);
NodeVector targets;
collectTargetNodes(newChild.get(), targets);
if (targets.isEmpty())
return;
if (nextChild->previousSibling() == newChild || nextChild == newChild) // nothing to do
return;
RefPtr<Node> next = nextChild;
RefPtr<Node> nextChildPreviousSibling = nextChild->previousSibling();
for (NodeVector::const_iterator it = targets.begin(); it != targets.end(); ++it) {
Node* child = it->get();
insertBeforeCommon(next.get(), child);
childrenChanged(true, nextChildPreviousSibling.get(), nextChild, 1);
ChildNodeInsertionNotifier(this).notify(child);
}
}
示例4: allSpritesUseSelfRender
void NodeList::allSpritesUseSelfRender()
{
for (NodeVector::const_iterator iter = m_nodes.begin(); iter != m_nodes.end(); ++iter) {
Sprite* sprite = iter->get()->toSprite();
if (sprite)
sprite->useSelfRender();
}
}
示例5: markObjects
void NodeList::markObjects(AJ::MarkStack &markStack, unsigned markID)
{
if (isMarked(markID))
return;
DirectWrapper<AJNodeList>::markObjects(markStack, markID);
for (NodeVector::const_iterator iter = m_nodes.begin(); iter != m_nodes.end(); ++iter)
iter->get()->markObjects(markStack, markID);
}
示例6: pointInside
bool NodeList::pointInside(const Point& p, PlatformTouchEvent* event)
{
for (NodeVector::const_iterator it = m_nodes.begin(); it != m_nodes.end(); ++it) {
Node* child = it->get();
//AffineTransform transform = child->parentToNodeTransform();
//Point childP = PointApplyAffineTransform(p, transform);
Point childP = child->convertParentToNodeSpace(p);
if (child->pointInside(childP, event))
return true;
}
return false;
}
示例7: willRemoveChildren
static void willRemoveChildren(ContainerNode* container)
{
NodeVector children;
getChildNodes(container, children);
container->document()->nodeChildrenWillBeRemoved(container);
ChildListMutationScope mutation(container);
for (NodeVector::const_iterator it = children.begin(); it != children.end(); it++) {
Node* child = it->get();
mutation.willRemoveChild(child);
child->notifyMutationObserversNodeWillDetach();
// fire removed from document mutation events.
dispatchChildRemovalEvents(child);
}
ChildFrameDisconnector(container).disconnect(ChildFrameDisconnector::DescendantsOnly);
}
示例8: allCleanup
void NodeList::allCleanup()
{
for (NodeVector::const_iterator iter = m_nodes.begin(); iter != m_nodes.end(); ++iter)
iter->get()->cleanup();
}
示例9: allOnEnterTransitionDidFinish
void NodeList::allOnEnterTransitionDidFinish()
{
for (NodeVector::const_iterator iter = m_nodes.begin(); iter != m_nodes.end(); ++iter)
iter->get()->onEnterTransitionDidFinish();
}
示例10: setAllParent
void NodeList::setAllParent(Node* parent)
{
for (NodeVector::const_iterator iter = m_nodes.begin(); iter != m_nodes.end(); ++iter)
iter->get()->setParent(parent);
}