\doxysection{State\+Representation Class Reference}
\hypertarget{classStateRepresentation}{}\label{classStateRepresentation}\index{StateRepresentation@{StateRepresentation}}


The subclass \doxylink{classStateRepresentation_ad2cb6dfe68065ebfeb0ea1e27aabe512}{create(\+Py\+Object \texorpdfstring{$\ast$}{*})} functions check if the Py\+Object matches and return a new instace if it does, or 0 otherwise (or throw an exception if the name matches but the parameters don\textquotesingle{}t).  




{\ttfamily \#include $<$State\+Representation.\+hpp$>$}

\doxysubsubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\Hypertarget{classStateRepresentation_a65c6b2c54c36261d7444d8b13d6956e5}\label{classStateRepresentation_a65c6b2c54c36261d7444d8b13d6956e5} 
virtual Py\+Object \texorpdfstring{$\ast$}{*} {\bfseries get\+Py} (Py\+Object \texorpdfstring{$\ast$}{*}args)
\item 
\Hypertarget{classStateRepresentation_a04e09fc59e477b2f7ae466d8ed63dda5}\label{classStateRepresentation_a04e09fc59e477b2f7ae466d8ed63dda5} 
virtual void {\bfseries init} (\mbox{\hyperlink{classPCBoard}{PCBoard}} \&PCB)
\item 
\Hypertarget{classStateRepresentation_acb2d6eac45c5962155f8a10b15f592e7}\label{classStateRepresentation_acb2d6eac45c5962155f8a10b15f592e7} 
virtual void {\bfseries reset} ()
\item 
\Hypertarget{classStateRepresentation_a7ce9b76b22fabee8dc5cc7f03fa97066}\label{classStateRepresentation_a7ce9b76b22fabee8dc5cc7f03fa97066} 
virtual const char \texorpdfstring{$\ast$}{*} {\bfseries name} () const
\item 
void \mbox{\hyperlink{classStateRepresentation_ae22071172f30ac4d05baca3422d133c6}{set\+Focus}} (const \mbox{\hyperlink{classConnection}{Connection}} \texorpdfstring{$\ast$}{*})
\item 
\Hypertarget{classStateRepresentation_a705ddd3ff2275c65d912c5a5cba0e65b}\label{classStateRepresentation_a705ddd3ff2275c65d912c5a5cba0e65b} 
virtual void {\bfseries set\+Focus} (const std\+::vector$<$ \mbox{\hyperlink{classConnection}{Connection}} \texorpdfstring{$\ast$}{*} $>$ \texorpdfstring{$\ast$}{*})
\item 
\Hypertarget{classStateRepresentation_a99eebdd68a7ad671426d8b6b77b959df}\label{classStateRepresentation_a99eebdd68a7ad671426d8b6b77b959df} 
virtual void {\bfseries update\+View} (const Bbox\+\_\+2 \texorpdfstring{$\ast$}{*}=0)
\item 
\Hypertarget{classStateRepresentation_a1dd5ad11c8a0a6b6e8f343e0993ca6ab}\label{classStateRepresentation_a1dd5ad11c8a0a6b6e8f343e0993ca6ab} 
void {\bfseries set\+Locked\+View} (bool v)
\item 
\Hypertarget{classStateRepresentation_a96b326785a81b13d7bb1261cbbaa7f83}\label{classStateRepresentation_a96b326785a81b13d7bb1261cbbaa7f83} 
virtual void {\bfseries log\+Action} (const \mbox{\hyperlink{classAction}{Action}} \texorpdfstring{$\ast$}{*})
\begin{DoxyCompactList}\small\item\em \doxylink{classStateRepresentation_a96b326785a81b13d7bb1261cbbaa7f83}{log\+Action()} is used for state representations like an action sequence as used e.\+g. by simple combinatorial optimization, or for efficiency. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsubsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\Hypertarget{classStateRepresentation_ad2cb6dfe68065ebfeb0ea1e27aabe512}\label{classStateRepresentation_ad2cb6dfe68065ebfeb0ea1e27aabe512} 
static \mbox{\hyperlink{classStateRepresentation}{State\+Representation}} \texorpdfstring{$\ast$}{*} {\bfseries create} (Py\+Object \texorpdfstring{$\ast$}{*})
\begin{DoxyCompactList}\small\item\em Create a new intance of a subclas as specified by the Py\+Object. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsubsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
\Hypertarget{classStateRepresentation_a57ddada7caff53b7772e817fba1d1551}\label{classStateRepresentation_a57ddada7caff53b7772e817fba1d1551} 
\mbox{\hyperlink{classPCBoard}{PCBoard}} \texorpdfstring{$\ast$}{*} {\bfseries m\+PCB} \{0\}
\item 
\Hypertarget{classStateRepresentation_a38f1c65d799b9f623f05188c5badfc6f}\label{classStateRepresentation_a38f1c65d799b9f623f05188c5badfc6f} 
const \mbox{\hyperlink{classConnection}{Connection}} \texorpdfstring{$\ast$}{*} {\bfseries m\+Focus} \{0\}
\item 
\Hypertarget{classStateRepresentation_a3aa1ff08a789a13168232d5b308d325f}\label{classStateRepresentation_a3aa1ff08a789a13168232d5b308d325f} 
bool {\bfseries m\+Locked\+View} \{false\}
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
The subclass \doxylink{classStateRepresentation_ad2cb6dfe68065ebfeb0ea1e27aabe512}{create(\+Py\+Object \texorpdfstring{$\ast$}{*})} functions check if the Py\+Object matches and return a new instace if it does, or 0 otherwise (or throw an exception if the name matches but the parameters don\textquotesingle{}t). 

The \doxylink{classStateRepresentation}{State\+Representation} object abstracts the state representation and returns it in a Py\+Object. As such, using it makes sense only for use with Python policies. 

\label{doc-func-members}
\Hypertarget{classStateRepresentation_doc-func-members}
\doxysubsection{Member Function Documentation}
\Hypertarget{classStateRepresentation_ae22071172f30ac4d05baca3422d133c6}\index{StateRepresentation@{StateRepresentation}!setFocus@{setFocus}}
\index{setFocus@{setFocus}!StateRepresentation@{StateRepresentation}}
\doxysubsubsection{\texorpdfstring{setFocus()}{setFocus()}}
{\footnotesize\ttfamily \label{classStateRepresentation_ae22071172f30ac4d05baca3422d133c6} 
void State\+Representation\+::set\+Focus (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{classConnection}{Connection}} \texorpdfstring{$\ast$}{*}}]{X}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

Use \doxylink{classStateRepresentation_ae22071172f30ac4d05baca3422d133c6}{set\+Focus()} if you want to create an asymmetry in the state by highlighting a specific connection. This can also be an argument to get\+Py(). 

The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
/home/chr/devel/\+Ph\+D/\+Environment/pub/\+PCBEnv/pcbenv/cxx/\+RL/State\+Representation.\+hpp\end{DoxyCompactItemize}
