MCPcopy Create free account
hub / github.com/OpenMW/openmw / ChildElement

Method ChildElement

extern/oics/tinyxml/tinyxml.cpp:1713–1729  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1711
1712
1713TiXmlHandle TiXmlHandle::ChildElement( int count ) const
1714{
1715 if ( node )
1716 {
1717 int i;
1718 TiXmlElement* child = node->FirstChildElement();
1719 for ( i=0;
1720 child && i<count;
1721 child = child->NextSiblingElement(), ++i )
1722 {
1723 // nothing
1724 }
1725 if ( child )
1726 return TiXmlHandle( child );
1727 }
1728 return TiXmlHandle( 0 );
1729}
1730
1731
1732TiXmlHandle TiXmlHandle::ChildElement( const char* value, int count ) const

Callers

nothing calls this directly

Calls 3

TiXmlHandleClass · 0.85
FirstChildElementMethod · 0.45
NextSiblingElementMethod · 0.45

Tested by

no test coverage detected