Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

xmltooling::XMLObjectPairList< Container, _Ty > Class Template Reference

STL-compatible container that mediates access to underlying lists of typed XML children that come in pairs. More...

#include <xmltooling/util/XMLObjectChildrenList.h>

List of all members.

Public Types

typedef Container::value_type value_type
 OFF
typedef Container::reference reference
typedef Container::const_reference const_reference
typedef Container::difference_type difference_type
typedef Container::size_type size_type
typedef XMLObjectChildrenIterator<
Container, typename Container::iterator > 
iterator
typedef XMLObjectChildrenIterator<
Container, typename Container::const_iterator > 
const_iterator

Public Member Functions

 XMLObjectPairList (XMLObject *parent, Container &sublist, typename std::list< _Ty * > *backing, typename std::list< _Ty * >::iterator ins_fence)
 Constructor to expose a typed collection of pairs backed by a list of a base type.
size_type size () const
 OFF
bool empty () const
iterator begin ()
iterator end ()
const_iterator begin () const
const_iterator end () const
const_reference at (size_type _Pos) const
const_reference operator[] (size_type _Pos) const
const_reference front () const
const_reference back () const
void push_back (const_reference _Val)
iterator erase (iterator _Where)
iterator erase (iterator _First, iterator _Last)
void clear ()


Detailed Description

template<class Container, class _Ty>
class xmltooling::XMLObjectPairList< Container, _Ty >

STL-compatible container that mediates access to underlying lists of typed XML children that come in pairs.

Parameters:
_Tx the subtype container to encapsulate
_Ty the base type in the underlying list (defaults to XMLObject)


Constructor & Destructor Documentation

template<class Container, class _Ty>
xmltooling::XMLObjectPairList< Container, _Ty >::XMLObjectPairList (  XMLObject *  parent,
Container &  sublist,
typename std::list< _Ty * > *  backing,
typename std::list< _Ty * >::iterator  ins_fence
)  [inline]
 

Constructor to expose a typed collection of pairs backed by a list of a base type.

Parameters:
parent parent object of the collection
sublist underlying container to expose
backing pointer to backing list for children, if any
ins_fence a marker designating where new children of this type should be added


The documentation for this class was generated from the following file:
Generated on Mon Jun 22 13:37:19 2009 for xmltooling by  doxygen 1.3.9.1