1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // Node list inline functions
15 // Retrieves number of items in node list
18 template<class T> inline TInt RXmlEngNodeList<T>::Count() const
23 // -----------------------------------------------------------------------------
24 // Returns true if this node has next sibling, false otherwise.
25 // -----------------------------------------------------------------------------
27 template<class T> inline TBool RXmlEngNodeList<T>::HasNext() const
29 return iList.HasNext();
32 // -----------------------------------------------------------------------------
33 // Retrieves next node
34 // -----------------------------------------------------------------------------
36 template<class T> inline T RXmlEngNodeList<T>::Next()
38 TXmlEngNode t = iList.Next();
39 return *(static_cast<T*>(&t));
42 // -----------------------------------------------------------------------------
44 // -----------------------------------------------------------------------------
46 template<class T> inline void RXmlEngNodeList<T>::Close()
51 // -----------------------------------------------------------------------------
53 // -----------------------------------------------------------------------------
55 template<class T> inline void RXmlEngNodeList<T>::OpenL(
57 TXmlEngNode::TXmlEngDOMNodeType aType,
61 iList.OpenL(aHead, aType, aName, aNs);
64 // -----------------------------------------------------------------------------
66 // -----------------------------------------------------------------------------
68 template<class T> inline void RXmlEngNodeList<T>::Open(
70 TXmlEngNode::TXmlEngDOMNodeType aType)
72 iList.Open(aHead, aType);