Micro template library A library for building device drivers
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 

39 lignes
2.0 KiB

  1. \hypertarget{crtp_8h}{}\section{include/utl/core/crtp.h File Reference}
  2. \label{crtp_8h}\index{include/utl/core/crtp.\+h@{include/utl/core/crtp.\+h}}
  3. {\ttfamily \#include $<$utl/core/impl.\+h$>$}\newline
  4. \subsection*{Classes}
  5. \begin{DoxyCompactItemize}
  6. \item
  7. struct \mbox{\hyperlink{structutl_1_1crtp__tag}{utl\+::crtp\+\_\+tag}}
  8. \begin{DoxyCompactList}\small\item\em C\+R\+TP support tag type. \end{DoxyCompactList}\item
  9. struct \mbox{\hyperlink{structutl_1_1virtual__tag}{utl\+::virtual\+\_\+tag}}
  10. \begin{DoxyCompactList}\small\item\em virtual support tag type \end{DoxyCompactList}\end{DoxyCompactItemize}
  11. \subsection*{Namespaces}
  12. \begin{DoxyCompactItemize}
  13. \item
  14. \mbox{\hyperlink{namespaceutl}{utl}}
  15. \begin{DoxyCompactList}\small\item\em S\+TL\textquotesingle{}s core language concepts. \end{DoxyCompactList}\end{DoxyCompactItemize}
  16. \subsection*{Macros}
  17. \begin{DoxyCompactItemize}
  18. \item
  19. \#define \mbox{\hyperlink{crtp_8h_a716d91dbf95e7d113f133e1f3e6da852}{\+\_\+\+C\+R\+T\+P\+\_\+\+I\+M\+PL}}(T)
  20. \end{DoxyCompactItemize}
  21. \subsection{Macro Definition Documentation}
  22. \mbox{\Hypertarget{crtp_8h_a716d91dbf95e7d113f133e1f3e6da852}\label{crtp_8h_a716d91dbf95e7d113f133e1f3e6da852}}
  23. \index{crtp.\+h@{crtp.\+h}!\+\_\+\+C\+R\+T\+P\+\_\+\+I\+M\+PL@{\+\_\+\+C\+R\+T\+P\+\_\+\+I\+M\+PL}}
  24. \index{\+\_\+\+C\+R\+T\+P\+\_\+\+I\+M\+PL@{\+\_\+\+C\+R\+T\+P\+\_\+\+I\+M\+PL}!crtp.\+h@{crtp.\+h}}
  25. \subsubsection{\texorpdfstring{\+\_\+\+C\+R\+T\+P\+\_\+\+I\+M\+PL}{\_CRTP\_IMPL}}
  26. {\footnotesize\ttfamily \#define \+\_\+\+C\+R\+T\+P\+\_\+\+I\+M\+PL(\begin{DoxyParamCaption}\item[{}]{T }\end{DoxyParamCaption})}
  27. {\bfseries Value\+:}
  28. \begin{DoxyCode}
  29. constexpr T& impl() \{ \textcolor{keywordflow}{return} *\textcolor{keyword}{static\_cast<}T*\textcolor{keyword}{>}(\textcolor{keyword}{this}); \} \(\backslash\)
  30. constexpr \textcolor{keyword}{const} T& impl()\textcolor{keyword}{ const }\{ \textcolor{keywordflow}{return} *\textcolor{keyword}{static\_cast<}\textcolor{keyword}{const }T*\textcolor{keyword}{>}(\textcolor{keyword}{this}); \}
  31. \end{DoxyCode}
  32. Definition at line 43 of file crtp.\+h.