ltmm::loader< ThreadPolicy >::handle_iterator Class Reference

#include <ltmm/loader.hh>

Collaboration diagram for ltmm::loader< ThreadPolicy >::handle_iterator:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<typename ThreadPolicy = single_thread>
class ltmm::loader< ThreadPolicy >::handle_iterator

Forward iterator over handles in list.

Definition at line 248 of file loader.hh.

Public Types

typedef loader< thread_policy_typeloader_type

Public Member Functions

 ~handle_iterator ()
handle_typeoperator * ()
handle_iterator operator++ (int i)
handle_iteratoroperator++ ()
bool operator== (const handle_iterator &o) const
bool operator!= (const handle_iterator &o) const
bool operator< (const handle_iterator &o) const
handle_iteratoroperator= (const handle_iterator &o)

Protected Member Functions

handle_typecheck_current () const
 handle_iterator (loader< ThreadPolicy > *l, handle_type *h)

Protected Attributes

loader_type_loader
handle_type_current

Friends

class loader< thread_policy_type >


Member Typedef Documentation

template<typename ThreadPolicy = single_thread>
typedef loader<thread_policy_type> ltmm::loader< ThreadPolicy >::handle_iterator::loader_type
 

Type of loeader.

Definition at line 252 of file loader.hh.


Constructor & Destructor Documentation

template<typename ThreadPolicy = single_thread>
ltmm::loader< ThreadPolicy >::handle_iterator::handle_iterator loader< ThreadPolicy > *  l,
handle_type h
[inline, protected]
 

Protect constructor.

Parameters:
l Loader to make iterator over.
h The `current' handle to start at.

Definition at line 271 of file loader.hh.

template<typename ThreadPolicy = single_thread>
ltmm::loader< ThreadPolicy >::handle_iterator::~handle_iterator  )  [inline]
 

Destructor.

Definition at line 276 of file loader.hh.


Member Function Documentation

template<typename ThreadPolicy = single_thread>
handle_type* ltmm::loader< ThreadPolicy >::handle_iterator::check_current  )  const [inline, protected]
 

Check that the current handle is valid

Exceptions:
ltmm::exception if the handle is invalid.

Returns:
Pointer to current handle

Definition at line 263 of file loader.hh.

References ltmm::loader< ThreadPolicy >::handle_iterator::_current.

Referenced by ltmm::loader< ThreadPolicy >::handle_iterator::operator *(), and ltmm::loader< ThreadPolicy >::handle_iterator::operator++().

template<typename ThreadPolicy = single_thread>
handle_type& ltmm::loader< ThreadPolicy >::handle_iterator::operator *  )  [inline]
 

Access the handle, if any.

Exceptions:
ltmm::exception if deferencing after end.
Returns:
reference to handle.

Definition at line 280 of file loader.hh.

References ltmm::loader< ThreadPolicy >::handle_iterator::check_current().

Here is the call graph for this function:

template<typename ThreadPolicy = single_thread>
bool ltmm::loader< ThreadPolicy >::handle_iterator::operator!= const handle_iterator o  )  const [inline]
 

Compare to other iterator.

Definition at line 300 of file loader.hh.

References ltmm::loader< ThreadPolicy >::handle_iterator::operator==().

Here is the call graph for this function:

template<typename ThreadPolicy = single_thread>
handle_iterator& ltmm::loader< ThreadPolicy >::handle_iterator::operator++  )  [inline]
 

Increment the iterator.

Definition at line 289 of file loader.hh.

References ltmm::loader< ThreadPolicy >::handle_iterator::_current, ltmm::loader< ThreadPolicy >::handle_iterator::_loader, ltmm::loader< ThreadPolicy >::handle_iterator::check_current(), and ltmm::loader< ThreadPolicy >::next_handle().

Here is the call graph for this function:

template<typename ThreadPolicy = single_thread>
handle_iterator ltmm::loader< ThreadPolicy >::handle_iterator::operator++ int  i  )  [inline]
 

Increment the iterator.

Definition at line 282 of file loader.hh.

References ltmm::loader< ThreadPolicy >::handle_iterator::_current, ltmm::loader< ThreadPolicy >::handle_iterator::_loader, ltmm::loader< ThreadPolicy >::handle_iterator::check_current(), and ltmm::loader< ThreadPolicy >::next_handle().

Here is the call graph for this function:

template<typename ThreadPolicy = single_thread>
bool ltmm::loader< ThreadPolicy >::handle_iterator::operator< const handle_iterator o  )  const [inline]
 

Compare to other iterator.

Definition at line 305 of file loader.hh.

References ltmm::loader< ThreadPolicy >::handle_iterator::_current.

template<typename ThreadPolicy = single_thread>
handle_iterator& ltmm::loader< ThreadPolicy >::handle_iterator::operator= const handle_iterator o  )  [inline]
 

Assign from another iterator.

Definition at line 310 of file loader.hh.

References ltmm::loader< ThreadPolicy >::handle_iterator::_current, and ltmm::loader< ThreadPolicy >::handle_iterator::_loader.

template<typename ThreadPolicy = single_thread>
bool ltmm::loader< ThreadPolicy >::handle_iterator::operator== const handle_iterator o  )  const [inline]
 

Compare to other iterator.

Definition at line 295 of file loader.hh.

References ltmm::loader< ThreadPolicy >::handle_iterator::_current.

Referenced by ltmm::loader< ThreadPolicy >::handle_iterator::operator!=().


Friends And Related Function Documentation

template<typename ThreadPolicy = single_thread>
friend class loader< thread_policy_type > [friend]
 

Need to be friend to call protected ctor.

Definition at line 254 of file loader.hh.


Member Data Documentation

template<typename ThreadPolicy = single_thread>
handle_type* ltmm::loader< ThreadPolicy >::handle_iterator::_current [protected]
 

The current handle.

Definition at line 259 of file loader.hh.

Referenced by ltmm::loader< ThreadPolicy >::handle_iterator::check_current(), ltmm::loader< ThreadPolicy >::handle_iterator::operator++(), ltmm::loader< ThreadPolicy >::handle_iterator::operator<(), ltmm::loader< ThreadPolicy >::handle_iterator::operator=(), and ltmm::loader< ThreadPolicy >::handle_iterator::operator==().

template<typename ThreadPolicy = single_thread>
loader_type* ltmm::loader< ThreadPolicy >::handle_iterator::_loader [protected]
 

Pointer to loader.

Definition at line 257 of file loader.hh.

Referenced by ltmm::loader< ThreadPolicy >::handle_iterator::operator++(), and ltmm::loader< ThreadPolicy >::handle_iterator::operator=().


The documentation for this class was generated from the following file:
Top of page
Last update Mon Jun 27 13:25:48 2005
Christian Holm
Created by DoxyGen 1.4.3-20050530