classfilval_1_1ReduceIndex.tex 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. \hypertarget{classfilval_1_1ReduceIndex}{}\section{filval\+:\+:Reduce\+Index$<$ T $>$ Class Template Reference}
  2. \label{classfilval_1_1ReduceIndex}\index{filval\+::\+Reduce\+Index$<$ T $>$@{filval\+::\+Reduce\+Index$<$ T $>$}}
  3. Similar to \hyperlink{classfilval_1_1Reduce}{Reduce}, but returns a pair of a T and an int.
  4. {\ttfamily \#include $<$value.\+hpp$>$}
  5. Inheritance diagram for filval\+:\+:Reduce\+Index$<$ T $>$\+:
  6. \nopagebreak
  7. \begin{figure}[H]
  8. \begin{center}
  9. \leavevmode
  10. \includegraphics[width=340pt]{classfilval_1_1ReduceIndex__inherit__graph}
  11. \end{center}
  12. \end{figure}
  13. Collaboration diagram for filval\+:\+:Reduce\+Index$<$ T $>$\+:
  14. \nopagebreak
  15. \begin{figure}[H]
  16. \begin{center}
  17. \leavevmode
  18. \includegraphics[width=290pt]{classfilval_1_1ReduceIndex__coll__graph}
  19. \end{center}
  20. \end{figure}
  21. \subsection*{Public Member Functions}
  22. \begin{DoxyCompactItemize}
  23. \item
  24. \hypertarget{classfilval_1_1ReduceIndex_abb394f01acdcb0bd77abfb05782baf0b}{}\label{classfilval_1_1ReduceIndex_abb394f01acdcb0bd77abfb05782baf0b}
  25. {\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)
  26. \item
  27. \hypertarget{classfilval_1_1ReduceIndex_a1c0c6eecd71c861d58723d82e95b76ea}{}\label{classfilval_1_1ReduceIndex_a1c0c6eecd71c861d58723d82e95b76ea}
  28. {\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)
  29. \end{DoxyCompactItemize}
  30. \subsection*{Private Member Functions}
  31. \begin{DoxyCompactItemize}
  32. \item
  33. void \hyperlink{classfilval_1_1ReduceIndex_a9c842f80d772c4c77cd3fe132a0f8730}{update\+\_\+value} ()
  34. \begin{DoxyCompactList}\small\item\em Updates the internal value. \end{DoxyCompactList}\end{DoxyCompactItemize}
  35. \subsection*{Private Attributes}
  36. \begin{DoxyCompactItemize}
  37. \item
  38. \hypertarget{classfilval_1_1ReduceIndex_a8051a7beba20dfb9cbe6476559edb07d}{}\label{classfilval_1_1ReduceIndex_a8051a7beba20dfb9cbe6476559edb07d}
  39. std\+::function$<$ std\+::pair$<$ T, int $>$std\+::vector$<$ T $>$)$>$ {\bfseries reduce}
  40. \item
  41. \hypertarget{classfilval_1_1ReduceIndex_a9e9c0c76aa470492b3a3774c198d597b}{}\label{classfilval_1_1ReduceIndex_a9e9c0c76aa470492b3a3774c198d597b}
  42. \hyperlink{classfilval_1_1Value}{Value}$<$ std\+::vector$<$ T $>$ $>$ $\ast$ {\bfseries v}
  43. \end{DoxyCompactItemize}
  44. \subsection*{Additional Inherited Members}
  45. \subsection{Detailed Description}
  46. \subsubsection*{template$<$typename T$>$\newline
  47. class filval\+::\+Reduce\+Index$<$ T $>$}
  48. Similar to \hyperlink{classfilval_1_1Reduce}{Reduce}, but returns a pair of a T and an int.
  49. This is useful if you need to know where in the vector exists the element being returned.
  50. \subsection{Member Function Documentation}
  51. \hypertarget{classfilval_1_1ReduceIndex_a9c842f80d772c4c77cd3fe132a0f8730}{}\label{classfilval_1_1ReduceIndex_a9c842f80d772c4c77cd3fe132a0f8730}
  52. \index{filval\+::\+Reduce\+Index@{filval\+::\+Reduce\+Index}!update\+\_\+value@{update\+\_\+value}}
  53. \index{update\+\_\+value@{update\+\_\+value}!filval\+::\+Reduce\+Index@{filval\+::\+Reduce\+Index}}
  54. \subsubsection{\texorpdfstring{update\+\_\+value()}{update\_value()}}
  55. {\footnotesize\ttfamily template$<$typename T$>$ \\
  56. void \hyperlink{classfilval_1_1ReduceIndex}{filval\+::\+Reduce\+Index}$<$ T $>$\+::update\+\_\+value (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [private]}, {\ttfamily [virtual]}}
  57. Updates the internal value.
  58. 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.
  59. Implements \hyperlink{classfilval_1_1DerivedValue_a74e04450a550454510329a9e6b941304}{filval\+::\+Derived\+Value$<$ std\+::pair$<$ T, int $>$ $>$}.
  60. The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
  61. \item
  62. /home/caleb/\+Sources/\+T\+T\+T\+T/filval/\hyperlink{value_8hpp}{value.\+hpp}\end{DoxyCompactItemize}