\hypertarget{types_8h}{
\section{src/commons/types.h File Reference}
\label{types_8h}\index{src/commons/types.h@{src/commons/types.h}}
}
{\ttfamily \#include $<$vector$>$}\par
{\ttfamily \#include \char`\"{}tbb/spin\_\-rw\_\-mutex.h\char`\"{}}\par
{\ttfamily \#include \char`\"{}document.pb.h\char`\"{}}\par
{\ttfamily \#include \char`\"{}tbb/tick\_\-count.h\char`\"{}}\par
{\ttfamily \#include $<$sstream$>$}\par
{\ttfamily \#include $<$boost/random/mersenne\_\-twister.hpp$>$}\par
{\ttfamily \#include \char`\"{}glog/logging.h\char`\"{}}\par
{\ttfamily \#include \char`\"{}boost/unordered\_\-map.hpp\char`\"{}}\par
{\ttfamily \#include \char`\"{}tbb/atomic.h\char`\"{}}\par
\subsection*{Classes}
\begin{DoxyCompactItemize}
\item 
class \hyperlink{class_invalid_old_topic_exc}{InvalidOldTopicExc}
\end{DoxyCompactItemize}
\subsection*{Defines}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{types_8h_aaa5a3cad15fa1215b72c8eaa11c3e993}{TIME}(t)~tick\_\-count t = tick\_\-count::now()
\item 
\#define \hyperlink{types_8h_a7cd0a069091a1e1bf85d7bc38a533a6b}{PRINT\_\-TIME}(t1, t2, str)~cout $<$$<$ \char`\"{}Time taken to \char`\"{} \#str $<$$<$ \char`\"{} : \char`\"{} $<$$<$ (t2-\/t1).seconds() $<$$<$ \char`\"{} secs\char`\"{} $<$$<$ endl
\end{DoxyCompactItemize}
\subsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef int32\_\-t \hyperlink{types_8h_a30712d6f103deb97711d172c5215d712}{size\_\-int}
\item 
typedef boost::mt19937 \hyperlink{types_8h_a17e4235145adf580fbfd1b811467e3b9}{base\_\-generator\_\-type}
\item 
typedef std::pair$<$ topic\_\-t, float $>$ \hyperlink{types_8h_affc73fd95a9372593440aa3da0e367f4}{tppair}
\item 
typedef std::pair$<$ word\_\-t, float $>$ \hyperlink{types_8h_a438cad6e4bc8a21f81e9de264417b9e8}{wppair}
\item 
typedef std::pair$<$ bigram\_\-key\_\-t, float $>$ \hyperlink{types_8h_a1c2f735729dc971f429fc773b2a0784a}{bigppair}
\item 
typedef boost::unordered\_\-map$<$ topic\_\-t, cnt\_\-t $>$ \hyperlink{types_8h_a4fed6ff282eca8f2c6ebdb4bc2e99e8b}{mapped\_\-vec}
\end{DoxyCompactItemize}


\subsection{Define Documentation}
\hypertarget{types_8h_a7cd0a069091a1e1bf85d7bc38a533a6b}{
\index{types.h@{types.h}!PRINT\_\-TIME@{PRINT\_\-TIME}}
\index{PRINT\_\-TIME@{PRINT\_\-TIME}!types.h@{types.h}}
\subsubsection[{PRINT\_\-TIME}]{\setlength{\rightskip}{0pt plus 5cm}\#define PRINT\_\-TIME(t1, \/  t2, \/  str)~cout $<$$<$ \char`\"{}Time taken to \char`\"{} \#str $<$$<$ \char`\"{} : \char`\"{} $<$$<$ (t2-\/t1).seconds() $<$$<$ \char`\"{} secs\char`\"{} $<$$<$ endl}}
\label{types_8h_a7cd0a069091a1e1bf85d7bc38a533a6b}
\hypertarget{types_8h_aaa5a3cad15fa1215b72c8eaa11c3e993}{
\index{types.h@{types.h}!TIME@{TIME}}
\index{TIME@{TIME}!types.h@{types.h}}
\subsubsection[{TIME}]{\setlength{\rightskip}{0pt plus 5cm}\#define TIME(t)~tick\_\-count t = tick\_\-count::now()}}
\label{types_8h_aaa5a3cad15fa1215b72c8eaa11c3e993}


\subsection{Typedef Documentation}
\hypertarget{types_8h_a17e4235145adf580fbfd1b811467e3b9}{
\index{types.h@{types.h}!base\_\-generator\_\-type@{base\_\-generator\_\-type}}
\index{base\_\-generator\_\-type@{base\_\-generator\_\-type}!types.h@{types.h}}
\subsubsection[{base\_\-generator\_\-type}]{\setlength{\rightskip}{0pt plus 5cm}typedef boost::mt19937 {\bf base\_\-generator\_\-type}}}
\label{types_8h_a17e4235145adf580fbfd1b811467e3b9}
\hypertarget{types_8h_a1c2f735729dc971f429fc773b2a0784a}{
\index{types.h@{types.h}!bigppair@{bigppair}}
\index{bigppair@{bigppair}!types.h@{types.h}}
\subsubsection[{bigppair}]{\setlength{\rightskip}{0pt plus 5cm}typedef std::pair$<$bigram\_\-key\_\-t, float$>$ {\bf bigppair}}}
\label{types_8h_a1c2f735729dc971f429fc773b2a0784a}
\hypertarget{types_8h_a4fed6ff282eca8f2c6ebdb4bc2e99e8b}{
\index{types.h@{types.h}!mapped\_\-vec@{mapped\_\-vec}}
\index{mapped\_\-vec@{mapped\_\-vec}!types.h@{types.h}}
\subsubsection[{mapped\_\-vec}]{\setlength{\rightskip}{0pt plus 5cm}typedef boost::unordered\_\-map$<$topic\_\-t, cnt\_\-t$>$ {\bf mapped\_\-vec}}}
\label{types_8h_a4fed6ff282eca8f2c6ebdb4bc2e99e8b}
\hypertarget{types_8h_a30712d6f103deb97711d172c5215d712}{
\index{types.h@{types.h}!size\_\-int@{size\_\-int}}
\index{size\_\-int@{size\_\-int}!types.h@{types.h}}
\subsubsection[{size\_\-int}]{\setlength{\rightskip}{0pt plus 5cm}typedef int32\_\-t {\bf size\_\-int}}}
\label{types_8h_a30712d6f103deb97711d172c5215d712}
\hypertarget{types_8h_affc73fd95a9372593440aa3da0e367f4}{
\index{types.h@{types.h}!tppair@{tppair}}
\index{tppair@{tppair}!types.h@{types.h}}
\subsubsection[{tppair}]{\setlength{\rightskip}{0pt plus 5cm}typedef std::pair$<$topic\_\-t, float$>$ {\bf tppair}}}
\label{types_8h_affc73fd95a9372593440aa3da0e367f4}
\hypertarget{types_8h_a438cad6e4bc8a21f81e9de264417b9e8}{
\index{types.h@{types.h}!wppair@{wppair}}
\index{wppair@{wppair}!types.h@{types.h}}
\subsubsection[{wppair}]{\setlength{\rightskip}{0pt plus 5cm}typedef std::pair$<$word\_\-t, float$>$ {\bf wppair}}}
\label{types_8h_a438cad6e4bc8a21f81e9de264417b9e8}
