Lines Matching refs:node
157 TiXmlNode* node = firstChild; in ~TiXmlNode() local
160 while ( node ) in ~TiXmlNode()
162 temp = node; in ~TiXmlNode()
163 node = node->next; in ~TiXmlNode()
178 TiXmlNode* node = firstChild; in Clear() local
181 while ( node ) in Clear()
183 temp = node; in Clear()
184 node = node->next; in Clear()
193 TiXmlNode* TiXmlNode::LinkEndChild( TiXmlNode* node ) in LinkEndChild() argument
195 node->parent = this; in LinkEndChild()
197 node->prev = lastChild; in LinkEndChild()
198 node->next = 0; in LinkEndChild()
201 lastChild->next = node; in LinkEndChild()
203 firstChild = node; // it was an empty list. in LinkEndChild()
205 lastChild = node; in LinkEndChild()
206 return node; in LinkEndChild()
212 TiXmlNode* node = addThis.Clone(); in InsertEndChild() local
213 if ( !node ) in InsertEndChild()
216 return LinkEndChild( node ); in InsertEndChild()
225 TiXmlNode* node = addThis.Clone(); in InsertBeforeChild() local
226 if ( !node ) in InsertBeforeChild()
228 node->parent = this; in InsertBeforeChild()
230 node->next = beforeThis; in InsertBeforeChild()
231 node->prev = beforeThis->prev; in InsertBeforeChild()
234 beforeThis->prev->next = node; in InsertBeforeChild()
239 firstChild = node; in InsertBeforeChild()
241 beforeThis->prev = node; in InsertBeforeChild()
242 return node; in InsertBeforeChild()
251 TiXmlNode* node = addThis.Clone(); in InsertAfterChild() local
252 if ( !node ) in InsertAfterChild()
254 node->parent = this; in InsertAfterChild()
256 node->prev = afterThis; in InsertAfterChild()
257 node->next = afterThis->next; in InsertAfterChild()
260 afterThis->next->prev = node; in InsertAfterChild()
265 lastChild = node; in InsertAfterChild()
267 afterThis->next = node; in InsertAfterChild()
268 return node; in InsertAfterChild()
277 TiXmlNode* node = withThis.Clone(); in ReplaceChild() local
278 if ( !node ) in ReplaceChild()
281 node->next = replaceThis->next; in ReplaceChild()
282 node->prev = replaceThis->prev; in ReplaceChild()
285 replaceThis->next->prev = node; in ReplaceChild()
287 lastChild = node; in ReplaceChild()
290 replaceThis->prev->next = node; in ReplaceChild()
292 firstChild = node; in ReplaceChild()
295 node->parent = this; in ReplaceChild()
296 return node; in ReplaceChild()
324 const TiXmlNode* node; in FirstChild() local
325 for ( node = firstChild; node; node = node->next ) in FirstChild()
327 if ( strcmp( node->Value(), _value ) == 0 ) in FirstChild()
328 return node; in FirstChild()
336 TiXmlNode* node; in FirstChild() local
337 for ( node = firstChild; node; node = node->next ) in FirstChild()
339 if ( strcmp( node->Value(), _value ) == 0 ) in FirstChild()
340 return node; in FirstChild()
348 const TiXmlNode* node; in LastChild() local
349 for ( node = lastChild; node; node = node->prev ) in LastChild()
351 if ( strcmp( node->Value(), _value ) == 0 ) in LastChild()
352 return node; in LastChild()
359 TiXmlNode* node; in LastChild() local
360 for ( node = lastChild; node; node = node->prev ) in LastChild()
362 if ( strcmp( node->Value(), _value ) == 0 ) in LastChild()
363 return node; in LastChild()
422 const TiXmlNode* node; in NextSibling() local
423 for ( node = next; node; node = node->next ) in NextSibling()
425 if ( strcmp( node->Value(), _value ) == 0 ) in NextSibling()
426 return node; in NextSibling()
433 TiXmlNode* node; in NextSibling() local
434 for ( node = next; node; node = node->next ) in NextSibling()
436 if ( strcmp( node->Value(), _value ) == 0 ) in NextSibling()
437 return node; in NextSibling()
444 const TiXmlNode* node; in PreviousSibling() local
445 for ( node = prev; node; node = node->prev ) in PreviousSibling()
447 if ( strcmp( node->Value(), _value ) == 0 ) in PreviousSibling()
448 return node; in PreviousSibling()
455 TiXmlNode* node; in PreviousSibling() local
456 for ( node = prev; node; node = node->prev ) in PreviousSibling()
458 if ( strcmp( node->Value(), _value ) == 0 ) in PreviousSibling()
459 return node; in PreviousSibling()
466 TiXmlAttribute* node = attributeSet.Find( name ); in RemoveAttribute() local
467 if ( node ) in RemoveAttribute()
469 attributeSet.Remove( node ); in RemoveAttribute()
470 delete node; in RemoveAttribute()
476 const TiXmlNode* node; in FirstChildElement() local
478 for ( node = FirstChild(); in FirstChildElement()
479 node; in FirstChildElement()
480 node = node->NextSibling() ) in FirstChildElement()
482 if ( node->ToElement() ) in FirstChildElement()
483 return node->ToElement(); in FirstChildElement()
490 TiXmlNode* node; in FirstChildElement() local
492 for ( node = FirstChild(); in FirstChildElement()
493 node; in FirstChildElement()
494 node = node->NextSibling() ) in FirstChildElement()
496 if ( node->ToElement() ) in FirstChildElement()
497 return node->ToElement(); in FirstChildElement()
504 const TiXmlNode* node; in FirstChildElement() local
506 for ( node = FirstChild( _value ); in FirstChildElement()
507 node; in FirstChildElement()
508 node = node->NextSibling( _value ) ) in FirstChildElement()
510 if ( node->ToElement() ) in FirstChildElement()
511 return node->ToElement(); in FirstChildElement()
518 TiXmlNode* node; in FirstChildElement() local
520 for ( node = FirstChild( _value ); in FirstChildElement()
521 node; in FirstChildElement()
522 node = node->NextSibling( _value ) ) in FirstChildElement()
524 if ( node->ToElement() ) in FirstChildElement()
525 return node->ToElement(); in FirstChildElement()
532 const TiXmlNode* node; in NextSiblingElement() local
534 for ( node = NextSibling(); in NextSiblingElement()
535 node; in NextSiblingElement()
536 node = node->NextSibling() ) in NextSiblingElement()
538 if ( node->ToElement() ) in NextSiblingElement()
539 return node->ToElement(); in NextSiblingElement()
546 TiXmlNode* node; in NextSiblingElement() local
548 for ( node = NextSibling(); in NextSiblingElement()
549 node; in NextSiblingElement()
550 node = node->NextSibling() ) in NextSiblingElement()
552 if ( node->ToElement() ) in NextSiblingElement()
553 return node->ToElement(); in NextSiblingElement()
560 const TiXmlNode* node; in NextSiblingElement() local
562 for ( node = NextSibling( _value ); in NextSiblingElement()
563 node; in NextSiblingElement()
564 node = node->NextSibling( _value ) ) in NextSiblingElement()
566 if ( node->ToElement() ) in NextSiblingElement()
567 return node->ToElement(); in NextSiblingElement()
574 TiXmlNode* node; in NextSiblingElement() local
576 for ( node = NextSibling( _value ); in NextSiblingElement()
577 node; in NextSiblingElement()
578 node = node->NextSibling( _value ) ) in NextSiblingElement()
580 if ( node->ToElement() ) in NextSiblingElement()
581 return node->ToElement(); in NextSiblingElement()
589 const TiXmlNode* node; in GetDocument() local
591 for( node = this; node; node = node->parent ) in GetDocument()
593 if ( node->ToDocument() ) in GetDocument()
594 return node->ToDocument(); in GetDocument()
601 TiXmlNode* node; in GetDocument() local
603 for( node = this; node; node = node->parent ) in GetDocument()
605 if ( node->ToDocument() ) in GetDocument()
606 return node->ToDocument(); in GetDocument()
655 TiXmlAttribute* node = attributeSet.First(); in ClearThis() local
656 attributeSet.Remove( node ); in ClearThis()
657 delete node; in ClearThis()
664 const TiXmlAttribute* node = attributeSet.Find( name ); in Attribute() local
666 if ( node ) in Attribute()
667 return node->Value(); in Attribute()
703 const TiXmlAttribute* node = attributeSet.Find( name ); in QueryIntAttribute() local
704 if ( !node ) in QueryIntAttribute()
707 return node->QueryIntValue( ival ); in QueryIntAttribute()
713 const TiXmlAttribute* node = attributeSet.Find( name ); in QueryDoubleAttribute() local
714 if ( !node ) in QueryDoubleAttribute()
717 return node->QueryDoubleValue( dval ); in QueryDoubleAttribute()
747 TiXmlAttribute* node = attributeSet.Find( name ); in SetAttribute() local
748 if ( node ) in SetAttribute()
750 node->SetValue( _value ); in SetAttribute()
787 TiXmlNode* node; in Print() local
802 for ( node = firstChild; node; node=node->NextSibling() ) in Print()
804 if ( !node->ToText() ) in Print()
808 node->Print( cfile, depth+1 ); in Print()
830 TiXmlNode* node; in StreamOut() local
835 for ( node = firstChild; node; node=node->NextSibling() ) in StreamOut()
837 node->StreamOut( stream ); in StreamOut()
863 TiXmlNode* node = 0; in CopyTo() local
864 for ( node = firstChild; node; node = node->NextSibling() ) in CopyTo()
866 target->LinkEndChild( node->Clone() ); in CopyTo()
1117 TiXmlNode* node = 0; in CopyTo() local
1118 for ( node = firstChild; node; node = node->NextSibling() ) in CopyTo()
1120 target->LinkEndChild( node->Clone() ); in CopyTo()
1138 const TiXmlNode* node; in Print() local
1139 for ( node=FirstChild(); node; node=node->NextSibling() ) in Print()
1141 node->Print( cfile, depth ); in Print()
1148 const TiXmlNode* node; in StreamOut() local
1149 for ( node=FirstChild(); node; node=node->NextSibling() ) in StreamOut()
1151 node->StreamOut( out ); in StreamOut()
1156 if ( node->ToElement() ) in StreamOut()
1545 TiXmlAttribute* node; in Remove() local
1547 for( node = sentinel.next; node != &sentinel; node = node->next ) in Remove()
1549 if ( node == removeMe ) in Remove()
1551 node->prev->next = node->next; in Remove()
1552 node->next->prev = node->prev; in Remove()
1553 node->next = 0; in Remove()
1554 node->prev = 0; in Remove()
1563 const TiXmlAttribute* node; in Find() local
1565 for( node = sentinel.next; node != &sentinel; node = node->next ) in Find()
1567 if ( node->name == name ) in Find()
1568 return node; in Find()
1575 TiXmlAttribute* node; in Find() local
1577 for( node = sentinel.next; node != &sentinel; node = node->next ) in Find()
1579 if ( node->name == name ) in Find()
1580 return node; in Find()
1619 if ( node ) in FirstChild()
1621 TiXmlNode* child = node->FirstChild(); in FirstChild()
1631 if ( node ) in FirstChild()
1633 TiXmlNode* child = node->FirstChild( value ); in FirstChild()
1643 if ( node ) in FirstChildElement()
1645 TiXmlElement* child = node->FirstChildElement(); in FirstChildElement()
1655 if ( node ) in FirstChildElement()
1657 TiXmlElement* child = node->FirstChildElement( value ); in FirstChildElement()
1667 if ( node ) in Child()
1670 TiXmlNode* child = node->FirstChild(); in Child()
1686 if ( node ) in Child()
1689 TiXmlNode* child = node->FirstChild( value ); in Child()
1705 if ( node ) in ChildElement()
1708 TiXmlElement* child = node->FirstChildElement(); in ChildElement()
1724 if ( node ) in ChildElement()
1727 TiXmlElement* child = node->FirstChildElement( value ); in ChildElement()