\hypertarget{comparison_8hpp}{}\section{comparison.\+hpp File Reference}
\label{comparison_8hpp}\index{comparison.hpp@{comparison.hpp}}


Comparison helper functions.  


{\ttfamily \#include $<$kdb.\+hpp$>$}\newline
{\ttfamily \#include $<$string$>$}\newline
Include dependency graph for comparison.\+hpp\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{comparison_8hpp__incl}
\end{center}
\end{figure}
This graph shows which files directly or indirectly include this file\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{comparison_8hpp__dep__incl}
\end{center}
\end{figure}
\subsection*{Namespaces}
\begin{DoxyCompactItemize}
\item 
 \mbox{\hyperlink{namespacekdb}{kdb}}
\begin{DoxyCompactList}\small\item\em This is the main namespace for the C++ binding and libraries. \end{DoxyCompactList}\item 
 \mbox{\hyperlink{namespacekdb_1_1tools}{kdb\+::tools}}
\begin{DoxyCompactList}\small\item\em This namespace is for the libtool library. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
bool \mbox{\hyperlink{comparison_8hpp_adfcb9c8b4e0d660a386da96db85d1d2b}{kdb\+::tools\+::helper\+::key\+Data\+Equal}} (const Key \&, const Key \&)
\begin{DoxyCompactList}\small\item\em Determines if two keys are equal based on their string value If one of the two keys is null, false is returned. \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{comparison_8hpp_afe73e8cc1d57ea1d4462c24e27156702}{kdb\+::tools\+::helper\+::key\+Meta\+Equal}} (Key \&, Key \&)
\begin{DoxyCompactList}\small\item\em Determines if two keys have equal metadata. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Comparison helper functions. 

\begin{DoxyCopyright}{Copyright}
B\+SD License (see L\+I\+C\+E\+N\+S\+E.\+md or \href{https://www.libelektra.org}{\texttt{ https\+://www.\+libelektra.\+org}}) 
\end{DoxyCopyright}


\subsection{Function Documentation}
\mbox{\Hypertarget{comparison_8hpp_file_adfcb9c8b4e0d660a386da96db85d1d2b}\label{comparison_8hpp_file_adfcb9c8b4e0d660a386da96db85d1d2b}} 
\index{comparison.hpp@{comparison.hpp}!keyDataEqual@{keyDataEqual}}
\index{keyDataEqual@{keyDataEqual}!comparison.hpp@{comparison.hpp}}
\subsubsection{\texorpdfstring{keyDataEqual()}{keyDataEqual()}}
{\footnotesize\ttfamily bool kdb\+::tools\+::helper\+::key\+Data\+Equal (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{classkdb_1_1Key}{Key}} \&}]{k1,  }\item[{const \mbox{\hyperlink{classkdb_1_1Key}{Key}} \&}]{k2 }\end{DoxyParamCaption})}



Determines if two keys are equal based on their string value If one of the two keys is null, false is returned. 


\begin{DoxyParams}{Parameters}
{\em k1} & the first key to be compared \\
\hline
{\em k2} & the second key to be compared \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true if both keys are not null and have an equal string value, false otherwise 
\end{DoxyReturn}
\mbox{\Hypertarget{comparison_8hpp_file_afe73e8cc1d57ea1d4462c24e27156702}\label{comparison_8hpp_file_afe73e8cc1d57ea1d4462c24e27156702}} 
\index{comparison.hpp@{comparison.hpp}!keyMetaEqual@{keyMetaEqual}}
\index{keyMetaEqual@{keyMetaEqual}!comparison.hpp@{comparison.hpp}}
\subsubsection{\texorpdfstring{keyMetaEqual()}{keyMetaEqual()}}
{\footnotesize\ttfamily bool kdb\+::tools\+::helper\+::key\+Meta\+Equal (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classkdb_1_1Key}{Key}} \&}]{k1,  }\item[{\mbox{\hyperlink{classkdb_1_1Key}{Key}} \&}]{k2 }\end{DoxyParamCaption})}



Determines if two keys have equal metadata. 

The keys are not const because their meta cursor is changed


\begin{DoxyParams}{Parameters}
{\em k1} & the first key whose metadata should be compared \\
\hline
{\em k2} & the second key whose metadata should be compared \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true if the keys have equal metadata, false otherwise 
\end{DoxyReturn}
