\hypertarget{bag_8h}{
\section{bag.h File Reference}
\label{bag_8h}\index{bag.h@{bag.h}}
}
{\tt \#include $<$bdd.h$>$}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
double \hyperlink{bag_8h_8eadf539bb12a0a7a14a3f2e3622fa3f}{getOcc} (bdd feature, bdd family)
\item 
bdd \hyperlink{bag_8h_40aa42d54db14cc0da32115e3e32a5d2}{setOcc} (int feature, int occ, bdd \&family)
\item 
bdd \hyperlink{bag_8h_64226930435fc389e056387286ccaa5f}{bagUnion} (bdd \hyperlink{families_8h_671b697a0da7ec58b60d4de750d6fa0f}{b1}, bdd b2)
\item 
bdd \hyperlink{bag_8h_73d038f22c3bac9ede0a83f6756886d7}{bagIntersection} (bdd \hyperlink{families_8h_671b697a0da7ec58b60d4de750d6fa0f}{b1}, bdd b2)
\end{CompactItemize}


\subsection{Function Documentation}
\hypertarget{bag_8h_73d038f22c3bac9ede0a83f6756886d7}{
\index{bag.h@{bag.h}!bagIntersection@{bagIntersection}}
\index{bagIntersection@{bagIntersection}!bag.h@{bag.h}}
\subsubsection[{bagIntersection}]{\setlength{\rightskip}{0pt plus 5cm}bdd bagIntersection (bdd {\em b1}, \/  bdd {\em b2})}}
\label{bag_8h_73d038f22c3bac9ede0a83f6756886d7}


This function returns the bag intersection between two given bags b1,b2. The the result will contain the elements that the given original bags contain. \hypertarget{bag_8h_64226930435fc389e056387286ccaa5f}{
\index{bag.h@{bag.h}!bagUnion@{bagUnion}}
\index{bagUnion@{bagUnion}!bag.h@{bag.h}}
\subsubsection[{bagUnion}]{\setlength{\rightskip}{0pt plus 5cm}bdd bagUnion (bdd {\em b1}, \/  bdd {\em b2})}}
\label{bag_8h_64226930435fc389e056387286ccaa5f}


This functions unions two bags, b1 and b2, and returns the resultant bag containing the elements in the original two bags. \hypertarget{bag_8h_8eadf539bb12a0a7a14a3f2e3622fa3f}{
\index{bag.h@{bag.h}!getOcc@{getOcc}}
\index{getOcc@{getOcc}!bag.h@{bag.h}}
\subsubsection[{getOcc}]{\setlength{\rightskip}{0pt plus 5cm}double getOcc (bdd {\em feature}, \/  bdd {\em family})}}
\label{bag_8h_8eadf539bb12a0a7a14a3f2e3622fa3f}


Given an element, and a bag, this function get the number of occurances of that element in the bag. \hypertarget{bag_8h_40aa42d54db14cc0da32115e3e32a5d2}{
\index{bag.h@{bag.h}!setOcc@{setOcc}}
\index{setOcc@{setOcc}!bag.h@{bag.h}}
\subsubsection[{setOcc}]{\setlength{\rightskip}{0pt plus 5cm}bdd setOcc (int {\em feature}, \/  int {\em occ}, \/  bdd \& {\em family})}}
\label{bag_8h_40aa42d54db14cc0da32115e3e32a5d2}


Given an element number, the number of occurances and a bag, family, this funciton sets the number of occurances of the element in the family. The function returns a bag(bdd) with the occurance changed. 