\doxysection{type\+\_\+descriptor.\+hpp}
\hypertarget{type__descriptor_8hpp_source}{}\label{type__descriptor_8hpp_source}\index{ginkgo/core/config/type\_descriptor.hpp@{ginkgo/core/config/type\_descriptor.hpp}}

\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{comment}{//\ SPDX-\/FileCopyrightText:\ 2017\ -\/\ 2024\ The\ Ginkgo\ authors}}
\DoxyCodeLine{00002\ \textcolor{comment}{//}}
\DoxyCodeLine{00003\ \textcolor{comment}{//\ SPDX-\/License-\/Identifier:\ BSD-\/3-\/Clause}}
\DoxyCodeLine{00004\ }
\DoxyCodeLine{00005\ \textcolor{preprocessor}{\#ifndef\ GKO\_PUBLIC\_CORE\_CONFIG\_TYPE\_DESCRIPTOR\_HPP\_}}
\DoxyCodeLine{00006\ \textcolor{preprocessor}{\#define\ GKO\_PUBLIC\_CORE\_CONFIG\_TYPE\_DESCRIPTOR\_HPP\_}}
\DoxyCodeLine{00007\ }
\DoxyCodeLine{00008\ }
\DoxyCodeLine{00009\ \textcolor{preprocessor}{\#include\ <string>}}
\DoxyCodeLine{00010\ }
\DoxyCodeLine{00011\ \textcolor{preprocessor}{\#include\ <ginkgo/core/base/types.hpp>}}
\DoxyCodeLine{00012\ }
\DoxyCodeLine{00013\ \textcolor{keyword}{namespace\ }\doxymbox{\hyperlink{namespacegko}{gko}}\ \{}
\DoxyCodeLine{00014\ \textcolor{keyword}{namespace\ }config\ \{}
\DoxyCodeLine{00015\ }
\DoxyCodeLine{00016\ }
\DoxyCodeLine{00039\ \textcolor{keyword}{class\ }\doxymbox{\hyperlink{classgko_1_1config_1_1type__descriptor_a174c5d07919038e0f5858ca25d55002d}{type\_descriptor}}\ final\ \{}
\DoxyCodeLine{00040\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00052\ \ \ \ \ \textcolor{keyword}{explicit}\ \doxymbox{\hyperlink{classgko_1_1config_1_1type__descriptor_a174c5d07919038e0f5858ca25d55002d}{type\_descriptor}}(std::string\ value\_typestr\ =\ \textcolor{stringliteral}{"{}float64"{}},}
\DoxyCodeLine{00053\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ std::string\ index\_typestr\ =\ \textcolor{stringliteral}{"{}int32"{}},}
\DoxyCodeLine{00054\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ std::string\ global\_index\_typestr\ =\ \textcolor{stringliteral}{"{}int64"{}});}
\DoxyCodeLine{00055\ }
\DoxyCodeLine{00059\ \ \ \ \ \textcolor{keyword}{const}\ std::string\&\ \doxymbox{\hyperlink{classgko_1_1config_1_1type__descriptor_a2f35f692c4fca82f12fb3850e7a8eb44}{get\_value\_typestr}}()\ \textcolor{keyword}{const};}
\DoxyCodeLine{00060\ }
\DoxyCodeLine{00064\ \ \ \ \ \textcolor{keyword}{const}\ std::string\&\ \doxymbox{\hyperlink{classgko_1_1config_1_1type__descriptor_a98b9186f925eb78b735b644b1862124f}{get\_index\_typestr}}()\ \textcolor{keyword}{const};}
\DoxyCodeLine{00065\ }
\DoxyCodeLine{00070\ \ \ \ \ \textcolor{keyword}{const}\ std::string\&\ \doxymbox{\hyperlink{classgko_1_1config_1_1type__descriptor_a6cd47833048a7a9e5bb4879f74ef9f8c}{get\_local\_index\_typestr}}()\ \textcolor{keyword}{const};}
\DoxyCodeLine{00071\ }
\DoxyCodeLine{00075\ \ \ \ \ \textcolor{keyword}{const}\ std::string\&\ \doxymbox{\hyperlink{classgko_1_1config_1_1type__descriptor_a95f1e2fe9451df916b9a22bb177c658f}{get\_global\_index\_typestr}}()\ \textcolor{keyword}{const};}
\DoxyCodeLine{00076\ }
\DoxyCodeLine{00077\ \textcolor{keyword}{private}:}
\DoxyCodeLine{00078\ \ \ \ \ std::string\ value\_typestr\_;}
\DoxyCodeLine{00079\ \ \ \ \ std::string\ index\_typestr\_;}
\DoxyCodeLine{00080\ \ \ \ \ std::string\ global\_index\_typestr\_;}
\DoxyCodeLine{00081\ \};}
\DoxyCodeLine{00082\ }
\DoxyCodeLine{00083\ }
\DoxyCodeLine{00092\ \textcolor{keyword}{template}\ <\textcolor{keyword}{typename}\ ValueType\ =\ double,\ \textcolor{keyword}{typename}\ IndexType\ =\ \doxymbox{\hyperlink{namespacegko_a16bd14c10900eb804d784908d8aab5ab}{int32}},}
\DoxyCodeLine{00093\ \ \ \ \ \ \ \ \ \ \ \textcolor{keyword}{typename}\ GlobalIndexType\ =\ \doxymbox{\hyperlink{namespacegko_a913ec044df518649fa5a891f8dffae34}{int64}}>}
\DoxyCodeLine{00094\ \doxymbox{\hyperlink{classgko_1_1config_1_1type__descriptor}{type\_descriptor}}\ make\_type\_descriptor();}
\DoxyCodeLine{00095\ }
\DoxyCodeLine{00096\ }
\DoxyCodeLine{00097\ \}\ \ \textcolor{comment}{//\ namespace\ config}}
\DoxyCodeLine{00098\ \}\ \ \textcolor{comment}{//\ namespace\ gko}}
\DoxyCodeLine{00099\ }
\DoxyCodeLine{00100\ \textcolor{preprocessor}{\#endif\ \ }\textcolor{comment}{//\ GKO\_PUBLIC\_CORE\_CONFIG\_TYPE\_DESCRIPTOR\_HPP\_}}

\end{DoxyCode}
