\doxysection{Qore\+::zzz8callrefzzz9 Class Reference}
\hypertarget{class_qore_1_1zzz8callrefzzz9}{}\label{class_qore_1_1zzz8callrefzzz9}\index{Qore::zzz8callrefzzz9@{Qore::zzz8callrefzzz9}}


Methods in this pseudo-\/class can be executed on \doxysectlink{expressions_call_reference}{call references}{1}.  




{\ttfamily \#include $<$Pseudo\+\_\+\+QC\+\_\+\+Callref.\+dox.\+h$>$}



Inheritance diagram for Qore\+::zzz8callrefzzz9\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=148pt]{class_qore_1_1zzz8callrefzzz9__inherit__graph}
\end{center}
\end{figure}
\doxysubsubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{bool}} \mbox{\hyperlink{class_qore_1_1zzz8callrefzzz9_a51595cfbda83bbed8fe486c744728c8b}{callp}} ()
\begin{DoxyCompactList}\small\item\em Returns \doxysectlink{basic_data_types_True}{True}{2} because this is a callable type. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{auto}} \mbox{\hyperlink{class_qore_1_1zzz8callrefzzz9_a4aed92bb45469836693cf23a6f2fd02c}{exec}} (...)
\begin{DoxyCompactList}\small\item\em Evaluates the code with the arguments given and returns the result. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} \mbox{\hyperlink{class_qore_1_1zzz8callrefzzz9_a97100bbe7d1e17609fabaeb48ca048c2}{type\+Code}} ()
\begin{DoxyCompactList}\small\item\em Returns \doxylink{group__type__code__constants_gaa27f1bed5a2cc4ef4e62c7c2897f564d}{Qore\+::\+NT\+\_\+\+CALLREF}. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} \mbox{\hyperlink{class_qore_1_1zzz8callrefzzz9_a9a95cb4781fef0e10184f03e83a70ae4}{unique\+Hash}} ()
\begin{DoxyCompactList}\small\item\em Return a unique string for the call reference or closure independent of the target. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{bool}} \mbox{\hyperlink{class_qore_1_1zzz8callrefzzz9_ab9a08ccf2e9011a241d1de53c2773ce5}{val}} ()
\begin{DoxyCompactList}\small\item\em Returns \doxysectlink{basic_data_types_True}{True}{2}. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Public Member Functions inherited from \mbox{\hyperlink{class_qore_1_1zzz8valuezzz9}{Qore\+::zzz8valuezzz9}}}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{bool}} \mbox{\hyperlink{class_qore_1_1zzz8valuezzz9_a3bd7145235f0f4160b29e9ff1a925f4f}{callp}} ()
\begin{DoxyCompactList}\small\item\em Returns \doxysectlink{basic_data_types_False}{False}{2}; this method is reimplemented in other types and will return \doxysectlink{basic_data_types_True}{True}{2} if the given expression is a callable value (ie \doxysectlink{expressions_closure}{closures}{1} or \doxysectlink{expressions_call_reference}{call references}{1}) \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{bool}} \mbox{\hyperlink{class_qore_1_1zzz8valuezzz9_a3ef4fe2f9389f29e7c53e2cfc4217a97}{complex\+Type}} ()
\begin{DoxyCompactList}\small\item\em returns \doxysectlink{basic_data_types_True}{True}{2} if the value has a complex type, \doxysectlink{basic_data_types_False}{False}{2} if not \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{bool}} \mbox{\hyperlink{class_qore_1_1zzz8valuezzz9_aa89ad8b046cb41c3588b75e07426696c}{empty}} ()
\begin{DoxyCompactList}\small\item\em Returns \doxysectlink{basic_data_types_True}{True}{2}; this method will be reimplemented in container types where it may return \doxysectlink{basic_data_types_False}{False}{2}. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} \mbox{\hyperlink{class_qore_1_1zzz8valuezzz9_abd777c781935cb8faf3381fcc7ef3e88}{full\+Type}} (\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{\+\_\+\+\_\+7\+\_\+}} \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{bool}} \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{with\+\_\+namespaces}})
\begin{DoxyCompactList}\small\item\em returns the full type name which differs from the simple type name in case of complex types and objects \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{bool}} \mbox{\hyperlink{class_qore_1_1zzz8valuezzz9_a6feb7fd9eae7eac19775a47db23ad4e5}{intp}} ()
\begin{DoxyCompactList}\small\item\em Returns \doxysectlink{basic_data_types_False}{False}{2}; this method is reimplemented in other types and will return \doxysectlink{basic_data_types_True}{True}{2} if the given expression can be converted to an integer. \end{DoxyCompactList}\item 
\mbox{\hyperlink{class_qore_1_1_abstract_iterator}{Abstract\+Iterator}} \mbox{\hyperlink{class_qore_1_1zzz8valuezzz9_a16b7eeea1bb08b7c3faa69b2aa602fbb}{iterator}} ()
\begin{DoxyCompactList}\small\item\em Returns an iterator object for the value; the default iterator object returned is \doxylink{class_qore_1_1_single_value_iterator}{Single\+Value\+Iterator}. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} \mbox{\hyperlink{class_qore_1_1zzz8valuezzz9_a6088d2158ce94d0d6c9159a628f79017}{lsize}} ()
\begin{DoxyCompactList}\small\item\em Returns 1; the return value of this method should give the list size of the value, which is normally 1 for non-\/lists (except for \doxysectlink{basic_data_types_nothing}{NOTHING}{1} where the size will be 0) and the number of the elements in the list for lists; this method will be reimplemented in other types where it may return other values. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} \mbox{\hyperlink{class_qore_1_1zzz8valuezzz9_a794caed9de093e89d88bfbe652e15a06}{size}} ()
\begin{DoxyCompactList}\small\item\em Returns zero; this method will be reimplemented in container types where it may return a non-\/zero value. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{bool}} \mbox{\hyperlink{class_qore_1_1zzz8valuezzz9_aefcaa86868b4993dd5b0f91fa7b5c1ad}{sizep}} ()
\begin{DoxyCompactList}\small\item\em Returns \doxysectlink{basic_data_types_True}{True}{2} if the type can return a non-\/zero size (\doxysectlink{basic_data_types_True}{True}{2} for containers including \doxysectlink{basic_data_types_binary}{binary objects}{1} and \doxysectlink{basic_data_types_string}{strings}{1}, \doxysectlink{basic_data_types_False}{False}{2} for everything else) \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{bool}} \mbox{\hyperlink{class_qore_1_1zzz8valuezzz9_af066cf20f6d6a860d209acc7e9e40c20}{strp}} ()
\begin{DoxyCompactList}\small\item\em Returns \doxysectlink{basic_data_types_False}{False}{2}; this method is reimplemented in other types and will return \doxysectlink{basic_data_types_True}{True}{2} if the given expression can be converted to a string. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{bool}} \mbox{\hyperlink{class_qore_1_1zzz8valuezzz9_a671b4af222d6351eb969c2b1d710d463}{to\+Bool}} ()
\begin{DoxyCompactList}\small\item\em Returns the boolean representation of the value; the default is \doxysectlink{basic_data_types_False}{False}{2}. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga113d18216af1bdb70545081b6a9892ef}{float}} \mbox{\hyperlink{class_qore_1_1zzz8valuezzz9_a11505ca76b6e168b1d143b3fc8d1ba60}{to\+Float}} ()
\begin{DoxyCompactList}\small\item\em Returns the floating-\/point representation of the value; the default is 0.\+0. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} \mbox{\hyperlink{class_qore_1_1zzz8valuezzz9_aed0897423af7ddcb1ade7df4c4a61364}{to\+Int}} ()
\begin{DoxyCompactList}\small\item\em Returns the integer representation of the value; the default is 0. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_gaf6000d64e3fe99ce81b9faaf44b2de4e}{number}} \mbox{\hyperlink{class_qore_1_1zzz8valuezzz9_ad4bcbe12f38c710e0e7e67a68ab0512f}{to\+Number}} ()
\begin{DoxyCompactList}\small\item\em Returns the arbitrary-\/precision numeric representation of the value; the default is 0. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} \mbox{\hyperlink{class_qore_1_1zzz8valuezzz9_a82c78c7b10d754b7c528126eee07e286}{to\+String}} (\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{\+\_\+\+\_\+7\+\_\+}} \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} encoding)
\begin{DoxyCompactList}\small\item\em Returns the string representation of the value; the default is an empty string. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} \mbox{\hyperlink{class_qore_1_1zzz8valuezzz9_a333453fca3889bfa8d4159b921b1ab87}{type}} ()
\begin{DoxyCompactList}\small\item\em Returns the string type for the value. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} \mbox{\hyperlink{class_qore_1_1zzz8valuezzz9_a5e7d381ab49abebd0d0f045708482512}{type\+Code}} ()
\begin{DoxyCompactList}\small\item\em Returns the type code for the value. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{bool}} \mbox{\hyperlink{class_qore_1_1zzz8valuezzz9_a3a66486cee14aa073cf90fbed5a23edd}{val}} ()
\begin{DoxyCompactList}\small\item\em Returns \doxysectlink{basic_data_types_False}{False}{2}; this method is reimplemented in other types and will return \doxysectlink{basic_data_types_True}{True}{2} if the given expression has a non-\/empty value. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Methods in this pseudo-\/class can be executed on \doxysectlink{expressions_call_reference}{call references}{1}. 

\doxysubsection{Member Function Documentation}
\Hypertarget{class_qore_1_1zzz8callrefzzz9_a51595cfbda83bbed8fe486c744728c8b}\label{class_qore_1_1zzz8callrefzzz9_a51595cfbda83bbed8fe486c744728c8b} 
\index{Qore::zzz8callrefzzz9@{Qore::zzz8callrefzzz9}!callp@{callp}}
\index{callp@{callp}!Qore::zzz8callrefzzz9@{Qore::zzz8callrefzzz9}}
\doxysubsubsection{\texorpdfstring{callp()}{callp()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{bool}} Qore\+::zzz8callrefzzz9\+::callp (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns \doxysectlink{basic_data_types_True}{True}{2} because this is a callable type. 

\begin{DoxyParagraph}{Code Flags\+:}
\doxysectlink{code_flags_CONSTANT}{CONSTANT}{1}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}{0}
\DoxyCodeLine{\textcolor{keywordflow}{if}\ (n.callp())}
\DoxyCodeLine{\ \ \ \ printf(\textcolor{stringliteral}{"{}the\ result\ of\ calling\ the\ value:\ \%y\(\backslash\)n"{}},\ n());}

\end{DoxyCode}

\end{DoxyParagraph}
\begin{DoxyReturn}{Returns}
\doxysectlink{basic_data_types_True}{True}{2} because this is a callable type 
\end{DoxyReturn}
\Hypertarget{class_qore_1_1zzz8callrefzzz9_a4aed92bb45469836693cf23a6f2fd02c}\label{class_qore_1_1zzz8callrefzzz9_a4aed92bb45469836693cf23a6f2fd02c} 
\index{Qore::zzz8callrefzzz9@{Qore::zzz8callrefzzz9}!exec@{exec}}
\index{exec@{exec}!Qore::zzz8callrefzzz9@{Qore::zzz8callrefzzz9}}
\doxysubsubsection{\texorpdfstring{exec()}{exec()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{auto}} Qore\+::zzz8callrefzzz9\+::exec (\begin{DoxyParamCaption}\item[{}]{... }\end{DoxyParamCaption})}



Evaluates the code with the arguments given and returns the result. 


\begin{DoxyParams}{Parameters}
{\em ...} & the arguments to the code to be called\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
the return value of the code called 
\end{DoxyReturn}
\Hypertarget{class_qore_1_1zzz8callrefzzz9_a97100bbe7d1e17609fabaeb48ca048c2}\label{class_qore_1_1zzz8callrefzzz9_a97100bbe7d1e17609fabaeb48ca048c2} 
\index{Qore::zzz8callrefzzz9@{Qore::zzz8callrefzzz9}!typeCode@{typeCode}}
\index{typeCode@{typeCode}!Qore::zzz8callrefzzz9@{Qore::zzz8callrefzzz9}}
\doxysubsubsection{\texorpdfstring{typeCode()}{typeCode()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} Qore\+::zzz8callrefzzz9\+::type\+Code (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns \doxylink{group__type__code__constants_gaa27f1bed5a2cc4ef4e62c7c2897f564d}{Qore\+::\+NT\+\_\+\+CALLREF}. 

\begin{DoxyParagraph}{Code Flags\+:}
\doxysectlink{code_flags_CONSTANT}{CONSTANT}{1}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}{0}
\DoxyCodeLine{switch\ (c.typeCode())\ \{}
\DoxyCodeLine{\ \ \ \ case\ NT\_CALLREF:}
\DoxyCodeLine{\ \ \ \ \ \ \ \ printf(\textcolor{stringliteral}{"{}\%y:\ is\ a\ call\ reference\(\backslash\)n"{}},\ c);}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{keywordflow}{break};}
\DoxyCodeLine{\}}

\end{DoxyCode}

\end{DoxyParagraph}
\begin{DoxyReturn}{Returns}
\doxylink{group__type__code__constants_gaa27f1bed5a2cc4ef4e62c7c2897f564d}{Qore\+::\+NT\+\_\+\+CALLREF} 
\end{DoxyReturn}
\Hypertarget{class_qore_1_1zzz8callrefzzz9_a9a95cb4781fef0e10184f03e83a70ae4}\label{class_qore_1_1zzz8callrefzzz9_a9a95cb4781fef0e10184f03e83a70ae4} 
\index{Qore::zzz8callrefzzz9@{Qore::zzz8callrefzzz9}!uniqueHash@{uniqueHash}}
\index{uniqueHash@{uniqueHash}!Qore::zzz8callrefzzz9@{Qore::zzz8callrefzzz9}}
\doxysubsubsection{\texorpdfstring{uniqueHash()}{uniqueHash()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} Qore\+::zzz8callrefzzz9\+::unique\+Hash (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Return a unique string for the call reference or closure independent of the target. 

\begin{DoxyParagraph}{Code Flags\+:}
\doxysectlink{code_flags_CONSTANT}{CONSTANT}{1}
\end{DoxyParagraph}
\begin{DoxyReturn}{Returns}
a unique string for the call reference or closure independent of the target
\end{DoxyReturn}
\begin{DoxyNote}{Note}
an SHA1 hash is created with a random salt created when the Qore library is initialized and the internal pointer address
\end{DoxyNote}
\begin{DoxySince}{Since}
Qore 2.\+0 
\end{DoxySince}
\Hypertarget{class_qore_1_1zzz8callrefzzz9_ab9a08ccf2e9011a241d1de53c2773ce5}\label{class_qore_1_1zzz8callrefzzz9_ab9a08ccf2e9011a241d1de53c2773ce5} 
\index{Qore::zzz8callrefzzz9@{Qore::zzz8callrefzzz9}!val@{val}}
\index{val@{val}!Qore::zzz8callrefzzz9@{Qore::zzz8callrefzzz9}}
\doxysubsubsection{\texorpdfstring{val()}{val()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{bool}} Qore\+::zzz8callrefzzz9\+::val (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns \doxysectlink{basic_data_types_True}{True}{2}. 

\begin{DoxyParagraph}{Code Flags\+:}
\doxysectlink{code_flags_CONSTANT}{CONSTANT}{1}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}{0}
\DoxyCodeLine{bool\ b\ =\ c.val();}

\end{DoxyCode}

\end{DoxyParagraph}
\begin{DoxyReturn}{Returns}
\doxysectlink{basic_data_types_True}{True}{2}
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}

\begin{DoxyItemize}
\item \doxysectlink{parse_directives_perl-bool-eval}{\%perl-\/bool-\/eval}{1}
\item \doxysectlink{parse_directives_strict-bool-eval}{\%strict-\/bool-\/eval}{1} 
\end{DoxyItemize}
\end{DoxySeeAlso}
