\hypertarget{classnntrainer_1_1Connection}{}\doxysection{nntrainer\+::Connection Class Reference}
\label{classnntrainer_1_1Connection}\index{nntrainer::Connection@{nntrainer::Connection}}


R\+A\+II class to define a connection.  




{\ttfamily \#include $<$connection.\+h$>$}

\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{classnntrainer_1_1Connection_a9bcd04ab6eeccb21929a019fc7d04e83}{Connection}} (const std\+::string \&layer\+\_\+name, unsigned int idx)
\begin{DoxyCompactList}\small\item\em Construct a new \mbox{\hyperlink{classnntrainer_1_1Connection}{Connection}} object. \end{DoxyCompactList}\item 
\mbox{\hyperlink{classnntrainer_1_1Connection_a2528b34b695c4834ab3d09726f2ac786}{Connection}} (const std\+::string \&str\+\_\+repr)
\begin{DoxyCompactList}\small\item\em Construct a new \mbox{\hyperlink{classnntrainer_1_1Connection}{Connection}} object from string representation string representation is format of \{layer\+\_\+name, idx\};. \end{DoxyCompactList}\item 
\mbox{\hyperlink{classnntrainer_1_1Connection_a48e7b47fe5100ff90335497407ef8397}{Connection}} (const \mbox{\hyperlink{classnntrainer_1_1Connection}{Connection}} \&rhs)
\begin{DoxyCompactList}\small\item\em Construct a new \mbox{\hyperlink{classnntrainer_1_1Connection}{Connection}} object. \end{DoxyCompactList}\item 
\mbox{\hyperlink{classnntrainer_1_1Connection}{Connection}} \& \mbox{\hyperlink{classnntrainer_1_1Connection_a298a80b3197ba1f7de1999e172acc259}{operator=}} (const \mbox{\hyperlink{classnntrainer_1_1Connection}{Connection}} \&rhs)
\begin{DoxyCompactList}\small\item\em Copy assignment operator. \end{DoxyCompactList}\item 
\mbox{\hyperlink{classnntrainer_1_1Connection_ad0478befb22e384571eec54a017459c6}{Connection}} (\mbox{\hyperlink{classnntrainer_1_1Connection}{Connection}} \&\&rhs) noexcept
\begin{DoxyCompactList}\small\item\em Move Construct \mbox{\hyperlink{classnntrainer_1_1Connection}{Connection}} object. \end{DoxyCompactList}\item 
\mbox{\hyperlink{classnntrainer_1_1Connection}{Connection}} \& \mbox{\hyperlink{classnntrainer_1_1Connection_a6689d01d78cd024e1faaf5f619421e1c}{operator=}} (\mbox{\hyperlink{classnntrainer_1_1Connection}{Connection}} \&\&rhs) noexcept
\begin{DoxyCompactList}\small\item\em Move assign a connection operator. \end{DoxyCompactList}\item 
std\+::string \mbox{\hyperlink{classnntrainer_1_1Connection_ad4709ac38d0b06401d0fc3414390c12c}{to\+String}} () const
\begin{DoxyCompactList}\small\item\em string representation of connection \end{DoxyCompactList}\item 
const unsigned \mbox{\hyperlink{classnntrainer_1_1Connection_a9a1062e5484e3d7e0d109ece21cb3c6e}{get\+Index}} () const
\begin{DoxyCompactList}\small\item\em Get the index. \end{DoxyCompactList}\item 
unsigned \& \mbox{\hyperlink{classnntrainer_1_1Connection_a8666406c91eadae48e04df641f5dafb2}{get\+Index}} ()
\begin{DoxyCompactList}\small\item\em Get the index. \end{DoxyCompactList}\item 
const std\+::string \& \mbox{\hyperlink{classnntrainer_1_1Connection_abd2c79340ac2e899fb32dc869401cc8e}{get\+Name}} () const
\begin{DoxyCompactList}\small\item\em Get the \mbox{\hyperlink{classLayer}{Layer}} name object. \end{DoxyCompactList}\item 
std\+::string \& \mbox{\hyperlink{classnntrainer_1_1Connection_a93426ca9fe4f5f8e95a8f9a55b1db32f}{get\+Name}} ()
\begin{DoxyCompactList}\small\item\em Get the \mbox{\hyperlink{classLayer}{Layer}} name object. \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{classnntrainer_1_1Connection_aff050d09ebaf46c6d0107ec20d35c7f4}{operator==}} (const \mbox{\hyperlink{classnntrainer_1_1Connection}{Connection}} \&rhs) const noexcept
\begin{DoxyCompactList}\small\item\em operator== \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
R\+A\+II class to define a connection. 

\begin{DoxyNote}{Note}
connection is a light weight class wraps around connection information 
\end{DoxyNote}


Definition at line 24 of file connection.\+h.



\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{classnntrainer_1_1Connection_a9bcd04ab6eeccb21929a019fc7d04e83}\label{classnntrainer_1_1Connection_a9bcd04ab6eeccb21929a019fc7d04e83}} 
\index{nntrainer::Connection@{nntrainer::Connection}!Connection@{Connection}}
\index{Connection@{Connection}!nntrainer::Connection@{nntrainer::Connection}}
\doxysubsubsection{\texorpdfstring{Connection()}{Connection()}\hspace{0.1cm}{\footnotesize\ttfamily [1/4]}}
{\footnotesize\ttfamily nntrainer\+::\+Connection\+::\+Connection (\begin{DoxyParamCaption}\item[{const std\+::string \&}]{layer\+\_\+name,  }\item[{unsigned int}]{idx }\end{DoxyParamCaption})}



Construct a new \mbox{\hyperlink{classnntrainer_1_1Connection}{Connection}} object. 


\begin{DoxyParams}{Parameters}
{\em layer\+\_\+name} & layer identifier \\
\hline
{\em idx} & index denotes nth tensor in a layer \\
\hline
\end{DoxyParams}


Definition at line 20 of file connection.\+cpp.

\mbox{\Hypertarget{classnntrainer_1_1Connection_a2528b34b695c4834ab3d09726f2ac786}\label{classnntrainer_1_1Connection_a2528b34b695c4834ab3d09726f2ac786}} 
\index{nntrainer::Connection@{nntrainer::Connection}!Connection@{Connection}}
\index{Connection@{Connection}!nntrainer::Connection@{nntrainer::Connection}}
\doxysubsubsection{\texorpdfstring{Connection()}{Connection()}\hspace{0.1cm}{\footnotesize\ttfamily [2/4]}}
{\footnotesize\ttfamily nntrainer\+::\+Connection\+::\+Connection (\begin{DoxyParamCaption}\item[{const std\+::string \&}]{str\+\_\+repr }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [explicit]}}



Construct a new \mbox{\hyperlink{classnntrainer_1_1Connection}{Connection}} object from string representation string representation is format of \{layer\+\_\+name, idx\};. 


\begin{DoxyParams}{Parameters}
{\em str\+\_\+repr} & string format of \{layer\+\_\+name\}(\{idx\}) \\
\hline
\end{DoxyParams}
idx\+\_\+part must not have \textquotesingle{}(\textquotesingle{} or \textquotesingle{})\textquotesingle{} inside

Definition at line 24 of file connection.\+cpp.

\mbox{\Hypertarget{classnntrainer_1_1Connection_a48e7b47fe5100ff90335497407ef8397}\label{classnntrainer_1_1Connection_a48e7b47fe5100ff90335497407ef8397}} 
\index{nntrainer::Connection@{nntrainer::Connection}!Connection@{Connection}}
\index{Connection@{Connection}!nntrainer::Connection@{nntrainer::Connection}}
\doxysubsubsection{\texorpdfstring{Connection()}{Connection()}\hspace{0.1cm}{\footnotesize\ttfamily [3/4]}}
{\footnotesize\ttfamily nntrainer\+::\+Connection\+::\+Connection (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{classnntrainer_1_1Connection}{Connection}} \&}]{rhs }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [default]}}



Construct a new \mbox{\hyperlink{classnntrainer_1_1Connection}{Connection}} object. 


\begin{DoxyParams}{Parameters}
{\em rhs} & rhs to copy \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classnntrainer_1_1Connection_ad0478befb22e384571eec54a017459c6}\label{classnntrainer_1_1Connection_ad0478befb22e384571eec54a017459c6}} 
\index{nntrainer::Connection@{nntrainer::Connection}!Connection@{Connection}}
\index{Connection@{Connection}!nntrainer::Connection@{nntrainer::Connection}}
\doxysubsubsection{\texorpdfstring{Connection()}{Connection()}\hspace{0.1cm}{\footnotesize\ttfamily [4/4]}}
{\footnotesize\ttfamily nntrainer\+::\+Connection\+::\+Connection (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classnntrainer_1_1Connection}{Connection}} \&\&}]{rhs }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [default]}, {\ttfamily [noexcept]}}



Move Construct \mbox{\hyperlink{classnntrainer_1_1Connection}{Connection}} object. 


\begin{DoxyParams}{Parameters}
{\em rhs} & rhs to move \\
\hline
\end{DoxyParams}


\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{classnntrainer_1_1Connection_a8666406c91eadae48e04df641f5dafb2}\label{classnntrainer_1_1Connection_a8666406c91eadae48e04df641f5dafb2}} 
\index{nntrainer::Connection@{nntrainer::Connection}!getIndex@{getIndex}}
\index{getIndex@{getIndex}!nntrainer::Connection@{nntrainer::Connection}}
\doxysubsubsection{\texorpdfstring{getIndex()}{getIndex()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily unsigned\& nntrainer\+::\+Connection\+::get\+Index (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Get the index. 

\begin{DoxyReturn}{Returns}
unsigned index 
\end{DoxyReturn}


Definition at line 91 of file connection.\+h.

\mbox{\Hypertarget{classnntrainer_1_1Connection_a9a1062e5484e3d7e0d109ece21cb3c6e}\label{classnntrainer_1_1Connection_a9a1062e5484e3d7e0d109ece21cb3c6e}} 
\index{nntrainer::Connection@{nntrainer::Connection}!getIndex@{getIndex}}
\index{getIndex@{getIndex}!nntrainer::Connection@{nntrainer::Connection}}
\doxysubsubsection{\texorpdfstring{getIndex()}{getIndex()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily const unsigned nntrainer\+::\+Connection\+::get\+Index (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the index. 

\begin{DoxyReturn}{Returns}
unsigned index 
\end{DoxyReturn}


Definition at line 84 of file connection.\+h.

Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{classnntrainer_1_1Connection_a9a1062e5484e3d7e0d109ece21cb3c6e_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{classnntrainer_1_1Connection_a93426ca9fe4f5f8e95a8f9a55b1db32f}\label{classnntrainer_1_1Connection_a93426ca9fe4f5f8e95a8f9a55b1db32f}} 
\index{nntrainer::Connection@{nntrainer::Connection}!getName@{getName}}
\index{getName@{getName}!nntrainer::Connection@{nntrainer::Connection}}
\doxysubsubsection{\texorpdfstring{getName()}{getName()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily std\+::string\& nntrainer\+::\+Connection\+::get\+Name (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Get the \mbox{\hyperlink{classLayer}{Layer}} name object. 

\begin{DoxyReturn}{Returns}
Name\& name of layer 
\end{DoxyReturn}


Definition at line 105 of file connection.\+h.

\mbox{\Hypertarget{classnntrainer_1_1Connection_abd2c79340ac2e899fb32dc869401cc8e}\label{classnntrainer_1_1Connection_abd2c79340ac2e899fb32dc869401cc8e}} 
\index{nntrainer::Connection@{nntrainer::Connection}!getName@{getName}}
\index{getName@{getName}!nntrainer::Connection@{nntrainer::Connection}}
\doxysubsubsection{\texorpdfstring{getName()}{getName()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily const std\+::string\& nntrainer\+::\+Connection\+::get\+Name (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the \mbox{\hyperlink{classLayer}{Layer}} name object. 

\begin{DoxyReturn}{Returns}
const Name\& name of layer 
\end{DoxyReturn}


Definition at line 98 of file connection.\+h.

Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{classnntrainer_1_1Connection_abd2c79340ac2e899fb32dc869401cc8e_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{classnntrainer_1_1Connection_a6689d01d78cd024e1faaf5f619421e1c}\label{classnntrainer_1_1Connection_a6689d01d78cd024e1faaf5f619421e1c}} 
\index{nntrainer::Connection@{nntrainer::Connection}!operator=@{operator=}}
\index{operator=@{operator=}!nntrainer::Connection@{nntrainer::Connection}}
\doxysubsubsection{\texorpdfstring{operator=()}{operator=()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily \mbox{\hyperlink{classnntrainer_1_1Connection}{Connection}} \& nntrainer\+::\+Connection\+::operator= (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classnntrainer_1_1Connection}{Connection}} \&\&}]{rhs }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [default]}, {\ttfamily [noexcept]}}



Move assign a connection operator. 


\begin{DoxyParams}{Parameters}
{\em rhs} & rhs to move \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\mbox{\hyperlink{classnntrainer_1_1Connection}{Connection}}\& 
\end{DoxyReturn}
\mbox{\Hypertarget{classnntrainer_1_1Connection_a298a80b3197ba1f7de1999e172acc259}\label{classnntrainer_1_1Connection_a298a80b3197ba1f7de1999e172acc259}} 
\index{nntrainer::Connection@{nntrainer::Connection}!operator=@{operator=}}
\index{operator=@{operator=}!nntrainer::Connection@{nntrainer::Connection}}
\doxysubsubsection{\texorpdfstring{operator=()}{operator=()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily \mbox{\hyperlink{classnntrainer_1_1Connection}{Connection}} \& nntrainer\+::\+Connection\+::operator= (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{classnntrainer_1_1Connection}{Connection}} \&}]{rhs }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [default]}}



Copy assignment operator. 


\begin{DoxyParams}{Parameters}
{\em rhs} & rhs to copy \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\mbox{\hyperlink{classnntrainer_1_1Connection}{Connection}}\& 
\end{DoxyReturn}
\mbox{\Hypertarget{classnntrainer_1_1Connection_aff050d09ebaf46c6d0107ec20d35c7f4}\label{classnntrainer_1_1Connection_aff050d09ebaf46c6d0107ec20d35c7f4}} 
\index{nntrainer::Connection@{nntrainer::Connection}!operator==@{operator==}}
\index{operator==@{operator==}!nntrainer::Connection@{nntrainer::Connection}}
\doxysubsubsection{\texorpdfstring{operator==()}{operator==()}}
{\footnotesize\ttfamily bool nntrainer\+::\+Connection\+::operator== (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{classnntrainer_1_1Connection}{Connection}} \&}]{rhs }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [noexcept]}}



operator== 


\begin{DoxyParams}{Parameters}
{\em rhs} & right side to compare \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true if equal 

false if not equal 
\end{DoxyReturn}


Definition at line 52 of file connection.\+cpp.

\mbox{\Hypertarget{classnntrainer_1_1Connection_ad4709ac38d0b06401d0fc3414390c12c}\label{classnntrainer_1_1Connection_ad4709ac38d0b06401d0fc3414390c12c}} 
\index{nntrainer::Connection@{nntrainer::Connection}!toString@{toString}}
\index{toString@{toString}!nntrainer::Connection@{nntrainer::Connection}}
\doxysubsubsection{\texorpdfstring{toString()}{toString()}}
{\footnotesize\ttfamily std\+::string nntrainer\+::\+Connection\+::to\+String (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const}



string representation of connection 

\begin{DoxyReturn}{Returns}
std\+::string string format of \{name\}(\{idx\}) 
\end{DoxyReturn}


Definition at line 56 of file connection.\+cpp.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{classnntrainer_1_1Connection_ad4709ac38d0b06401d0fc3414390c12c_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{classnntrainer_1_1Connection_ad4709ac38d0b06401d0fc3414390c12c_icgraph}
\end{center}
\end{figure}


The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
graph/\mbox{\hyperlink{connection_8h}{connection.\+h}}\item 
graph/\mbox{\hyperlink{connection_8cpp}{connection.\+cpp}}\end{DoxyCompactItemize}
