\hypertarget{structunit__struct}{
\section{unit\_\-struct Struct Reference}
\label{structunit__struct}\index{unit\_\-struct@{unit\_\-struct}}
}


A single parsed unit.  




{\ttfamily \#include $<$unity.h$>$}



Collaboration diagram for unit\_\-struct:
\subsection*{Data Fields}
\begin{DoxyCompactItemize}
\item 
char \hyperlink{structunit__struct_ac01433166c7c6d993e6cfae6fb9f44ce}{is\_\-quoted\_\-unit}
\begin{DoxyCompactList}\small\item\em True (non-\/zero) if this unit was a ‘quoted’ unit. \end{DoxyCompactList}\item 
\hypertarget{structunit__struct_ad85c7dce35a9070c508173e9cb15fe7e}{
struct \hyperlink{structunit__struct}{unit\_\-struct} $\ast$ \hyperlink{structunit__struct_ad85c7dce35a9070c508173e9cb15fe7e}{next}}
\label{structunit__struct_ad85c7dce35a9070c508173e9cb15fe7e}

\begin{DoxyCompactList}\small\item\em A pointer to the next unit in the sequence. \end{DoxyCompactList}\item 
float \hyperlink{structunit__struct_af2eae6b68aca1a3174f57157c50f58f1}{power}
\begin{DoxyCompactList}\small\item\em The power to which the unit is raised. \end{DoxyCompactList}\item 
\hyperlink{unity_8h_a698ff4e23791882278b041c9c0c8d7d3}{UnitTypes} \hyperlink{structunit__struct_a5092e9e38e83ef36966233017fd0a9a5}{type}
\begin{DoxyCompactList}\small\item\em Indicates which type of unit this is. \end{DoxyCompactList}\item 
\hypertarget{structunit__struct_a7891a823b704d5d17e05dff0fc6b8e6e}{
\hyperlink{struct_function_application}{FunctionApplication} \hyperlink{structunit__struct_a7891a823b704d5d17e05dff0fc6b8e6e}{f}}
\label{structunit__struct_a7891a823b704d5d17e05dff0fc6b8e6e}

\begin{DoxyCompactList}\small\item\em A contained function-\/of unit. \end{DoxyCompactList}\item 
\hypertarget{structunit__struct_ad00e2e325e54102c839e4c18485c28f1}{
\hyperlink{struct_simple_unit}{SimpleUnit} \hyperlink{structunit__struct_ad00e2e325e54102c839e4c18485c28f1}{u}}
\label{structunit__struct_ad00e2e325e54102c839e4c18485c28f1}

\begin{DoxyCompactList}\small\item\em A contained simple unit. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
A single parsed unit. 

This can be either a simple unit (corresponding to, for example, ‘MHz’) or a function of a sequence of units (corresponding to, for example, {\ttfamily log(V$^\wedge$2/mHz)}).

A unit can be ‘quoted’, indicating that it is to be parsed as an ‘unknown’ unit even if its name matches that of a ‘known’ unit (for example, {\ttfamily 'B'} is a unit of ‘B’, and neither byte nor Bel, and the {\ttfamily 'furlong'} is a ‘furlong’ and not, as it would otherwise be parsed, a femto-\/urlong). This mechanism is syntactically permitted only in the VOUnits syntax, and is used only for output and validity checks (see \hyperlink{unity_8h_ad7068b8cc977b9b79c1ecaa1507ab797}{unity\_\-check\_\-unit}), and not for processing. All ‘quoted’ units are classed as not ‘recognised’. 

\subsection{Field Documentation}
\hypertarget{structunit__struct_ac01433166c7c6d993e6cfae6fb9f44ce}{
\index{unit\_\-struct@{unit\_\-struct}!is\_\-quoted\_\-unit@{is\_\-quoted\_\-unit}}
\index{is\_\-quoted\_\-unit@{is\_\-quoted\_\-unit}!unit_struct@{unit\_\-struct}}
\subsubsection[{is\_\-quoted\_\-unit}]{\setlength{\rightskip}{0pt plus 5cm}char {\bf is\_\-quoted\_\-unit}}}
\label{structunit__struct_ac01433166c7c6d993e6cfae6fb9f44ce}


True (non-\/zero) if this unit was a ‘quoted’ unit. 

This only makes sense for VOUnits units, and is used only when writing out units rather than in any processing. \hypertarget{structunit__struct_af2eae6b68aca1a3174f57157c50f58f1}{
\index{unit\_\-struct@{unit\_\-struct}!power@{power}}
\index{power@{power}!unit_struct@{unit\_\-struct}}
\subsubsection[{power}]{\setlength{\rightskip}{0pt plus 5cm}float {\bf power}}}
\label{structunit__struct_af2eae6b68aca1a3174f57157c50f58f1}


The power to which the unit is raised. 

The specification {\ttfamily mm$^\wedge$(-\/2)} will result in a power of ‘-\/2’. \hypertarget{structunit__struct_a5092e9e38e83ef36966233017fd0a9a5}{
\index{unit\_\-struct@{unit\_\-struct}!type@{type}}
\index{type@{type}!unit_struct@{unit\_\-struct}}
\subsubsection[{type}]{\setlength{\rightskip}{0pt plus 5cm}{\bf UnitTypes} {\bf type}}}
\label{structunit__struct_a5092e9e38e83ef36966233017fd0a9a5}


Indicates which type of unit this is. 

If this is of type {\ttfamily simple\_\-unit\_\-type}, then the ‘u’ struct will be valid; if it is of type {\ttfamily function\_\-application\_\-type}, then ‘f’ will be valid. 

The documentation for this struct was generated from the following file:\begin{DoxyCompactItemize}
\item 
\hyperlink{unity_8h}{unity.h}\end{DoxyCompactItemize}
