ListIterator< T > Struct Template Reference

#include <List.h>


Public Member Functions

 ListIterator (ListNode< T > *p=NULL)
const ListIterator< T > & ListIterator (int)
const ListIterator< T > & ListIterator (int)
T * operator() () const
bool ok () const

Data Fields

ListNode< T > * listp

template<class T>
struct ListIterator< T >


Constructor & Destructor Documentation

template<class T>
ListIterator< T >::ListIterator ListNode< T > *  p = NULL  )  [inline]
 

Definition at line 45 of file List.h.

00045 : listp(p) {} 

template<class T>
const ListIterator<T>& ListIterator< T >::ListIterator int   )  [inline]
 

template<class T>
const ListIterator<T>& ListIterator< T >::ListIterator int   )  [inline]
 


Member Function Documentation

template<class T>
bool ListIterator< T >::ok  )  const [inline]
 

Definition at line 51 of file List.h.

Referenced by StartTournamentWindow::add_all_selected(), ScoreWindow::add_robots(), StatisticsWindow::add_the_statistics_to_clist(), StartTournamentWindow::change_all_selection(), check_for_robots_and_arenas(), Robot::check_name_uniqueness(), ArenaRealTime::check_robots(), ArenaBase::delete_lists(), Dialog::Dialog(), ArenaWindow::draw_everything(), ArenaWindow::draw_moving_objects(), ArenaRealTime::end_game(), ArenaRealTime::end_sequence(), ArenaRealTime::end_sequence_follow_up(), List< T >::find(), ArenaBase::find_object_by_id(), ArenaReplay::find_object_in_log(), StartTournamentWindow::find_row_in_clist(), Robot::get_current_game_stats(), Robot::get_last_position(), Robot::get_total_points(), StatisticsWindow::make_title_button(), ArenaBase::move_shots(), ArenaBase::move_shots_no_check(), ScoreWindow::new_robot_selected(), StartTournamentWindow::new_tournament(), ArenaReplay::parse_log_line(), ArenaReplay::parse_log_line_forward(), ArenaReplay::parse_log_line_rewind(), ArenaReplay::parse_this_time_index(), ArenaRealTime::read_robot_messages(), ArenaReplay::recreate_lists(), StartTournamentWindow::remove_all_selected(), StatisticsWindow::row_selected(), ArenaBase::save_statistics_to_file(), StartTournamentWindow::save_tournament_file(), ArenaReplay::search_forward(), Robot::set_stats(), ArenaBase::space_available(), ArenaRealTime::start_game(), Robot::start_process(), ArenaRealTime::start_sequence(), ArenaRealTime::start_sequence_follow_up(), ArenaRealTime::start_tournament(), StartTournamentWindow::StartTournamentWindow(), ArenaRealTime::timeout_function(), ScoreWindow::update_robots(), and ArenaRealTime::update_robots().

00051 { return listp != NULL;}

template<class T>
T * ListIterator< T >::operator()  )  const [inline]
 

Definition at line 97 of file List.h.

References Error(), and ListIterator< T >::listp.

00098 {
00099   if ( listp == NULL ) Error(true, "NULL pointer", "ListIterator::operator()");
00100 
00101   return listp->element;
00102 }

Here is the call graph for this function:


Field Documentation

template<class T>
ListNode<T>* ListIterator< T >::listp
 

Definition at line 43 of file List.h.

Referenced by List< Shape >::first(), List< Shape >::last(), ListIterator< T >::operator()(), and List< T >::remove().


The documentation for this struct was generated from the following file:
Generated on Fri Oct 15 15:50:08 2004 for Real Time Battle by  doxygen 1.3.9.1