1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- \hypertarget{classfv_1_1Reduce}{}\section{fv\+:\+:Reduce$<$ T $>$ Class Template Reference}
- \label{classfv_1_1Reduce}\index{fv\+::\+Reduce$<$ T $>$@{fv\+::\+Reduce$<$ T $>$}}
- \hyperlink{classfv_1_1Reduce}{Reduce} a \hyperlink{classfv_1_1Value}{Value} of type vector$<$\+T$>$ to just a T.
- {\ttfamily \#include $<$value.\+hpp$>$}
- Inheritance diagram for fv\+:\+:Reduce$<$ T $>$\+:
- \nopagebreak
- \begin{figure}[H]
- \begin{center}
- \leavevmode
- \includegraphics[width=350pt]{classfv_1_1Reduce__inherit__graph}
- \end{center}
- \end{figure}
- Collaboration diagram for fv\+:\+:Reduce$<$ T $>$\+:
- \nopagebreak
- \begin{figure}[H]
- \begin{center}
- \leavevmode
- \includegraphics[width=350pt]{classfv_1_1Reduce__coll__graph}
- \end{center}
- \end{figure}
- \subsection*{Public Member Functions}
- \begin{DoxyCompactItemize}
- \item
- \hypertarget{classfv_1_1Reduce_a0af8d497d4b974fa5aea0151a2227462}{}\label{classfv_1_1Reduce_a0af8d497d4b974fa5aea0151a2227462}
- {\bfseries Reduce} (\hyperlink{classfv_1_1Function}{Function}$<$ T(std\+::vector$<$ T $>$)$>$ \&reduce, \hyperlink{classfv_1_1Value}{Value}$<$ std\+::vector$<$ T $>$ $>$ $\ast$v, const std\+::string alias=\char`\"{}\char`\"{})
- \item
- \hypertarget{classfv_1_1Reduce_a764993d6c26067687a3d706dabc9404e}{}\label{classfv_1_1Reduce_a764993d6c26067687a3d706dabc9404e}
- {\bfseries Reduce} (\hyperlink{classfv_1_1Function}{Function}$<$ T(std\+::vector$<$ T $>$)$>$ \&reduce, const std\+::string \&v\+\_\+name, const std\+::string alias=\char`\"{}\char`\"{})
- \end{DoxyCompactItemize}
- \subsection*{Private Member Functions}
- \begin{DoxyCompactItemize}
- \item
- void \hyperlink{classfv_1_1Reduce_ab0809c4ab1884b84a7f88e005ade76a5}{update\+\_\+value} ()
- \begin{DoxyCompactList}\small\item\em Updates the internal value. \end{DoxyCompactList}\end{DoxyCompactItemize}
- \subsection*{Private Attributes}
- \begin{DoxyCompactItemize}
- \item
- \hypertarget{classfv_1_1Reduce_a726b29987fedc0ff47c4c79bd53c0b00}{}\label{classfv_1_1Reduce_a726b29987fedc0ff47c4c79bd53c0b00}
- \hyperlink{classfv_1_1Function}{Function}$<$ T(std\+::vector$<$ T $>$)$>$ \& {\bfseries reduce}
- \item
- \hypertarget{classfv_1_1Reduce_a959548248472f15abf46a50c778892ce}{}\label{classfv_1_1Reduce_a959548248472f15abf46a50c778892ce}
- \hyperlink{classfv_1_1Value}{Value}$<$ std\+::vector$<$ T $>$ $>$ $\ast$ {\bfseries v}
- \end{DoxyCompactItemize}
- \subsection*{Additional Inherited Members}
- \subsection{Detailed Description}
- \subsubsection*{template$<$typename T$>$\newline
- class fv\+::\+Reduce$<$ T $>$}
- \hyperlink{classfv_1_1Reduce}{Reduce} a \hyperlink{classfv_1_1Value}{Value} of type vector$<$\+T$>$ to just a T.
- This is useful functionality to model, for instance, calculating the maximum element of a vector, or a the mean. See child classes for specific implementations.
- \subsection{Member Function Documentation}
- \hypertarget{classfv_1_1Reduce_ab0809c4ab1884b84a7f88e005ade76a5}{}\label{classfv_1_1Reduce_ab0809c4ab1884b84a7f88e005ade76a5}
- \index{fv\+::\+Reduce@{fv\+::\+Reduce}!update\+\_\+value@{update\+\_\+value}}
- \index{update\+\_\+value@{update\+\_\+value}!fv\+::\+Reduce@{fv\+::\+Reduce}}
- \subsubsection{\texorpdfstring{update\+\_\+value()}{update\_value()}}
- {\footnotesize\ttfamily template$<$typename T$>$ \\
- void \hyperlink{classfv_1_1Reduce}{fv\+::\+Reduce}$<$ 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{classfv_1_1Value}{Value} objects, doing some calculation on them, and storing the result in value.
- Implements \hyperlink{classfv_1_1DerivedValue_ae59e80a98eb74b95d8961bfe12ee5ec2}{fv\+::\+Derived\+Value$<$ T $>$}.
- Here is the call graph for this function\+:
- \nopagebreak
- \begin{figure}[H]
- \begin{center}
- \leavevmode
- \includegraphics[width=336pt]{classfv_1_1Reduce_ab0809c4ab1884b84a7f88e005ade76a5_cgraph}
- \end{center}
- \end{figure}
- 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}
|