\hypertarget{class_s_c_i_run_1_1_parallel}{\section{Parallel$<$ T $>$ Class Template Reference}
\label{class_s_c_i_run_1_1_parallel}\index{Parallel$<$ T $>$@{Parallel$<$ T $>$}}
}


{\ttfamily \#include $<$Parallel.\-h$>$}

Inheritance diagram for Parallel$<$ T $>$\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{class_s_c_i_run_1_1_parallel}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_s_c_i_run_1_1_parallel_ab0832dd088fedda35597581113c7c11c}{Parallel} (T $\ast$obj, void(T\-::$\ast$pmf)(int))
\item 
virtual \hyperlink{class_s_c_i_run_1_1_parallel_a5eb93067222b2d952d53994e600758eb}{$\sim$\-Parallel} ()
\begin{DoxyCompactList}\small\item\em Destroy the \hyperlink{class_s_c_i_run_1_1_parallel}{Parallel} object -\/ the threads will remain alive. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
T $\ast$ \hyperlink{class_s_c_i_run_1_1_parallel_a25cfa5149e6b595c431c71bca1fabc2a}{obj\-\_\-}
\item 
void(T\-::$\ast$ \hyperlink{class_s_c_i_run_1_1_parallel_a63da29aacbf2f298677d6d2a25a51a5d}{pmf\-\_\-} )(int)
\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual void \hyperlink{class_s_c_i_run_1_1_parallel_a652b0b2e4ed18c7199e133ef6f091b69}{run} (int proc)
\begin{DoxyCompactList}\small\item\em {\itshape The thread body} \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Constructor \& Destructor Documentation}
\hypertarget{class_s_c_i_run_1_1_parallel_ab0832dd088fedda35597581113c7c11c}{\index{S\-C\-I\-Run\-::\-Parallel@{S\-C\-I\-Run\-::\-Parallel}!Parallel@{Parallel}}
\index{Parallel@{Parallel}!SCIRun::Parallel@{S\-C\-I\-Run\-::\-Parallel}}
\subsubsection[{Parallel}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Parallel} (
\begin{DoxyParamCaption}
\item[{T $\ast$}]{obj, }
\item[{void(T\-::$\ast$)(int)}]{pmf}
\end{DoxyParamCaption}
)}}\label{class_s_c_i_run_1_1_parallel_ab0832dd088fedda35597581113c7c11c}
Create a parallel object, using the specified member function instead of {\itshape parallel}. This will typically be used like\-: {\bfseries 
\begin{DoxyPre}\hyperlink{class_s_c_i_run_1_1_thread_a67edc5ea108cbde73d496e9c2f82e524}{Thread::parallel}(\hyperlink{class_s_c_i_run_1_1_parallel}{Parallel}<MyClass>(this, \&MyClass::mymemberfn), nthreads);\end{DoxyPre}
} \hypertarget{class_s_c_i_run_1_1_parallel_a5eb93067222b2d952d53994e600758eb}{\index{S\-C\-I\-Run\-::\-Parallel@{S\-C\-I\-Run\-::\-Parallel}!$\sim$\-Parallel@{$\sim$\-Parallel}}
\index{$\sim$\-Parallel@{$\sim$\-Parallel}!SCIRun::Parallel@{S\-C\-I\-Run\-::\-Parallel}}
\subsubsection[{$\sim$\-Parallel}]{\setlength{\rightskip}{0pt plus 5cm}$\sim${\bf Parallel} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}}\label{class_s_c_i_run_1_1_parallel_a5eb93067222b2d952d53994e600758eb}


Destroy the \hyperlink{class_s_c_i_run_1_1_parallel}{Parallel} object -\/ the threads will remain alive. 



\subsection{Member Function Documentation}
\hypertarget{class_s_c_i_run_1_1_parallel_a652b0b2e4ed18c7199e133ef6f091b69}{\index{S\-C\-I\-Run\-::\-Parallel@{S\-C\-I\-Run\-::\-Parallel}!run@{run}}
\index{run@{run}!SCIRun::Parallel@{S\-C\-I\-Run\-::\-Parallel}}
\subsubsection[{run}]{\setlength{\rightskip}{0pt plus 5cm}void run (
\begin{DoxyParamCaption}
\item[{int}]{proc}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [protected]}, {\ttfamily [virtual]}}}\label{class_s_c_i_run_1_1_parallel_a652b0b2e4ed18c7199e133ef6f091b69}


{\itshape The thread body} 



Implements \hyperlink{class_s_c_i_run_1_1_parallel_base_a18dfc4da7bde00abccdc3e45765fbf88}{Parallel\-Base}.



\subsection{Member Data Documentation}
\hypertarget{class_s_c_i_run_1_1_parallel_a25cfa5149e6b595c431c71bca1fabc2a}{\index{S\-C\-I\-Run\-::\-Parallel@{S\-C\-I\-Run\-::\-Parallel}!obj\-\_\-@{obj\-\_\-}}
\index{obj\-\_\-@{obj\-\_\-}!SCIRun::Parallel@{S\-C\-I\-Run\-::\-Parallel}}
\subsubsection[{obj\-\_\-}]{\setlength{\rightskip}{0pt plus 5cm}T$\ast$ obj\-\_\-}}\label{class_s_c_i_run_1_1_parallel_a25cfa5149e6b595c431c71bca1fabc2a}
\hypertarget{class_s_c_i_run_1_1_parallel_a63da29aacbf2f298677d6d2a25a51a5d}{\index{S\-C\-I\-Run\-::\-Parallel@{S\-C\-I\-Run\-::\-Parallel}!pmf\-\_\-@{pmf\-\_\-}}
\index{pmf\-\_\-@{pmf\-\_\-}!SCIRun::Parallel@{S\-C\-I\-Run\-::\-Parallel}}
\subsubsection[{pmf\-\_\-}]{\setlength{\rightskip}{0pt plus 5cm}void(T\-::$\ast$ pmf\-\_\-)(int)}}\label{class_s_c_i_run_1_1_parallel_a63da29aacbf2f298677d6d2a25a51a5d}


The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
Core/\-Thread/\-Legacy/\hyperlink{_legacy_2_parallel_8h}{Parallel.\-h}\end{DoxyCompactItemize}
