MainIndexes Class Reference

#include <mainindexes.h>

Inherits Thread.

Collaboration diagram for MainIndexes:

Collaboration graph
[legend]

Public Member Functions

 MainIndexes (MWindow *mwindow)
 ~MainIndexes ()
void add_next_asset (File *file, Asset *asset)
void start_loop ()
void stop_loop ()
void start_build ()
void run ()
void interrupt_build ()
void load_next_assets ()
void delete_current_assets ()

Data Fields

ArrayList< Asset * > current_assets
ArrayList< Asset * > next_assets
int interrupt_flag
int done
MWindowmwindow
Conditioninput_lock
Mutexnext_lock
Conditioninterrupt_lock
IndexFileindexfile

Detailed Description

Definition at line 14 of file mainindexes.h.


Constructor & Destructor Documentation

MainIndexes::MainIndexes ( MWindow mwindow  ) 

Definition at line 22 of file mainindexes.C.

References done, indexfile, input_lock, interrupt_flag, interrupt_lock, next_lock, and Thread::set_synchronous().

Here is the call graph for this function:

MainIndexes::~MainIndexes (  ) 

Definition at line 35 of file mainindexes.C.

References MainProgress::cancelled, indexfile, input_lock, interrupt_lock, MWindow::mainprogress, mwindow, next_lock, and stop_loop().

Here is the call graph for this function:


Member Function Documentation

void MainIndexes::add_next_asset ( File file,
Asset asset 
)

void MainIndexes::start_loop (  ) 

Definition at line 116 of file mainindexes.C.

References interrupt_flag, and Thread::start().

Referenced by MWindow::init_indexes().

Here is the call graph for this function:

void MainIndexes::stop_loop (  ) 

Definition at line 122 of file mainindexes.C.

References done, input_lock, interrupt_flag, interrupt_lock, Thread::join(), and Condition::unlock().

Referenced by ~MainIndexes().

Here is the call graph for this function:

void MainIndexes::start_build (  ) 

Definition at line 132 of file mainindexes.C.

References input_lock, interrupt_flag, and Condition::unlock().

Referenced by MWindow::load_filenames(), MainUndoStackItem::load_from_undo(), MWindow::paste_edls(), MWindow::rebuild_indices(), and AssetEdit::run().

Here is the call graph for this function:

void MainIndexes::run (  )  [virtual]

void MainIndexes::interrupt_build (  ) 

Definition at line 142 of file mainindexes.C.

References indexfile, interrupt_flag, IndexFile::interrupt_index(), interrupt_lock, Condition::lock(), and Condition::unlock().

Referenced by MWindow::interrupt_indexes().

Here is the call graph for this function:

void MainIndexes::load_next_assets (  ) 

void MainIndexes::delete_current_assets (  ) 

Definition at line 109 of file mainindexes.C.

References current_assets, Garbage::delete_object(), ArrayList< TYPE >::remove_all(), ArrayList< TYPE >::total, and ArrayList< TYPE >::values.

Referenced by load_next_assets().

Here is the call graph for this function:


Field Documentation

Definition at line 30 of file mainindexes.h.

Referenced by delete_current_assets(), load_next_assets(), and run().

Definition at line 31 of file mainindexes.h.

Referenced by add_next_asset(), and load_next_assets().

Definition at line 33 of file mainindexes.h.

Referenced by interrupt_build(), MainIndexes(), run(), start_build(), start_loop(), and stop_loop().

Definition at line 34 of file mainindexes.h.

Referenced by MainIndexes(), run(), and stop_loop().

Definition at line 35 of file mainindexes.h.

Referenced by add_next_asset(), run(), and ~MainIndexes().

Definition at line 36 of file mainindexes.h.

Referenced by MainIndexes(), run(), start_build(), stop_loop(), and ~MainIndexes().

Definition at line 37 of file mainindexes.h.

Referenced by add_next_asset(), load_next_assets(), MainIndexes(), and ~MainIndexes().

Definition at line 38 of file mainindexes.h.

Referenced by interrupt_build(), MainIndexes(), run(), stop_loop(), and ~MainIndexes().

Definition at line 39 of file mainindexes.h.

Referenced by add_next_asset(), interrupt_build(), MainIndexes(), run(), and ~MainIndexes().


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

Generated on Mon Apr 28 14:30:08 2008 for Cinelerra by  doxygen 1.5.5