\hypertarget{class_s_c_i_run_1_1_simple_reducer}{\section{Simple\-Reducer Class Reference}
\label{class_s_c_i_run_1_1_simple_reducer}\index{Simple\-Reducer@{Simple\-Reducer}}
}


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

Inheritance diagram for Simple\-Reducer\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{class_s_c_i_run_1_1_simple_reducer}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_s_c_i_run_1_1_simple_reducer_a22359ff2a3341fed16355e73a4411dbd}{Simple\-Reducer} (const char $\ast$\hyperlink{_boost_graph_example_tests_8cc_a8ad72759d07f18eaf8f6690e5dfb747c}{name})
\item 
virtual \hyperlink{class_s_c_i_run_1_1_simple_reducer_a7f139ec4d68fa31b0f3884a73e08d6d3}{$\sim$\-Simple\-Reducer} ()
\begin{DoxyCompactList}\small\item\em Destroy the \hyperlink{class_s_c_i_run_1_1_simple_reducer}{Simple\-Reducer} and free associated memory. \end{DoxyCompactList}\item 
double \hyperlink{class_s_c_i_run_1_1_simple_reducer_a300141f94079e431a46ddad4ef25f0d9}{sum} (int myrank, int num\-Threads, double mysum)
\item 
double \hyperlink{class_s_c_i_run_1_1_simple_reducer_af694278247ae6236b7249383e2fb6432}{max} (int myrank, int num\-Threads, double mymax)
\item 
double \hyperlink{class_s_c_i_run_1_1_simple_reducer_a56409aa5e56091ecbef81145ec9d4416}{min} (int myrank, int num\-Threads, double mymax)
\end{DoxyCompactItemize}


\subsection{Constructor \& Destructor Documentation}
\hypertarget{class_s_c_i_run_1_1_simple_reducer_a22359ff2a3341fed16355e73a4411dbd}{\index{S\-C\-I\-Run\-::\-Simple\-Reducer@{S\-C\-I\-Run\-::\-Simple\-Reducer}!Simple\-Reducer@{Simple\-Reducer}}
\index{Simple\-Reducer@{Simple\-Reducer}!SCIRun::SimpleReducer@{S\-C\-I\-Run\-::\-Simple\-Reducer}}
\subsubsection[{Simple\-Reducer}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Simple\-Reducer} (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{name}
\end{DoxyParamCaption}
)}}\label{class_s_c_i_run_1_1_simple_reducer_a22359ff2a3341fed16355e73a4411dbd}
Create a {\bfseries  \hyperlink{class_s_c_i_run_1_1_simple_reducer}{Simple\-Reducer}. At each operation, a barrier wait is performed, and the operation will be performed to compute the global balue. {\itshape name} should be a static string which describes the primitive for debugging purposes. }\hypertarget{class_s_c_i_run_1_1_simple_reducer_a7f139ec4d68fa31b0f3884a73e08d6d3}{\index{S\-C\-I\-Run\-::\-Simple\-Reducer@{S\-C\-I\-Run\-::\-Simple\-Reducer}!$\sim$\-Simple\-Reducer@{$\sim$\-Simple\-Reducer}}
\index{$\sim$\-Simple\-Reducer@{$\sim$\-Simple\-Reducer}!SCIRun::SimpleReducer@{S\-C\-I\-Run\-::\-Simple\-Reducer}}
\subsubsection[{$\sim$\-Simple\-Reducer}]{\setlength{\rightskip}{0pt plus 5cm}virtual $\sim${\bf Simple\-Reducer} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}}\label{class_s_c_i_run_1_1_simple_reducer_a7f139ec4d68fa31b0f3884a73e08d6d3}


Destroy the \hyperlink{class_s_c_i_run_1_1_simple_reducer}{Simple\-Reducer} and free associated memory. 



\subsection{Member Function Documentation}
\hypertarget{class_s_c_i_run_1_1_simple_reducer_af694278247ae6236b7249383e2fb6432}{\index{S\-C\-I\-Run\-::\-Simple\-Reducer@{S\-C\-I\-Run\-::\-Simple\-Reducer}!max@{max}}
\index{max@{max}!SCIRun::SimpleReducer@{S\-C\-I\-Run\-::\-Simple\-Reducer}}
\subsubsection[{max}]{\setlength{\rightskip}{0pt plus 5cm}double {\bf max} (
\begin{DoxyParamCaption}
\item[{int}]{myrank, }
\item[{int}]{num\-Threads, }
\item[{double}]{mymax}
\end{DoxyParamCaption}
)}}\label{class_s_c_i_run_1_1_simple_reducer_af694278247ae6236b7249383e2fb6432}
Performs a global max over all of the threads. As soon as each thread has called max with their local max, each thread will return the same global max. \hypertarget{class_s_c_i_run_1_1_simple_reducer_a56409aa5e56091ecbef81145ec9d4416}{\index{S\-C\-I\-Run\-::\-Simple\-Reducer@{S\-C\-I\-Run\-::\-Simple\-Reducer}!min@{min}}
\index{min@{min}!SCIRun::SimpleReducer@{S\-C\-I\-Run\-::\-Simple\-Reducer}}
\subsubsection[{min}]{\setlength{\rightskip}{0pt plus 5cm}double min (
\begin{DoxyParamCaption}
\item[{int}]{myrank, }
\item[{int}]{num\-Threads, }
\item[{double}]{mymax}
\end{DoxyParamCaption}
)}}\label{class_s_c_i_run_1_1_simple_reducer_a56409aa5e56091ecbef81145ec9d4416}
Performs a global min over all of the threads. As soon as each thread has called min with their local max, each thread will return the same global max. \hypertarget{class_s_c_i_run_1_1_simple_reducer_a300141f94079e431a46ddad4ef25f0d9}{\index{S\-C\-I\-Run\-::\-Simple\-Reducer@{S\-C\-I\-Run\-::\-Simple\-Reducer}!sum@{sum}}
\index{sum@{sum}!SCIRun::SimpleReducer@{S\-C\-I\-Run\-::\-Simple\-Reducer}}
\subsubsection[{sum}]{\setlength{\rightskip}{0pt plus 5cm}double sum (
\begin{DoxyParamCaption}
\item[{int}]{myrank, }
\item[{int}]{num\-Threads, }
\item[{double}]{mysum}
\end{DoxyParamCaption}
)}}\label{class_s_c_i_run_1_1_simple_reducer_a300141f94079e431a46ddad4ef25f0d9}
Performs a global sum over all of the threads. As soon as each thread has called sum with their local sum, each thread will return the same global sum. 

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