\hypertarget{_target_condition_8cpp-example}{\section{Target\-Condition.\-cpp}
}
Example of a Target\-Condition.


\begin{DoxyCodeInclude}
\textcolor{preprocessor}{#ifndef ODINAI\_TARGET\_CONDITION\_H\_}
\textcolor{preprocessor}{}\textcolor{preprocessor}{#define ODINAI\_TARGET\_CONDITION\_H\_}
\textcolor{preprocessor}{}
\textcolor{keyword}{class }TargetCondition
\{
\textcolor{keyword}{public}:
    TargetCondition(\textcolor{keywordtype}{int} target) : m\_target(target) \{\}

    \textcolor{keywordtype}{int} m\_target;

    \textcolor{keyword}{template}<\textcolor{keyword}{class} GraphType>
    \textcolor{keyword}{static} \textcolor{keywordtype}{bool} IsTarget(\textcolor{keyword}{const} GraphType &graph, \textcolor{keywordtype}{int} nodeID)
    \{
        \textcolor{keywordflow}{return} m\_target == nodeID;
    \}
\};

\textcolor{preprocessor}{#endif}
\end{DoxyCodeInclude}
 