cgal/Algebraic_foundations/doc_tex/Algebraic_foundations_ref/macros.tex

93 lines
1.8 KiB
TeX

\newcommand{\ignore}[1]{}
%result type
%first_argument type
%documentation of operator
\newcommand{\ccAdaptableUnaryFunction}[3]{%
\ccc{AdaptableUnaryFunction}\\ %
\\
{\bf Public Types:} \\
\begin{tabular}{ll}
{result\_type:} & #1 \\
{first\_argument\_type:} & #2 \\
\end{tabular}
\\
{\bf Public Member Functions:}\\
\begin{tabular}{ll}
#1 &operator()(#2 x) \\
\end{tabular}\\
#3
}
%result type
%first argument type
%second argument type
%documentation of operator
\newcommand{\ccAdaptableBinaryFunction}[4]{%
\ccc{AdaptableBinaryFunction}\\ %
\\
{\bf Public Types:} \\
\begin{tabular}{ll}
{result\_type:} & #1 \\
{first\_argument\_type:} & #2 \\
{second\_argument\_type:} & #3 \\
\end{tabular}
\\
{\bf Public Member Functions:}\\
\begin{tabular}{ll}
#1 &operator()(#2 x, #3 y) \\
\end{tabular}\\
#4
}
%result type
%first argument type
%second argument type
%third argument type
%documentation of operator
\newcommand{\ccAdaptableTernaryFunction}[5]{%
\ccc{AdaptableTernaryFunction}\\ %
\\
{\bf Public Types:} \\
\begin{tabular}{ll}
{result\_type:} & #1 \\
{first\_argument\_type:} & #2 \\
{second\_argument\_type:} & #3 \\
{third\_argument\_type:} & #3 \\
\end{tabular}
\\
{\bf Public Member Functions:}\\
\begin{tabular}{ll}
#1 &operator()(#2 x, #3 y, #4z) \\
\end{tabular}\\
#5
}
%result type
%first argument type
%second argument type
%third argument type
%documentation of operator
\newcommand{\ccAdaptableQuadFunction}[6]{%
\ccc{AdaptableQuadFunction}\\ %
\\
{\bf Public Types:} \\
\begin{tabular}{ll}
{result\_type:} & #1 \\
{first\_argument\_type:} & #2 \\
{second\_argument\_type:} & #3 \\
{third\_argument\_type:} & #4 \\
{fourth\_argument\_type:} & #5 \\
\end{tabular}
\\
{\bf Public Member Functions:}\\
\begin{tabular}{ll}
#1 &operator()(#2 a, #3 b, #4 c, #5 d)\\
\end{tabular}\\
#6
}