\hypertarget{group__hwlocality__helper__find__inside}{\section{Finding Objects Inside a C\+P\+U set}
\label{group__hwlocality__helper__find__inside}\index{Finding Objects Inside a C\+P\+U set@{Finding Objects Inside a C\+P\+U set}}
}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
static \+\_\+\+\_\+hwloc\+\_\+inline \hyperlink{group__hwlocality__objects_ga79b8ab56877ef99ac59b833203391c7d}{hwloc\+\_\+obj\+\_\+t} \hyperlink{group__hwlocality__helper__find__inside_gabcd5fa81a95fa5335950cae092277d5b}{hwloc\+\_\+get\+\_\+first\+\_\+largest\+\_\+obj\+\_\+inside\+\_\+cpuset} (\hyperlink{group__hwlocality__topology_ga9d1e76ee15a7dee158b786c30b6a6e38}{hwloc\+\_\+topology\+\_\+t} topology, \hyperlink{group__hwlocality__sets_ga1f784433e9b606261f62d1134f6a3b25}{hwloc\+\_\+const\+\_\+cpuset\+\_\+t} set)
\begin{DoxyCompactList}\small\item\em Get the first largest object included in the given cpuset {\ttfamily set}. \end{DoxyCompactList}\item 
H\+W\+L\+O\+C\+\_\+\+D\+E\+C\+L\+S\+P\+E\+C int \hyperlink{group__hwlocality__helper__find__inside_gaab04c89623662e63a48ed2cd48eb601c}{hwloc\+\_\+get\+\_\+largest\+\_\+objs\+\_\+inside\+\_\+cpuset} (\hyperlink{group__hwlocality__topology_ga9d1e76ee15a7dee158b786c30b6a6e38}{hwloc\+\_\+topology\+\_\+t} topology, \hyperlink{group__hwlocality__sets_ga1f784433e9b606261f62d1134f6a3b25}{hwloc\+\_\+const\+\_\+cpuset\+\_\+t} set, \hyperlink{group__hwlocality__objects_ga79b8ab56877ef99ac59b833203391c7d}{hwloc\+\_\+obj\+\_\+t} $\ast$\+\_\+\+\_\+hwloc\+\_\+restrict objs, int max)
\begin{DoxyCompactList}\small\item\em Get the set of largest objects covering exactly a given cpuset {\ttfamily set}. \end{DoxyCompactList}\item 
static \+\_\+\+\_\+hwloc\+\_\+inline \hyperlink{group__hwlocality__objects_ga79b8ab56877ef99ac59b833203391c7d}{hwloc\+\_\+obj\+\_\+t} \hyperlink{group__hwlocality__helper__find__inside_ga8af256c2572f16520f95440b884c1bd6}{hwloc\+\_\+get\+\_\+next\+\_\+obj\+\_\+inside\+\_\+cpuset\+\_\+by\+\_\+depth} (\hyperlink{group__hwlocality__topology_ga9d1e76ee15a7dee158b786c30b6a6e38}{hwloc\+\_\+topology\+\_\+t} topology, \hyperlink{group__hwlocality__sets_ga1f784433e9b606261f62d1134f6a3b25}{hwloc\+\_\+const\+\_\+cpuset\+\_\+t} set, unsigned depth, \hyperlink{group__hwlocality__objects_ga79b8ab56877ef99ac59b833203391c7d}{hwloc\+\_\+obj\+\_\+t} prev)
\begin{DoxyCompactList}\small\item\em Return the next object at depth {\ttfamily depth} included in C\+P\+U set {\ttfamily set}. \end{DoxyCompactList}\item 
static \+\_\+\+\_\+hwloc\+\_\+inline \hyperlink{group__hwlocality__objects_ga79b8ab56877ef99ac59b833203391c7d}{hwloc\+\_\+obj\+\_\+t} \hyperlink{group__hwlocality__helper__find__inside_ga934e7ecd68b33403e0c0be779d9ed1e6}{hwloc\+\_\+get\+\_\+next\+\_\+obj\+\_\+inside\+\_\+cpuset\+\_\+by\+\_\+type} (\hyperlink{group__hwlocality__topology_ga9d1e76ee15a7dee158b786c30b6a6e38}{hwloc\+\_\+topology\+\_\+t} topology, \hyperlink{group__hwlocality__sets_ga1f784433e9b606261f62d1134f6a3b25}{hwloc\+\_\+const\+\_\+cpuset\+\_\+t} set, \hyperlink{group__hwlocality__types_gacd37bb612667dc437d66bfb175a8dc55}{hwloc\+\_\+obj\+\_\+type\+\_\+t} type, \hyperlink{group__hwlocality__objects_ga79b8ab56877ef99ac59b833203391c7d}{hwloc\+\_\+obj\+\_\+t} prev)
\begin{DoxyCompactList}\small\item\em Return the next object of type {\ttfamily type} included in C\+P\+U set {\ttfamily set}. \end{DoxyCompactList}\item 
\hypertarget{group__hwlocality__helper__find__inside_ga20703980008f82379f98f56857611a1a}{static \+\_\+\+\_\+hwloc\+\_\+inline \\*
\hyperlink{group__hwlocality__objects_ga79b8ab56877ef99ac59b833203391c7d}{hwloc\+\_\+obj\+\_\+t} \\*
\+\_\+\+\_\+hwloc\+\_\+attribute\+\_\+pure \hyperlink{group__hwlocality__helper__find__inside_ga20703980008f82379f98f56857611a1a}{hwloc\+\_\+get\+\_\+obj\+\_\+inside\+\_\+cpuset\+\_\+by\+\_\+depth} (\hyperlink{group__hwlocality__topology_ga9d1e76ee15a7dee158b786c30b6a6e38}{hwloc\+\_\+topology\+\_\+t} topology, \hyperlink{group__hwlocality__sets_ga1f784433e9b606261f62d1134f6a3b25}{hwloc\+\_\+const\+\_\+cpuset\+\_\+t} set, unsigned depth, unsigned idx)}\label{group__hwlocality__helper__find__inside_ga20703980008f82379f98f56857611a1a}

\begin{DoxyCompactList}\small\item\em Return the (logically) {\ttfamily idx} -\/th object at depth {\ttfamily depth} included in C\+P\+U set {\ttfamily set}. \end{DoxyCompactList}\item 
static \+\_\+\+\_\+hwloc\+\_\+inline \\*
\hyperlink{group__hwlocality__objects_ga79b8ab56877ef99ac59b833203391c7d}{hwloc\+\_\+obj\+\_\+t} \\*
\+\_\+\+\_\+hwloc\+\_\+attribute\+\_\+pure \hyperlink{group__hwlocality__helper__find__inside_ga50a80a0021e5843d968c3b97aebaad9b}{hwloc\+\_\+get\+\_\+obj\+\_\+inside\+\_\+cpuset\+\_\+by\+\_\+type} (\hyperlink{group__hwlocality__topology_ga9d1e76ee15a7dee158b786c30b6a6e38}{hwloc\+\_\+topology\+\_\+t} topology, \hyperlink{group__hwlocality__sets_ga1f784433e9b606261f62d1134f6a3b25}{hwloc\+\_\+const\+\_\+cpuset\+\_\+t} set, \hyperlink{group__hwlocality__types_gacd37bb612667dc437d66bfb175a8dc55}{hwloc\+\_\+obj\+\_\+type\+\_\+t} type, unsigned idx)
\begin{DoxyCompactList}\small\item\em Return the {\ttfamily idx} -\/th object of type {\ttfamily type} included in C\+P\+U set {\ttfamily set}. \end{DoxyCompactList}\item 
static \+\_\+\+\_\+hwloc\+\_\+inline unsigned \\*
\+\_\+\+\_\+hwloc\+\_\+attribute\+\_\+pure \hyperlink{group__hwlocality__helper__find__inside_ga6807db0012369efe19b8d3dcee235493}{hwloc\+\_\+get\+\_\+nbobjs\+\_\+inside\+\_\+cpuset\+\_\+by\+\_\+depth} (\hyperlink{group__hwlocality__topology_ga9d1e76ee15a7dee158b786c30b6a6e38}{hwloc\+\_\+topology\+\_\+t} topology, \hyperlink{group__hwlocality__sets_ga1f784433e9b606261f62d1134f6a3b25}{hwloc\+\_\+const\+\_\+cpuset\+\_\+t} set, unsigned depth)
\begin{DoxyCompactList}\small\item\em Return the number of objects at depth {\ttfamily depth} included in C\+P\+U set {\ttfamily set}. \end{DoxyCompactList}\item 
static \+\_\+\+\_\+hwloc\+\_\+inline int \\*
\+\_\+\+\_\+hwloc\+\_\+attribute\+\_\+pure \hyperlink{group__hwlocality__helper__find__inside_ga72c5bc4317a4c3938e32447b769813a0}{hwloc\+\_\+get\+\_\+nbobjs\+\_\+inside\+\_\+cpuset\+\_\+by\+\_\+type} (\hyperlink{group__hwlocality__topology_ga9d1e76ee15a7dee158b786c30b6a6e38}{hwloc\+\_\+topology\+\_\+t} topology, \hyperlink{group__hwlocality__sets_ga1f784433e9b606261f62d1134f6a3b25}{hwloc\+\_\+const\+\_\+cpuset\+\_\+t} set, \hyperlink{group__hwlocality__types_gacd37bb612667dc437d66bfb175a8dc55}{hwloc\+\_\+obj\+\_\+type\+\_\+t} type)
\begin{DoxyCompactList}\small\item\em Return the number of objects of type {\ttfamily type} included in C\+P\+U set {\ttfamily set}. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}


\subsection{Function Documentation}
\hypertarget{group__hwlocality__helper__find__inside_gabcd5fa81a95fa5335950cae092277d5b}{\index{Finding Objects Inside a C\+P\+U set@{Finding Objects Inside a C\+P\+U set}!hwloc\+\_\+get\+\_\+first\+\_\+largest\+\_\+obj\+\_\+inside\+\_\+cpuset@{hwloc\+\_\+get\+\_\+first\+\_\+largest\+\_\+obj\+\_\+inside\+\_\+cpuset}}
\index{hwloc\+\_\+get\+\_\+first\+\_\+largest\+\_\+obj\+\_\+inside\+\_\+cpuset@{hwloc\+\_\+get\+\_\+first\+\_\+largest\+\_\+obj\+\_\+inside\+\_\+cpuset}!Finding Objects Inside a C\+P\+U set@{Finding Objects Inside a C\+P\+U set}}
\subsubsection[{hwloc\+\_\+get\+\_\+first\+\_\+largest\+\_\+obj\+\_\+inside\+\_\+cpuset}]{\setlength{\rightskip}{0pt plus 5cm}static \+\_\+\+\_\+hwloc\+\_\+inline {\bf hwloc\+\_\+obj\+\_\+t} hwloc\+\_\+get\+\_\+first\+\_\+largest\+\_\+obj\+\_\+inside\+\_\+cpuset (
\begin{DoxyParamCaption}
\item[{{\bf hwloc\+\_\+topology\+\_\+t}}]{topology, }
\item[{{\bf hwloc\+\_\+const\+\_\+cpuset\+\_\+t}}]{set}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{group__hwlocality__helper__find__inside_gabcd5fa81a95fa5335950cae092277d5b}


Get the first largest object included in the given cpuset {\ttfamily set}. 

\begin{DoxyReturn}{Returns}
the first object that is included in {\ttfamily set} and whose parent is not.
\end{DoxyReturn}
This is convenient for iterating over all largest objects within a C\+P\+U set by doing a loop getting the first largest object and clearing its C\+P\+U set from the remaining C\+P\+U set. 

References hwloc\+\_\+obj\+::cpuset, hwloc\+\_\+bitmap\+\_\+intersects(), hwloc\+\_\+bitmap\+\_\+isincluded(), hwloc\+\_\+get\+\_\+next\+\_\+child(), and hwloc\+\_\+get\+\_\+root\+\_\+obj().

\hypertarget{group__hwlocality__helper__find__inside_gaab04c89623662e63a48ed2cd48eb601c}{\index{Finding Objects Inside a C\+P\+U set@{Finding Objects Inside a C\+P\+U set}!hwloc\+\_\+get\+\_\+largest\+\_\+objs\+\_\+inside\+\_\+cpuset@{hwloc\+\_\+get\+\_\+largest\+\_\+objs\+\_\+inside\+\_\+cpuset}}
\index{hwloc\+\_\+get\+\_\+largest\+\_\+objs\+\_\+inside\+\_\+cpuset@{hwloc\+\_\+get\+\_\+largest\+\_\+objs\+\_\+inside\+\_\+cpuset}!Finding Objects Inside a C\+P\+U set@{Finding Objects Inside a C\+P\+U set}}
\subsubsection[{hwloc\+\_\+get\+\_\+largest\+\_\+objs\+\_\+inside\+\_\+cpuset}]{\setlength{\rightskip}{0pt plus 5cm}H\+W\+L\+O\+C\+\_\+\+D\+E\+C\+L\+S\+P\+E\+C int hwloc\+\_\+get\+\_\+largest\+\_\+objs\+\_\+inside\+\_\+cpuset (
\begin{DoxyParamCaption}
\item[{{\bf hwloc\+\_\+topology\+\_\+t}}]{topology, }
\item[{{\bf hwloc\+\_\+const\+\_\+cpuset\+\_\+t}}]{set, }
\item[{{\bf hwloc\+\_\+obj\+\_\+t} $\ast$\+\_\+\+\_\+hwloc\+\_\+restrict}]{objs, }
\item[{int}]{max}
\end{DoxyParamCaption}
)}}\label{group__hwlocality__helper__find__inside_gaab04c89623662e63a48ed2cd48eb601c}


Get the set of largest objects covering exactly a given cpuset {\ttfamily set}. 

\begin{DoxyReturn}{Returns}
the number of objects returned in {\ttfamily objs}. 
\end{DoxyReturn}
\hypertarget{group__hwlocality__helper__find__inside_ga6807db0012369efe19b8d3dcee235493}{\index{Finding Objects Inside a C\+P\+U set@{Finding Objects Inside a C\+P\+U set}!hwloc\+\_\+get\+\_\+nbobjs\+\_\+inside\+\_\+cpuset\+\_\+by\+\_\+depth@{hwloc\+\_\+get\+\_\+nbobjs\+\_\+inside\+\_\+cpuset\+\_\+by\+\_\+depth}}
\index{hwloc\+\_\+get\+\_\+nbobjs\+\_\+inside\+\_\+cpuset\+\_\+by\+\_\+depth@{hwloc\+\_\+get\+\_\+nbobjs\+\_\+inside\+\_\+cpuset\+\_\+by\+\_\+depth}!Finding Objects Inside a C\+P\+U set@{Finding Objects Inside a C\+P\+U set}}
\subsubsection[{hwloc\+\_\+get\+\_\+nbobjs\+\_\+inside\+\_\+cpuset\+\_\+by\+\_\+depth}]{\setlength{\rightskip}{0pt plus 5cm}static \+\_\+\+\_\+hwloc\+\_\+inline unsigned \+\_\+\+\_\+hwloc\+\_\+attribute\+\_\+pure hwloc\+\_\+get\+\_\+nbobjs\+\_\+inside\+\_\+cpuset\+\_\+by\+\_\+depth (
\begin{DoxyParamCaption}
\item[{{\bf hwloc\+\_\+topology\+\_\+t}}]{topology, }
\item[{{\bf hwloc\+\_\+const\+\_\+cpuset\+\_\+t}}]{set, }
\item[{unsigned}]{depth}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{group__hwlocality__helper__find__inside_ga6807db0012369efe19b8d3dcee235493}


Return the number of objects at depth {\ttfamily depth} included in C\+P\+U set {\ttfamily set}. 



References hwloc\+\_\+obj\+::cpuset, hwloc\+\_\+bitmap\+\_\+isincluded(), hwloc\+\_\+get\+\_\+obj\+\_\+by\+\_\+depth(), and hwloc\+\_\+obj\+::next\+\_\+cousin.



Referenced by hwloc\+\_\+get\+\_\+nbobjs\+\_\+inside\+\_\+cpuset\+\_\+by\+\_\+type().

\hypertarget{group__hwlocality__helper__find__inside_ga72c5bc4317a4c3938e32447b769813a0}{\index{Finding Objects Inside a C\+P\+U set@{Finding Objects Inside a C\+P\+U set}!hwloc\+\_\+get\+\_\+nbobjs\+\_\+inside\+\_\+cpuset\+\_\+by\+\_\+type@{hwloc\+\_\+get\+\_\+nbobjs\+\_\+inside\+\_\+cpuset\+\_\+by\+\_\+type}}
\index{hwloc\+\_\+get\+\_\+nbobjs\+\_\+inside\+\_\+cpuset\+\_\+by\+\_\+type@{hwloc\+\_\+get\+\_\+nbobjs\+\_\+inside\+\_\+cpuset\+\_\+by\+\_\+type}!Finding Objects Inside a C\+P\+U set@{Finding Objects Inside a C\+P\+U set}}
\subsubsection[{hwloc\+\_\+get\+\_\+nbobjs\+\_\+inside\+\_\+cpuset\+\_\+by\+\_\+type}]{\setlength{\rightskip}{0pt plus 5cm}static \+\_\+\+\_\+hwloc\+\_\+inline int \+\_\+\+\_\+hwloc\+\_\+attribute\+\_\+pure hwloc\+\_\+get\+\_\+nbobjs\+\_\+inside\+\_\+cpuset\+\_\+by\+\_\+type (
\begin{DoxyParamCaption}
\item[{{\bf hwloc\+\_\+topology\+\_\+t}}]{topology, }
\item[{{\bf hwloc\+\_\+const\+\_\+cpuset\+\_\+t}}]{set, }
\item[{{\bf hwloc\+\_\+obj\+\_\+type\+\_\+t}}]{type}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{group__hwlocality__helper__find__inside_ga72c5bc4317a4c3938e32447b769813a0}


Return the number of objects of type {\ttfamily type} included in C\+P\+U set {\ttfamily set}. 

If no object for that type exists inside C\+P\+U set {\ttfamily set}, 0 is returned. If there are several levels with objects of that type inside C\+P\+U set {\ttfamily set}, -\/1 is returned. 

References hwloc\+\_\+get\+\_\+nbobjs\+\_\+inside\+\_\+cpuset\+\_\+by\+\_\+depth(), hwloc\+\_\+get\+\_\+type\+\_\+depth(), H\+W\+L\+O\+C\+\_\+\+T\+Y\+P\+E\+\_\+\+D\+E\+P\+T\+H\+\_\+\+M\+U\+L\+T\+I\+P\+L\+E, and H\+W\+L\+O\+C\+\_\+\+T\+Y\+P\+E\+\_\+\+D\+E\+P\+T\+H\+\_\+\+U\+N\+K\+N\+O\+W\+N.

\hypertarget{group__hwlocality__helper__find__inside_ga8af256c2572f16520f95440b884c1bd6}{\index{Finding Objects Inside a C\+P\+U set@{Finding Objects Inside a C\+P\+U set}!hwloc\+\_\+get\+\_\+next\+\_\+obj\+\_\+inside\+\_\+cpuset\+\_\+by\+\_\+depth@{hwloc\+\_\+get\+\_\+next\+\_\+obj\+\_\+inside\+\_\+cpuset\+\_\+by\+\_\+depth}}
\index{hwloc\+\_\+get\+\_\+next\+\_\+obj\+\_\+inside\+\_\+cpuset\+\_\+by\+\_\+depth@{hwloc\+\_\+get\+\_\+next\+\_\+obj\+\_\+inside\+\_\+cpuset\+\_\+by\+\_\+depth}!Finding Objects Inside a C\+P\+U set@{Finding Objects Inside a C\+P\+U set}}
\subsubsection[{hwloc\+\_\+get\+\_\+next\+\_\+obj\+\_\+inside\+\_\+cpuset\+\_\+by\+\_\+depth}]{\setlength{\rightskip}{0pt plus 5cm}static \+\_\+\+\_\+hwloc\+\_\+inline {\bf hwloc\+\_\+obj\+\_\+t} hwloc\+\_\+get\+\_\+next\+\_\+obj\+\_\+inside\+\_\+cpuset\+\_\+by\+\_\+depth (
\begin{DoxyParamCaption}
\item[{{\bf hwloc\+\_\+topology\+\_\+t}}]{topology, }
\item[{{\bf hwloc\+\_\+const\+\_\+cpuset\+\_\+t}}]{set, }
\item[{unsigned}]{depth, }
\item[{{\bf hwloc\+\_\+obj\+\_\+t}}]{prev}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{group__hwlocality__helper__find__inside_ga8af256c2572f16520f95440b884c1bd6}


Return the next object at depth {\ttfamily depth} included in C\+P\+U set {\ttfamily set}. 

If {\ttfamily prev} is {\ttfamily N\+U\+L\+L}, return the first object at depth {\ttfamily depth} included in {\ttfamily set}. The next invokation should pass the previous return value in {\ttfamily prev} so as to obtain the next object in {\ttfamily set}. 

References hwloc\+\_\+obj\+::cpuset, hwloc\+\_\+bitmap\+\_\+isincluded(), hwloc\+\_\+get\+\_\+next\+\_\+obj\+\_\+by\+\_\+depth(), and hwloc\+\_\+obj\+::next\+\_\+cousin.



Referenced by hwloc\+\_\+get\+\_\+distance\+\_\+matrix\+\_\+covering\+\_\+obj\+\_\+by\+\_\+depth(), and hwloc\+\_\+get\+\_\+next\+\_\+obj\+\_\+inside\+\_\+cpuset\+\_\+by\+\_\+type().

\hypertarget{group__hwlocality__helper__find__inside_ga934e7ecd68b33403e0c0be779d9ed1e6}{\index{Finding Objects Inside a C\+P\+U set@{Finding Objects Inside a C\+P\+U set}!hwloc\+\_\+get\+\_\+next\+\_\+obj\+\_\+inside\+\_\+cpuset\+\_\+by\+\_\+type@{hwloc\+\_\+get\+\_\+next\+\_\+obj\+\_\+inside\+\_\+cpuset\+\_\+by\+\_\+type}}
\index{hwloc\+\_\+get\+\_\+next\+\_\+obj\+\_\+inside\+\_\+cpuset\+\_\+by\+\_\+type@{hwloc\+\_\+get\+\_\+next\+\_\+obj\+\_\+inside\+\_\+cpuset\+\_\+by\+\_\+type}!Finding Objects Inside a C\+P\+U set@{Finding Objects Inside a C\+P\+U set}}
\subsubsection[{hwloc\+\_\+get\+\_\+next\+\_\+obj\+\_\+inside\+\_\+cpuset\+\_\+by\+\_\+type}]{\setlength{\rightskip}{0pt plus 5cm}static \+\_\+\+\_\+hwloc\+\_\+inline {\bf hwloc\+\_\+obj\+\_\+t} hwloc\+\_\+get\+\_\+next\+\_\+obj\+\_\+inside\+\_\+cpuset\+\_\+by\+\_\+type (
\begin{DoxyParamCaption}
\item[{{\bf hwloc\+\_\+topology\+\_\+t}}]{topology, }
\item[{{\bf hwloc\+\_\+const\+\_\+cpuset\+\_\+t}}]{set, }
\item[{{\bf hwloc\+\_\+obj\+\_\+type\+\_\+t}}]{type, }
\item[{{\bf hwloc\+\_\+obj\+\_\+t}}]{prev}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{group__hwlocality__helper__find__inside_ga934e7ecd68b33403e0c0be779d9ed1e6}


Return the next object of type {\ttfamily type} included in C\+P\+U set {\ttfamily set}. 

If there are multiple or no depth for given type, return {\ttfamily N\+U\+L\+L} and let the caller fallback to \hyperlink{group__hwlocality__helper__find__inside_ga8af256c2572f16520f95440b884c1bd6}{hwloc\+\_\+get\+\_\+next\+\_\+obj\+\_\+inside\+\_\+cpuset\+\_\+by\+\_\+depth()}. 

References hwloc\+\_\+get\+\_\+next\+\_\+obj\+\_\+inside\+\_\+cpuset\+\_\+by\+\_\+depth(), hwloc\+\_\+get\+\_\+type\+\_\+depth(), H\+W\+L\+O\+C\+\_\+\+T\+Y\+P\+E\+\_\+\+D\+E\+P\+T\+H\+\_\+\+M\+U\+L\+T\+I\+P\+L\+E, and H\+W\+L\+O\+C\+\_\+\+T\+Y\+P\+E\+\_\+\+D\+E\+P\+T\+H\+\_\+\+U\+N\+K\+N\+O\+W\+N.

\hypertarget{group__hwlocality__helper__find__inside_ga50a80a0021e5843d968c3b97aebaad9b}{\index{Finding Objects Inside a C\+P\+U set@{Finding Objects Inside a C\+P\+U set}!hwloc\+\_\+get\+\_\+obj\+\_\+inside\+\_\+cpuset\+\_\+by\+\_\+type@{hwloc\+\_\+get\+\_\+obj\+\_\+inside\+\_\+cpuset\+\_\+by\+\_\+type}}
\index{hwloc\+\_\+get\+\_\+obj\+\_\+inside\+\_\+cpuset\+\_\+by\+\_\+type@{hwloc\+\_\+get\+\_\+obj\+\_\+inside\+\_\+cpuset\+\_\+by\+\_\+type}!Finding Objects Inside a C\+P\+U set@{Finding Objects Inside a C\+P\+U set}}
\subsubsection[{hwloc\+\_\+get\+\_\+obj\+\_\+inside\+\_\+cpuset\+\_\+by\+\_\+type}]{\setlength{\rightskip}{0pt plus 5cm}static \+\_\+\+\_\+hwloc\+\_\+inline {\bf hwloc\+\_\+obj\+\_\+t} \+\_\+\+\_\+hwloc\+\_\+attribute\+\_\+pure hwloc\+\_\+get\+\_\+obj\+\_\+inside\+\_\+cpuset\+\_\+by\+\_\+type (
\begin{DoxyParamCaption}
\item[{{\bf hwloc\+\_\+topology\+\_\+t}}]{topology, }
\item[{{\bf hwloc\+\_\+const\+\_\+cpuset\+\_\+t}}]{set, }
\item[{{\bf hwloc\+\_\+obj\+\_\+type\+\_\+t}}]{type, }
\item[{unsigned}]{idx}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{group__hwlocality__helper__find__inside_ga50a80a0021e5843d968c3b97aebaad9b}


Return the {\ttfamily idx} -\/th object of type {\ttfamily type} included in C\+P\+U set {\ttfamily set}. 

If there are multiple or no depth for given type, return {\ttfamily N\+U\+L\+L} and let the caller fallback to \hyperlink{group__hwlocality__helper__find__inside_ga20703980008f82379f98f56857611a1a}{hwloc\+\_\+get\+\_\+obj\+\_\+inside\+\_\+cpuset\+\_\+by\+\_\+depth()}. 

References hwloc\+\_\+get\+\_\+obj\+\_\+inside\+\_\+cpuset\+\_\+by\+\_\+depth(), hwloc\+\_\+get\+\_\+type\+\_\+depth(), H\+W\+L\+O\+C\+\_\+\+T\+Y\+P\+E\+\_\+\+D\+E\+P\+T\+H\+\_\+\+M\+U\+L\+T\+I\+P\+L\+E, and H\+W\+L\+O\+C\+\_\+\+T\+Y\+P\+E\+\_\+\+D\+E\+P\+T\+H\+\_\+\+U\+N\+K\+N\+O\+W\+N.



Referenced by hwloc\+\_\+get\+\_\+obj\+\_\+below\+\_\+array\+\_\+by\+\_\+type(), and hwloc\+\_\+get\+\_\+obj\+\_\+below\+\_\+by\+\_\+type().

