\hypertarget{classAttributeManager}{
\section{AttributeManager$<$ A $>$ Class Template Reference}
\label{classAttributeManager}\index{AttributeManager@{AttributeManager}}
}


\hyperlink{classAttributeManager}{AttributeManager} manages \hyperlink{protocolthe-p}{the} storage of PathAttributeLists, so that we don't store \hyperlink{protocolthe-p}{the} same attribute list more than once.  




{\ttfamily \#include $<$attribute\_\-manager.hh$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classAttributeManager_ab8c9c25d5d3a0c0605800e08daead84b}{
\hyperlink{classPAListRef}{PAListRef}$<$ A $>$ {\bfseries add\_\-attribute\_\-list} (\hyperlink{classPAListRef}{PAListRef}$<$ A $>$ \&attribute\_\-list)}
\label{classAttributeManager_ab8c9c25d5d3a0c0605800e08daead84b}

\item 
\hypertarget{classAttributeManager_ac8e9ceed7211241a61d8a071d47b7bd4}{
void {\bfseries delete\_\-attribute\_\-list} (\hyperlink{classPAListRef}{PAListRef}$<$ A $>$ \&attribute\_\-list)}
\label{classAttributeManager_ac8e9ceed7211241a61d8a071d47b7bd4}

\item 
\hypertarget{classAttributeManager_a85786f3f440bb99a8b429260faec3f2c}{
int {\bfseries number\_\-of\_\-managed\_\-atts} () const }
\label{classAttributeManager_a85786f3f440bb99a8b429260faec3f2c}

\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classAttributeManager_ab48645a67495abcc6cd49c9bce44c954}{
set$<$ \hyperlink{classPAListRef}{PAListRef}$<$ A $>$, \hyperlink{classAtt__Ptr__Cmp}{Att\_\-Ptr\_\-Cmp}$<$ A $>$ $>$ {\bfseries \_\-attribute\_\-lists}}
\label{classAttributeManager_ab48645a67495abcc6cd49c9bce44c954}

\item 
\hypertarget{classAttributeManager_aa2653e4b057f61bca1a0b21fdbc11289}{
int {\bfseries \_\-total\_\-references}}
\label{classAttributeManager_aa2653e4b057f61bca1a0b21fdbc11289}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$class A$>$ class AttributeManager$<$ A $>$}

\hyperlink{classAttributeManager}{AttributeManager} manages \hyperlink{protocolthe-p}{the} storage of PathAttributeLists, so that we don't store \hyperlink{protocolthe-p}{the} same attribute list more than once. The interface is simple: to store something, you give it a pointer, and it gives you back a pointer to where it stored it. To unstore something, you just tell it to delete it, and \hyperlink{protocolthe-p}{the} undeletion is handled for you if no-\/one else is still referencing a copy. 

The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
/home/greearb/git/xorp.ct.github/xorp/bgp/attribute\_\-manager.hh\item 
/home/greearb/git/xorp.ct.github/xorp/bgp/attribute\_\-manager.cc\end{DoxyCompactItemize}
