\hypertarget{classfilval_1_1ReduceIndex}{}\section{filval\+:\+:Reduce\+Index$<$ T $>$ Class Template Reference} \label{classfilval_1_1ReduceIndex}\index{filval\+::\+Reduce\+Index$<$ T $>$@{filval\+::\+Reduce\+Index$<$ T $>$}} Similar to \hyperlink{classfilval_1_1Reduce}{Reduce}, but returns a pair of a T and an int. {\ttfamily \#include $<$value.\+hpp$>$} Inheritance diagram for filval\+:\+:Reduce\+Index$<$ T $>$\+: \nopagebreak \begin{figure}[H] \begin{center} \leavevmode \includegraphics[width=340pt]{classfilval_1_1ReduceIndex__inherit__graph} \end{center} \end{figure} Collaboration diagram for filval\+:\+:Reduce\+Index$<$ T $>$\+: \nopagebreak \begin{figure}[H] \begin{center} \leavevmode \includegraphics[width=290pt]{classfilval_1_1ReduceIndex__coll__graph} \end{center} \end{figure} \subsection*{Public Member Functions} \begin{DoxyCompactItemize} \item \hypertarget{classfilval_1_1ReduceIndex_abb394f01acdcb0bd77abfb05782baf0b}{}\label{classfilval_1_1ReduceIndex_abb394f01acdcb0bd77abfb05782baf0b} {\bfseries Reduce\+Index} (const std\+::string \&\hyperlink{classfilval_1_1GenValue_a007e38c03ee041c2a657afa3d6e91ab1}{name}, std\+::function$<$ std\+::pair$<$ T, int $>$(std\+::vector$<$ T $>$)$>$ reduce, \hyperlink{classfilval_1_1Value}{Value}$<$ std\+::vector$<$ T $>$ $>$ $\ast$v) \item \hypertarget{classfilval_1_1ReduceIndex_a1c0c6eecd71c861d58723d82e95b76ea}{}\label{classfilval_1_1ReduceIndex_a1c0c6eecd71c861d58723d82e95b76ea} {\bfseries Reduce\+Index} (const std\+::string \&\hyperlink{classfilval_1_1GenValue_a007e38c03ee041c2a657afa3d6e91ab1}{name}, std\+::function$<$ std\+::pair$<$ T, int $>$(std\+::vector$<$ T $>$)$>$ reduce, const std\+::string \&v\+\_\+name) \end{DoxyCompactItemize} \subsection*{Private Member Functions} \begin{DoxyCompactItemize} \item void \hyperlink{classfilval_1_1ReduceIndex_a9c842f80d772c4c77cd3fe132a0f8730}{update\+\_\+value} () \begin{DoxyCompactList}\small\item\em Updates the internal value. \end{DoxyCompactList}\end{DoxyCompactItemize} \subsection*{Private Attributes} \begin{DoxyCompactItemize} \item \hypertarget{classfilval_1_1ReduceIndex_a8051a7beba20dfb9cbe6476559edb07d}{}\label{classfilval_1_1ReduceIndex_a8051a7beba20dfb9cbe6476559edb07d} std\+::function$<$ std\+::pair$<$ T, int $>$std\+::vector$<$ T $>$)$>$ {\bfseries reduce} \item \hypertarget{classfilval_1_1ReduceIndex_a9e9c0c76aa470492b3a3774c198d597b}{}\label{classfilval_1_1ReduceIndex_a9e9c0c76aa470492b3a3774c198d597b} \hyperlink{classfilval_1_1Value}{Value}$<$ std\+::vector$<$ T $>$ $>$ $\ast$ {\bfseries v} \end{DoxyCompactItemize} \subsection*{Additional Inherited Members} \subsection{Detailed Description} \subsubsection*{template$<$typename T$>$\newline class filval\+::\+Reduce\+Index$<$ T $>$} Similar to \hyperlink{classfilval_1_1Reduce}{Reduce}, but returns a pair of a T and an int. This is useful if you need to know where in the vector exists the element being returned. \subsection{Member Function Documentation} \hypertarget{classfilval_1_1ReduceIndex_a9c842f80d772c4c77cd3fe132a0f8730}{}\label{classfilval_1_1ReduceIndex_a9c842f80d772c4c77cd3fe132a0f8730} \index{filval\+::\+Reduce\+Index@{filval\+::\+Reduce\+Index}!update\+\_\+value@{update\+\_\+value}} \index{update\+\_\+value@{update\+\_\+value}!filval\+::\+Reduce\+Index@{filval\+::\+Reduce\+Index}} \subsubsection{\texorpdfstring{update\+\_\+value()}{update\_value()}} {\footnotesize\ttfamily template$<$typename T$>$ \\ void \hyperlink{classfilval_1_1ReduceIndex}{filval\+::\+Reduce\+Index}$<$ T $>$\+::update\+\_\+value (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [private]}, {\ttfamily [virtual]}} Updates the internal value. This function should be overridden by any child class to do the actual work of updating value based on whatever rules the class chooses. Normally, this consists of geting the values from some associated \hyperlink{classfilval_1_1Value}{Value} objects, doing some calculation on them, and storing the result in value. Implements \hyperlink{classfilval_1_1DerivedValue_a74e04450a550454510329a9e6b941304}{filval\+::\+Derived\+Value$<$ std\+::pair$<$ T, int $>$ $>$}. The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize} \item /home/caleb/\+Sources/\+T\+T\+T\+T/filval/\hyperlink{value_8hpp}{value.\+hpp}\end{DoxyCompactItemize}