\section{KJS::Boolean Class Reference}
\label{classKJS_1_1Boolean}\index{KJS::Boolean@{KJS::Boolean}}
Represents an primitive {\bf Null}{\rm (p.\,\pageref{classKJS_1_1Null})} value.  


{\tt \#include $<$value.h$>$}

Inheritance diagram for KJS::Boolean:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=54pt]{classKJS_1_1Boolean__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KJS::Boolean:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=59pt]{classKJS_1_1Boolean__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Boolean} (bool b=false)\label{classKJS_1_1Boolean_a0}

\item 
{\bf Boolean} (const  {\bf Boolean} \&v)\label{classKJS_1_1Boolean_a1}

\item 
{\bf Boolean} \& {\bf operator=} (const  {\bf Boolean} \&v)\label{classKJS_1_1Boolean_a3}

\item 
bool {\bf value} () const \label{classKJS_1_1Boolean_a4}

\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Boolean} {\bf dynamic\-Cast} (const  {\bf Value} \&v)
\begin{CompactList}\small\item\em Converts a {\bf Value}{\rm (p.\,\pageref{classKJS_1_1Value})} into an {\bf Boolean}{\rm (p.\,\pageref{classKJS_1_1Boolean})}. \item\end{CompactList}\end{CompactItemize}
\subsection*{Friends}
\begin{CompactItemize}
\item 
class {\bf Boolean\-Imp}\label{classKJS_1_1Boolean_n0}

\end{CompactItemize}


\subsection{Detailed Description}
Represents an primitive {\bf Null}{\rm (p.\,\pageref{classKJS_1_1Null})} value. 



Definition at line 337 of file value.h.

\subsection{Member Function Documentation}
\index{KJS::Boolean@{KJS::Boolean}!dynamicCast@{dynamicCast}}
\index{dynamicCast@{dynamicCast}!KJS::Boolean@{KJS::Boolean}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Boolean} Boolean::dynamic\-Cast (const {\bf Value} \& {\em v})\hspace{0.3cm}{\tt  [static]}}\label{classKJS_1_1Boolean_e0}


Converts a {\bf Value}{\rm (p.\,\pageref{classKJS_1_1Value})} into an {\bf Boolean}{\rm (p.\,\pageref{classKJS_1_1Boolean})}. 

If the value's type is not Boolean\-Type, a null object will be returned (i.e. one with it's internal pointer set to 0). If you do not know for sure whether the value is of type Boolean\-Type, you should check the {\bf is\-Null}{\rm (p.\,\pageref{classKJS_1_1Value_a6})}() methods afterwards before calling any methods on the returned value.

\begin{Desc}
\item[Returns:]The value converted to a {\bf Boolean}{\rm (p.\,\pageref{classKJS_1_1Boolean})} \end{Desc}


Definition at line 408 of file value.cpp.

References KJS::Value::imp(), KJS::Value::is\-Null(), and KJS::Value::type().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
value.h\item 
value.cpp\end{CompactItemize}
