\doxysection{Vector}
\label{group__vector}\index{Vector@{Vector}}


Generic vector routines, used by VTY internally.  


\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\textbf{ vector} \textbf{ vector\+\_\+init} (unsigned int size)
\item 
void \textbf{ vector\+\_\+only\+\_\+wrapper\+\_\+free} (\textbf{ vector} v)
\item 
void \textbf{ vector\+\_\+only\+\_\+index\+\_\+free} (void $\ast$index)
\item 
void \textbf{ vector\+\_\+free} (\textbf{ vector} v)
\item 
\textbf{ vector} \textbf{ vector\+\_\+copy} (\textbf{ vector} v)
\item 
void \textbf{ vector\+\_\+ensure} (\textbf{ vector} v, unsigned int num)
\item 
int \textbf{ vector\+\_\+empty\+\_\+slot} (\textbf{ vector} v)
\item 
int \textbf{ vector\+\_\+set} (\textbf{ vector} v, void $\ast$val)
\item 
int \textbf{ vector\+\_\+set\+\_\+index} (\textbf{ vector} v, unsigned int i, void $\ast$val)
\item 
void $\ast$ \textbf{ vector\+\_\+lookup} (\textbf{ vector} v, unsigned int i)
\item 
void $\ast$ \textbf{ vector\+\_\+lookup\+\_\+ensure} (\textbf{ vector} v, unsigned int i)
\item 
void \textbf{ vector\+\_\+unset} (\textbf{ vector} v, unsigned int i)
\item 
unsigned int \textbf{ vector\+\_\+count} (\textbf{ vector} v)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item 
void $\ast$ \textbf{ tall\+\_\+vty\+\_\+vec\+\_\+ctx}
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Generic vector routines, used by VTY internally. 



\doxysubsection{Function Documentation}
\mbox{\label{group__vector_ga023a26a75d23f986c89bbd73d73f01c0}} 
\index{Vector@{Vector}!vector\_copy@{vector\_copy}}
\index{vector\_copy@{vector\_copy}!Vector@{Vector}}
\doxysubsubsection{vector\_copy()}
{\footnotesize\ttfamily \textbf{ vector} vector\+\_\+copy (\begin{DoxyParamCaption}\item[{\textbf{ vector}}]{v }\end{DoxyParamCaption})}



References \textbf{ \+\_\+vector\+::active}, \textbf{ \+\_\+vector\+::alloced}, \textbf{ \+\_\+vector\+::index}, and \textbf{ tall\+\_\+vty\+\_\+vec\+\_\+ctx}.



Referenced by \textbf{ cmd\+\_\+complete\+\_\+command\+\_\+real()}, \textbf{ cmd\+\_\+describe\+\_\+command\+\_\+real()}, \textbf{ cmd\+\_\+execute\+\_\+command\+\_\+real()}, and \textbf{ cmd\+\_\+execute\+\_\+command\+\_\+strict()}.

\mbox{\label{group__vector_ga27b7646cb874dff3b77400e95b6f8b99}} 
\index{Vector@{Vector}!vector\_count@{vector\_count}}
\index{vector\_count@{vector\_count}!Vector@{Vector}}
\doxysubsubsection{vector\_count()}
{\footnotesize\ttfamily unsigned int vector\+\_\+count (\begin{DoxyParamCaption}\item[{\textbf{ vector}}]{v }\end{DoxyParamCaption})}



References \textbf{ \+\_\+vector\+::active}, and \textbf{ \+\_\+vector\+::index}.



Referenced by \textbf{ cmd\+\_\+complete\+\_\+command()}, \textbf{ cmd\+\_\+describe\+\_\+command()}, \textbf{ cmd\+\_\+execute\+\_\+command()}, and \textbf{ vty\+\_\+dump\+\_\+element()}.

\mbox{\label{group__vector_gaf34483597baad8ccef82d2c38f794b80}} 
\index{Vector@{Vector}!vector\_empty\_slot@{vector\_empty\_slot}}
\index{vector\_empty\_slot@{vector\_empty\_slot}!Vector@{Vector}}
\doxysubsubsection{vector\_empty\_slot()}
{\footnotesize\ttfamily int vector\+\_\+empty\+\_\+slot (\begin{DoxyParamCaption}\item[{\textbf{ vector}}]{v }\end{DoxyParamCaption})}



References \textbf{ \+\_\+vector\+::active}, and \textbf{ \+\_\+vector\+::index}.



Referenced by \textbf{ vector\+\_\+set()}.

\mbox{\label{group__vector_ga8ad206f259bb511f00db58e52a1d6551}} 
\index{Vector@{Vector}!vector\_ensure@{vector\_ensure}}
\index{vector\_ensure@{vector\_ensure}!Vector@{Vector}}
\doxysubsubsection{vector\_ensure()}
{\footnotesize\ttfamily void vector\+\_\+ensure (\begin{DoxyParamCaption}\item[{\textbf{ vector}}]{v,  }\item[{unsigned int}]{num }\end{DoxyParamCaption})}



References \textbf{ \+\_\+vector\+::alloced}, \textbf{ \+\_\+vector\+::index}, \textbf{ tall\+\_\+vty\+\_\+vec\+\_\+ctx}, and \textbf{ vector\+\_\+ensure()}.



Referenced by \textbf{ vector\+\_\+ensure()}, \textbf{ vector\+\_\+lookup\+\_\+ensure()}, \textbf{ vector\+\_\+set()}, and \textbf{ vector\+\_\+set\+\_\+index()}.

\mbox{\label{group__vector_gaf535d7daaa1dc88a3ac5c4451a6296f0}} 
\index{Vector@{Vector}!vector\_free@{vector\_free}}
\index{vector\_free@{vector\_free}!Vector@{Vector}}
\doxysubsubsection{vector\_free()}
{\footnotesize\ttfamily void vector\+\_\+free (\begin{DoxyParamCaption}\item[{\textbf{ vector}}]{v }\end{DoxyParamCaption})}



References \textbf{ \+\_\+vector\+::index}.



Referenced by \textbf{ cmd\+\_\+complete\+\_\+command()}, \textbf{ cmd\+\_\+complete\+\_\+command\+\_\+real()}, \textbf{ cmd\+\_\+describe\+\_\+command()}, \textbf{ cmd\+\_\+describe\+\_\+command\+\_\+real()}, \textbf{ cmd\+\_\+execute\+\_\+command()}, \textbf{ cmd\+\_\+execute\+\_\+command\+\_\+real()}, \textbf{ cmd\+\_\+execute\+\_\+command\+\_\+strict()}, \textbf{ cmd\+\_\+free\+\_\+strvec()}, and \textbf{ vty\+\_\+describe\+\_\+command()}.

\mbox{\label{group__vector_gae6a929ac3530de06eee1df3629d15247}} 
\index{Vector@{Vector}!vector\_init@{vector\_init}}
\index{vector\_init@{vector\_init}!Vector@{Vector}}
\doxysubsubsection{vector\_init()}
{\footnotesize\ttfamily \textbf{ vector} vector\+\_\+init (\begin{DoxyParamCaption}\item[{unsigned int}]{size }\end{DoxyParamCaption})}



References \textbf{ \+\_\+vector\+::active}, \textbf{ \+\_\+vector\+::alloced}, \textbf{ \+\_\+vector\+::index}, and \textbf{ tall\+\_\+vty\+\_\+vec\+\_\+ctx}.



Referenced by \textbf{ cmd\+\_\+complete\+\_\+command()}, \textbf{ cmd\+\_\+complete\+\_\+command\+\_\+real()}, \textbf{ cmd\+\_\+describe\+\_\+command()}, \textbf{ cmd\+\_\+describe\+\_\+command\+\_\+real()}, \textbf{ cmd\+\_\+execute\+\_\+command()}, \textbf{ cmd\+\_\+init()}, \textbf{ cmd\+\_\+make\+\_\+descvec()}, \textbf{ cmd\+\_\+make\+\_\+strvec2()}, \textbf{ install\+\_\+node\+\_\+bare()}, \textbf{ vty\+\_\+describe\+\_\+command()}, \textbf{ vty\+\_\+init()}, and \textbf{ vty\+\_\+init\+\_\+vtysh()}.

\mbox{\label{group__vector_ga5b9a4e6acdeb24792c691b679050fd6a}} 
\index{Vector@{Vector}!vector\_lookup@{vector\_lookup}}
\index{vector\_lookup@{vector\_lookup}!Vector@{Vector}}
\doxysubsubsection{vector\_lookup()}
{\footnotesize\ttfamily void $\ast$ vector\+\_\+lookup (\begin{DoxyParamCaption}\item[{\textbf{ vector}}]{v,  }\item[{unsigned int}]{i }\end{DoxyParamCaption})}



References \textbf{ \+\_\+vector\+::active}, and \textbf{ \+\_\+vector\+::index}.



Referenced by \textbf{ cmd\+\_\+complete\+\_\+command()}, \textbf{ cmd\+\_\+describe\+\_\+command()}, and \textbf{ cmd\+\_\+execute\+\_\+command()}.

\mbox{\label{group__vector_gafe4ba9613b545f0a19cf622ba2faf27c}} 
\index{Vector@{Vector}!vector\_lookup\_ensure@{vector\_lookup\_ensure}}
\index{vector\_lookup\_ensure@{vector\_lookup\_ensure}!Vector@{Vector}}
\doxysubsubsection{vector\_lookup\_ensure()}
{\footnotesize\ttfamily void $\ast$ vector\+\_\+lookup\+\_\+ensure (\begin{DoxyParamCaption}\item[{\textbf{ vector}}]{v,  }\item[{unsigned int}]{i }\end{DoxyParamCaption})}



References \textbf{ \+\_\+vector\+::index}, and \textbf{ vector\+\_\+ensure()}.

\mbox{\label{group__vector_gac09d5fe94ccb5c5b0e883f2565a1a858}} 
\index{Vector@{Vector}!vector\_only\_index\_free@{vector\_only\_index\_free}}
\index{vector\_only\_index\_free@{vector\_only\_index\_free}!Vector@{Vector}}
\doxysubsubsection{vector\_only\_index\_free()}
{\footnotesize\ttfamily void vector\+\_\+only\+\_\+index\+\_\+free (\begin{DoxyParamCaption}\item[{void $\ast$}]{index }\end{DoxyParamCaption})}



Referenced by \textbf{ vty\+\_\+complete\+\_\+command()}.

\mbox{\label{group__vector_gac0d218d6e04cd434ceb15fb505156251}} 
\index{Vector@{Vector}!vector\_only\_wrapper\_free@{vector\_only\_wrapper\_free}}
\index{vector\_only\_wrapper\_free@{vector\_only\_wrapper\_free}!Vector@{Vector}}
\doxysubsubsection{vector\_only\_wrapper\_free()}
{\footnotesize\ttfamily void vector\+\_\+only\+\_\+wrapper\+\_\+free (\begin{DoxyParamCaption}\item[{\textbf{ vector}}]{v }\end{DoxyParamCaption})}



Referenced by \textbf{ cmd\+\_\+complete\+\_\+command\+\_\+real()}.

\mbox{\label{group__vector_ga09dff784fcc0e322c64e5975b3255fe0}} 
\index{Vector@{Vector}!vector\_set@{vector\_set}}
\index{vector\_set@{vector\_set}!Vector@{Vector}}
\doxysubsubsection{vector\_set()}
{\footnotesize\ttfamily int vector\+\_\+set (\begin{DoxyParamCaption}\item[{\textbf{ vector}}]{v,  }\item[{void $\ast$}]{val }\end{DoxyParamCaption})}



References \textbf{ \+\_\+vector\+::active}, \textbf{ \+\_\+vector\+::index}, \textbf{ vector\+\_\+empty\+\_\+slot()}, and \textbf{ vector\+\_\+ensure()}.



Referenced by \textbf{ cmd\+\_\+complete\+\_\+command\+\_\+real()}, \textbf{ cmd\+\_\+describe\+\_\+command\+\_\+real()}, \textbf{ cmd\+\_\+make\+\_\+descvec()}, \textbf{ cmd\+\_\+make\+\_\+strvec2()}, \textbf{ install\+\_\+element()}, \textbf{ vty\+\_\+complete\+\_\+command()}, and \textbf{ vty\+\_\+describe\+\_\+command()}.

\mbox{\label{group__vector_ga4ab15201b63a93279459a6d3d90600e5}} 
\index{Vector@{Vector}!vector\_set\_index@{vector\_set\_index}}
\index{vector\_set\_index@{vector\_set\_index}!Vector@{Vector}}
\doxysubsubsection{vector\_set\_index()}
{\footnotesize\ttfamily int vector\+\_\+set\+\_\+index (\begin{DoxyParamCaption}\item[{\textbf{ vector}}]{v,  }\item[{unsigned int}]{i,  }\item[{void $\ast$}]{val }\end{DoxyParamCaption})}



References \textbf{ \+\_\+vector\+::active}, \textbf{ \+\_\+vector\+::index}, and \textbf{ vector\+\_\+ensure()}.



Referenced by \textbf{ cmd\+\_\+complete\+\_\+command()}, \textbf{ cmd\+\_\+describe\+\_\+command()}, \textbf{ cmd\+\_\+execute\+\_\+command()}, \textbf{ install\+\_\+node\+\_\+bare()}, and \textbf{ vty\+\_\+create()}.

\mbox{\label{group__vector_gaedb539ef50499b729c8bfb9c2d7989c3}} 
\index{Vector@{Vector}!vector\_unset@{vector\_unset}}
\index{vector\_unset@{vector\_unset}!Vector@{Vector}}
\doxysubsubsection{vector\_unset()}
{\footnotesize\ttfamily void vector\+\_\+unset (\begin{DoxyParamCaption}\item[{\textbf{ vector}}]{v,  }\item[{unsigned int}]{i }\end{DoxyParamCaption})}



References \textbf{ \+\_\+vector\+::active}, \textbf{ \+\_\+vector\+::alloced}, and \textbf{ \+\_\+vector\+::index}.



Referenced by \textbf{ vty\+\_\+close()}.



\doxysubsection{Variable Documentation}
\mbox{\label{group__vector_ga7e85b6cb22ea5f3e15aa3674a15aaf14}} 
\index{Vector@{Vector}!tall\_vty\_vec\_ctx@{tall\_vty\_vec\_ctx}}
\index{tall\_vty\_vec\_ctx@{tall\_vty\_vec\_ctx}!Vector@{Vector}}
\doxysubsubsection{tall\_vty\_vec\_ctx}
{\footnotesize\ttfamily void$\ast$ tall\+\_\+vty\+\_\+vec\+\_\+ctx}



Referenced by \textbf{ vector\+\_\+copy()}, \textbf{ vector\+\_\+ensure()}, \textbf{ vector\+\_\+init()}, and \textbf{ vty\+\_\+init()}.

