\hypertarget{classmo_bits_neighbor}{}\doxysection{mo\+Bits\+Neighbor$<$ E\+OT, Fitness $>$ Class Template Reference} \label{classmo_bits_neighbor}\index{moBitsNeighbor$<$ EOT, Fitness $>$@{moBitsNeighbor$<$ EOT, Fitness $>$}} {\ttfamily \#include $<$mo\+Bits\+Neighbor.\+h$>$} Inheritance diagram for mo\+Bits\+Neighbor$<$ E\+OT, Fitness $>$\+: \nopagebreak \begin{figure}[H] \begin{center} \leavevmode \includegraphics[width=268pt]{classmo_bits_neighbor__inherit__graph} \end{center} \end{figure} Collaboration diagram for mo\+Bits\+Neighbor$<$ E\+OT, Fitness $>$\+: \nopagebreak \begin{figure}[H] \begin{center} \leavevmode \includegraphics[width=268pt]{classmo_bits_neighbor__coll__graph} \end{center} \end{figure} \doxysubsection*{Public Member Functions} \begin{DoxyCompactItemize} \item \mbox{\hyperlink{classmo_bits_neighbor_ac209f08d705123ea0f90e85cca9e98dd}{mo\+Bits\+Neighbor}} () \item \mbox{\hyperlink{classmo_bits_neighbor_a219aa7a5ba07cd4885995d222fe83a8e}{mo\+Bits\+Neighbor}} (const \mbox{\hyperlink{classmo_bits_neighbor}{mo\+Bits\+Neighbor}} \&\+\_\+source) \item \mbox{\hyperlink{classmo_bits_neighbor}{mo\+Bits\+Neighbor}}$<$ E\+OT, Fitness $>$ \& \mbox{\hyperlink{classmo_bits_neighbor_abbacf657370517f7233bb7dce4f1ec7d}{operator=}} (const \mbox{\hyperlink{classmo_bits_neighbor}{mo\+Bits\+Neighbor}}$<$ E\+OT, Fitness $>$ \&\+\_\+source) \item virtual std\+::string \mbox{\hyperlink{classmo_bits_neighbor_aedcd1216780a3a88f3819bab9655d060}{class\+Name}} () const \item virtual void \mbox{\hyperlink{classmo_bits_neighbor_a5f37e2c30e608b7471fe348ad325423b}{move}} (E\+OT \&\+\_\+solution) \item virtual void \mbox{\hyperlink{classmo_bits_neighbor_a370b58b642e8d78cda36cf6f2bfd7d0f}{move\+Back}} (E\+OT \&\+\_\+solution) \item virtual bool \mbox{\hyperlink{classmo_bits_neighbor_a15269e3846e41ed437ef7cbb4c4c5df5}{equals}} (\mbox{\hyperlink{classmo_bits_neighbor}{mo\+Bits\+Neighbor}}$<$ E\+OT, Fitness $>$ \&\+\_\+neighbor) \item virtual void \mbox{\hyperlink{classmo_bits_neighbor_a0bc68a993cf793f8e931fc11ad5582b5}{print\+On}} (std\+::ostream \&\+\_\+os) const \end{DoxyCompactItemize} \doxysubsection*{Public Attributes} \begin{DoxyCompactItemize} \item \mbox{\Hypertarget{classmo_bits_neighbor_abd6012413089a9ae50bb225417bb6a0c}\label{classmo_bits_neighbor_abd6012413089a9ae50bb225417bb6a0c}} std\+::vector$<$ unsigned int $>$ {\bfseries bits} \item \mbox{\Hypertarget{classmo_bits_neighbor_ae6545982150ed7393b05b170ab5d0f84}\label{classmo_bits_neighbor_ae6545982150ed7393b05b170ab5d0f84}} unsigned int {\bfseries n\+Bits} \end{DoxyCompactItemize} \doxysubsection*{Additional Inherited Members} \doxysubsection{Detailed Description} \subsubsection*{template$<$class E\+OT, class Fitness = typename E\+O\+T\+::\+Fitness$>$\newline class mo\+Bits\+Neighbor$<$ E\+O\+T, Fitness $>$} Neighbor to flip several bits of a solution of type \mbox{\hyperlink{classeo_bit}{eo\+Bit}} \doxysubsection{Constructor \& Destructor Documentation} \mbox{\Hypertarget{classmo_bits_neighbor_ac209f08d705123ea0f90e85cca9e98dd}\label{classmo_bits_neighbor_ac209f08d705123ea0f90e85cca9e98dd}} \index{moBitsNeighbor$<$ EOT, Fitness $>$@{moBitsNeighbor$<$ EOT, Fitness $>$}!moBitsNeighbor@{moBitsNeighbor}} \index{moBitsNeighbor@{moBitsNeighbor}!moBitsNeighbor$<$ EOT, Fitness $>$@{moBitsNeighbor$<$ EOT, Fitness $>$}} \doxysubsubsection{\texorpdfstring{moBitsNeighbor()}{moBitsNeighbor()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}} {\footnotesize\ttfamily template$<$class E\+OT , class Fitness = typename E\+O\+T\+::\+Fitness$>$ \\ \mbox{\hyperlink{classmo_bits_neighbor}{mo\+Bits\+Neighbor}}$<$ E\+OT, Fitness $>$\+::\mbox{\hyperlink{classmo_bits_neighbor}{mo\+Bits\+Neighbor}} (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}} Default Constructor \mbox{\Hypertarget{classmo_bits_neighbor_a219aa7a5ba07cd4885995d222fe83a8e}\label{classmo_bits_neighbor_a219aa7a5ba07cd4885995d222fe83a8e}} \index{moBitsNeighbor$<$ EOT, Fitness $>$@{moBitsNeighbor$<$ EOT, Fitness $>$}!moBitsNeighbor@{moBitsNeighbor}} \index{moBitsNeighbor@{moBitsNeighbor}!moBitsNeighbor$<$ EOT, Fitness $>$@{moBitsNeighbor$<$ EOT, Fitness $>$}} \doxysubsubsection{\texorpdfstring{moBitsNeighbor()}{moBitsNeighbor()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}} {\footnotesize\ttfamily template$<$class E\+OT , class Fitness = typename E\+O\+T\+::\+Fitness$>$ \\ \mbox{\hyperlink{classmo_bits_neighbor}{mo\+Bits\+Neighbor}}$<$ E\+OT, Fitness $>$\+::\mbox{\hyperlink{classmo_bits_neighbor}{mo\+Bits\+Neighbor}} (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{classmo_bits_neighbor}{mo\+Bits\+Neighbor}}$<$ E\+OT, Fitness $>$ \&}]{\+\_\+source }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}} Copy Constructor \begin{DoxyParams}{Parameters} {\em \+\_\+source} & the neighbor to copy \\ \hline \end{DoxyParams} \doxysubsection{Member Function Documentation} \mbox{\Hypertarget{classmo_bits_neighbor_aedcd1216780a3a88f3819bab9655d060}\label{classmo_bits_neighbor_aedcd1216780a3a88f3819bab9655d060}} \index{moBitsNeighbor$<$ EOT, Fitness $>$@{moBitsNeighbor$<$ EOT, Fitness $>$}!className@{className}} \index{className@{className}!moBitsNeighbor$<$ EOT, Fitness $>$@{moBitsNeighbor$<$ EOT, Fitness $>$}} \doxysubsubsection{\texorpdfstring{className()}{className()}} {\footnotesize\ttfamily template$<$class E\+OT , class Fitness = typename E\+O\+T\+::\+Fitness$>$ \\ virtual std\+::string \mbox{\hyperlink{classmo_bits_neighbor}{mo\+Bits\+Neighbor}}$<$ E\+OT, Fitness $>$\+::class\+Name (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}} Return the class Name \begin{DoxyReturn}{Returns} the class name as a std\+::string \end{DoxyReturn} Implements \mbox{\hyperlink{classeo_object_a1c02745db786e7bb46dea93b560fe685}{eo\+Object}}. \mbox{\Hypertarget{classmo_bits_neighbor_a15269e3846e41ed437ef7cbb4c4c5df5}\label{classmo_bits_neighbor_a15269e3846e41ed437ef7cbb4c4c5df5}} \index{moBitsNeighbor$<$ EOT, Fitness $>$@{moBitsNeighbor$<$ EOT, Fitness $>$}!equals@{equals}} \index{equals@{equals}!moBitsNeighbor$<$ EOT, Fitness $>$@{moBitsNeighbor$<$ EOT, Fitness $>$}} \doxysubsubsection{\texorpdfstring{equals()}{equals()}} {\footnotesize\ttfamily template$<$class E\+OT , class Fitness = typename E\+O\+T\+::\+Fitness$>$ \\ virtual bool \mbox{\hyperlink{classmo_bits_neighbor}{mo\+Bits\+Neighbor}}$<$ E\+OT, Fitness $>$\+::equals (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classmo_bits_neighbor}{mo\+Bits\+Neighbor}}$<$ E\+OT, Fitness $>$ \&}]{\+\_\+neighbor }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}} \begin{DoxyParams}{Parameters} {\em \+\_\+neighbor} & a neighbor \\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} if \+\_\+neighbor and this one are equals \end{DoxyReturn} \mbox{\Hypertarget{classmo_bits_neighbor_a5f37e2c30e608b7471fe348ad325423b}\label{classmo_bits_neighbor_a5f37e2c30e608b7471fe348ad325423b}} \index{moBitsNeighbor$<$ EOT, Fitness $>$@{moBitsNeighbor$<$ EOT, Fitness $>$}!move@{move}} \index{move@{move}!moBitsNeighbor$<$ EOT, Fitness $>$@{moBitsNeighbor$<$ EOT, Fitness $>$}} \doxysubsubsection{\texorpdfstring{move()}{move()}} {\footnotesize\ttfamily template$<$class E\+OT , class Fitness = typename E\+O\+T\+::\+Fitness$>$ \\ virtual void \mbox{\hyperlink{classmo_bits_neighbor}{mo\+Bits\+Neighbor}}$<$ E\+OT, Fitness $>$\+::move (\begin{DoxyParamCaption}\item[{E\+OT \&}]{\+\_\+solution }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}} flipped the bits according to the bits vector \begin{DoxyParams}{Parameters} {\em \+\_\+solution} & the solution to move \\ \hline \end{DoxyParams} Implements \mbox{\hyperlink{classmo_neighbor_a8f7c2d49ae656a7da9611fc59dc8a80f}{mo\+Neighbor$<$ E\+O\+T, typename E\+O\+T\+::\+Fitness $>$}}. \mbox{\Hypertarget{classmo_bits_neighbor_a370b58b642e8d78cda36cf6f2bfd7d0f}\label{classmo_bits_neighbor_a370b58b642e8d78cda36cf6f2bfd7d0f}} \index{moBitsNeighbor$<$ EOT, Fitness $>$@{moBitsNeighbor$<$ EOT, Fitness $>$}!moveBack@{moveBack}} \index{moveBack@{moveBack}!moBitsNeighbor$<$ EOT, Fitness $>$@{moBitsNeighbor$<$ EOT, Fitness $>$}} \doxysubsubsection{\texorpdfstring{moveBack()}{moveBack()}} {\footnotesize\ttfamily template$<$class E\+OT , class Fitness = typename E\+O\+T\+::\+Fitness$>$ \\ virtual void \mbox{\hyperlink{classmo_bits_neighbor}{mo\+Bits\+Neighbor}}$<$ E\+OT, Fitness $>$\+::move\+Back (\begin{DoxyParamCaption}\item[{E\+OT \&}]{\+\_\+solution }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}} flipped the bits according to the bits vector \begin{DoxyParams}{Parameters} {\em \+\_\+solution} & the solution to move back \\ \hline \end{DoxyParams} Implements \mbox{\hyperlink{classmo_backable_neighbor_a9807bc11c441f0b852d1817ad152e147}{mo\+Backable\+Neighbor$<$ E\+O\+T $>$}}. \mbox{\Hypertarget{classmo_bits_neighbor_abbacf657370517f7233bb7dce4f1ec7d}\label{classmo_bits_neighbor_abbacf657370517f7233bb7dce4f1ec7d}} \index{moBitsNeighbor$<$ EOT, Fitness $>$@{moBitsNeighbor$<$ EOT, Fitness $>$}!operator=@{operator=}} \index{operator=@{operator=}!moBitsNeighbor$<$ EOT, Fitness $>$@{moBitsNeighbor$<$ EOT, Fitness $>$}} \doxysubsubsection{\texorpdfstring{operator=()}{operator=()}} {\footnotesize\ttfamily template$<$class E\+OT , class Fitness = typename E\+O\+T\+::\+Fitness$>$ \\ \mbox{\hyperlink{classmo_bits_neighbor}{mo\+Bits\+Neighbor}}$<$E\+OT, Fitness$>$\& \mbox{\hyperlink{classmo_bits_neighbor}{mo\+Bits\+Neighbor}}$<$ E\+OT, Fitness $>$\+::operator= (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{classmo_bits_neighbor}{mo\+Bits\+Neighbor}}$<$ E\+OT, Fitness $>$ \&}]{\+\_\+source }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}} Assignment operator \begin{DoxyParams}{Parameters} {\em \+\_\+source} & the source neighbor \\ \hline \end{DoxyParams} \mbox{\Hypertarget{classmo_bits_neighbor_a0bc68a993cf793f8e931fc11ad5582b5}\label{classmo_bits_neighbor_a0bc68a993cf793f8e931fc11ad5582b5}} \index{moBitsNeighbor$<$ EOT, Fitness $>$@{moBitsNeighbor$<$ EOT, Fitness $>$}!printOn@{printOn}} \index{printOn@{printOn}!moBitsNeighbor$<$ EOT, Fitness $>$@{moBitsNeighbor$<$ EOT, Fitness $>$}} \doxysubsubsection{\texorpdfstring{printOn()}{printOn()}} {\footnotesize\ttfamily template$<$class E\+OT , class Fitness = typename E\+O\+T\+::\+Fitness$>$ \\ virtual void \mbox{\hyperlink{classmo_bits_neighbor}{mo\+Bits\+Neighbor}}$<$ E\+OT, Fitness $>$\+::print\+On (\begin{DoxyParamCaption}\item[{std\+::ostream \&}]{\+\_\+os }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}} Write object. Called print\+On since it prints the object {\itshape on} a stream. \begin{DoxyParams}{Parameters} {\em \+\_\+os} & A std\+::ostream. \\ \hline \end{DoxyParams} Reimplemented from \mbox{\hyperlink{class_e_o_a3a022b10acf3d67e61c253caf1d76356}{E\+O$<$ typename E\+O\+T\+::\+Fitness $>$}}. The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize} \item mo/src/problems/bit\+String/mo\+Bits\+Neighbor.\+h\end{DoxyCompactItemize}