Inferno  0.2
ContainerFromIterator< Iterator, ConsParam1, ConsParam2, ConsParam3 > Class Template Reference

#include <specialise_oostd.hpp>

Inheritance diagram for ContainerFromIterator< Iterator, ConsParam1, ConsParam2, ConsParam3 >:
[legend]
Collaboration diagram for ContainerFromIterator< Iterator, ConsParam1, ConsParam2, ConsParam3 >:
[legend]

List of all members.

Public Types

typedef Iterator iterator

Public Member Functions

 ContainerFromIterator (ConsParam1 p1)
 So that the standard Container::iterator requirement is met.
 ContainerFromIterator (ConsParam1 p1, ConsParam2 p2)
 Constructor for 1 param.
 ContainerFromIterator (ConsParam1 p1, ConsParam2 p2, ConsParam2 p3)
 Constructor for 2 params.
virtual const iteratorbegin ()
 Constructor for 3 params.
virtual const iteratorend ()
virtual void erase (ContainerInterface::iterator)
virtual void clear ()
virtual void insert (const TreePtrInterface &)

Detailed Description

template<typename Iterator, typename ConsParam1, typename ConsParam2 = int, typename ConsParam3 = int>
class ContainerFromIterator< Iterator, ConsParam1, ConsParam2, ConsParam3 >

Produce a container around an iterator that has already been defined. Iterator's constructor should produce an "end" iterator if constructed without parameters, otherwise a "begin" iterator. The begin constructors parameters should be supplied to the template, and will become the container's constructor parameters. Iterators don't have to be const, but I think the container does, so clear() etc are disallowed.

Definition at line 90 of file specialise_oostd.hpp.


Member Typedef Documentation

template<typename Iterator , typename ConsParam1 , typename ConsParam2 = int, typename ConsParam3 = int>
typedef Iterator ContainerFromIterator< Iterator, ConsParam1, ConsParam2, ConsParam3 >::iterator

Definition at line 93 of file specialise_oostd.hpp.


Constructor & Destructor Documentation

template<typename Iterator , typename ConsParam1 , typename ConsParam2 = int, typename ConsParam3 = int>
ContainerFromIterator< Iterator, ConsParam1, ConsParam2, ConsParam3 >::ContainerFromIterator ( ConsParam1  p1) [inline]

So that the standard Container::iterator requirement is met.

Definition at line 94 of file specialise_oostd.hpp.

template<typename Iterator , typename ConsParam1 , typename ConsParam2 = int, typename ConsParam3 = int>
ContainerFromIterator< Iterator, ConsParam1, ConsParam2, ConsParam3 >::ContainerFromIterator ( ConsParam1  p1,
ConsParam2  p2 
) [inline]

Constructor for 1 param.

Definition at line 95 of file specialise_oostd.hpp.

template<typename Iterator , typename ConsParam1 , typename ConsParam2 = int, typename ConsParam3 = int>
ContainerFromIterator< Iterator, ConsParam1, ConsParam2, ConsParam3 >::ContainerFromIterator ( ConsParam1  p1,
ConsParam2  p2,
ConsParam2  p3 
) [inline]

Constructor for 2 params.

Definition at line 97 of file specialise_oostd.hpp.


Member Function Documentation

template<typename Iterator , typename ConsParam1 , typename ConsParam2 = int, typename ConsParam3 = int>
virtual const iterator& ContainerFromIterator< Iterator, ConsParam1, ConsParam2, ConsParam3 >::begin ( ) [inline, virtual]

Constructor for 3 params.

Implements OOStd::ContainerInterface< Itemiser::Element, TreePtrInterface >.

Definition at line 102 of file specialise_oostd.hpp.

Referenced by Validate::operator()().

template<typename Iterator , typename ConsParam1 , typename ConsParam2 = int, typename ConsParam3 = int>
virtual void ContainerFromIterator< Iterator, ConsParam1, ConsParam2, ConsParam3 >::clear ( ) [inline, virtual]
template<typename Iterator , typename ConsParam1 , typename ConsParam2 = int, typename ConsParam3 = int>
virtual const iterator& ContainerFromIterator< Iterator, ConsParam1, ConsParam2, ConsParam3 >::end ( ) [inline, virtual]
template<typename Iterator , typename ConsParam1 , typename ConsParam2 = int, typename ConsParam3 = int>
virtual void ContainerFromIterator< Iterator, ConsParam1, ConsParam2, ConsParam3 >::erase ( ContainerInterface::iterator  ) [inline, virtual]

Definition at line 104 of file specialise_oostd.hpp.

References ASSERTFAIL.

template<typename Iterator , typename ConsParam1 , typename ConsParam2 = int, typename ConsParam3 = int>
virtual void ContainerFromIterator< Iterator, ConsParam1, ConsParam2, ConsParam3 >::insert ( const TreePtrInterface ) [inline, virtual]

The documentation for this class was generated from the following file: