\hypertarget{a00530_source}{}\doxysection{AAX\+\_\+\+Page\+Table\+Utilities.\+h}
\label{a00530_source}\index{AAX\_PageTableUtilities.h@{AAX\_PageTableUtilities.h}}
\mbox{\hyperlink{a00530}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{comment}{/*================================================================================================*/}}
\DoxyCodeLine{00002\ \textcolor{comment}{/*}}
\DoxyCodeLine{00003\ \textcolor{comment}{\ *\ \ Copyright\ 2016-\/2017,\ 2023-\/2024\ Avid\ Technology,\ Inc.}}
\DoxyCodeLine{00004\ \textcolor{comment}{\ *\ \ All\ rights\ reserved.}}
\DoxyCodeLine{00005\ \textcolor{comment}{\ *\ \ }}
\DoxyCodeLine{00006\ \textcolor{comment}{\ *\ \ This\ file\ is\ part\ of\ the\ Avid\ AAX\ SDK.}}
\DoxyCodeLine{00007\ \textcolor{comment}{\ *\ \ }}
\DoxyCodeLine{00008\ \textcolor{comment}{\ *\ \ The\ AAX\ SDK\ is\ subject\ to\ commercial\ or\ open-\/source\ licensing.}}
\DoxyCodeLine{00009\ \textcolor{comment}{\ *\ \ }}
\DoxyCodeLine{00010\ \textcolor{comment}{\ *\ \ By\ using\ the\ AAX\ SDK,\ you\ agree\ to\ the\ terms\ of\ both\ the\ Avid\ AAX\ SDK\ License}}
\DoxyCodeLine{00011\ \textcolor{comment}{\ *\ \ Agreement\ and\ Avid\ Privacy\ Policy.}}
\DoxyCodeLine{00012\ \textcolor{comment}{\ *\ \ }}
\DoxyCodeLine{00013\ \textcolor{comment}{\ *\ \ AAX\ SDK\ License:\ https://developer.avid.com/aax}}
\DoxyCodeLine{00014\ \textcolor{comment}{\ *\ \ Privacy\ Policy:\ https://www.avid.com/legal/privacy-\/policy-\/statement}}
\DoxyCodeLine{00015\ \textcolor{comment}{\ *\ \ }}
\DoxyCodeLine{00016\ \textcolor{comment}{\ *\ \ Or:\ You\ may\ also\ use\ this\ code\ under\ the\ terms\ of\ the\ GPL\ v3\ (see}}
\DoxyCodeLine{00017\ \textcolor{comment}{\ *\ \ www.gnu.org/licenses).}}
\DoxyCodeLine{00018\ \textcolor{comment}{\ *\ \ }}
\DoxyCodeLine{00019\ \textcolor{comment}{\ *\ \ THE\ AAX\ SDK\ IS\ PROVIDED\ "{}AS\ IS"{}\ WITHOUT\ ANY\ WARRANTY,\ AND\ ALL\ WARRANTIES,\ WHETHER}}
\DoxyCodeLine{00020\ \textcolor{comment}{\ *\ \ EXPRESSED\ OR\ IMPLIED,\ INCLUDING\ MERCHANTABILITY\ AND\ FITNESS\ FOR\ PURPOSE,\ ARE}}
\DoxyCodeLine{00021\ \textcolor{comment}{\ *\ \ DISCLAIMED.}}
\DoxyCodeLine{00022\ \textcolor{comment}{\ */}}
\DoxyCodeLine{00023\ }
\DoxyCodeLine{00024\ \textcolor{preprocessor}{\#ifndef\ AAXLibrary\_AAX\_PageTableUtilities\_h}}
\DoxyCodeLine{00025\ \textcolor{preprocessor}{\#define\ AAXLibrary\_AAX\_PageTableUtilities\_h}}
\DoxyCodeLine{00026\ }
\DoxyCodeLine{00027\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{a00416}{AAX\_CString.h}}"{}}}
\DoxyCodeLine{00028\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{a00542}{AAX.h}}"{}}}
\DoxyCodeLine{00029\ }
\DoxyCodeLine{00030\ \textcolor{keyword}{namespace\ }\mbox{\hyperlink{a00948}{AAX}}}
\DoxyCodeLine{00031\ \{}
\DoxyCodeLine{00036\ \ \ \ \ \textcolor{keyword}{template}\ <\textcolor{keyword}{class}\ T1,\ \textcolor{keyword}{class}\ T2>}
\DoxyCodeLine{00037\ \ \ \ \ \textcolor{keyword}{inline}\ \textcolor{keywordtype}{bool}\ \mbox{\hyperlink{a00948_a6615318d686a57585ba69565f8e6a99b}{PageTableParameterMappingsAreEqual}}(\textcolor{keyword}{const}\ T1\&\ inL,\ \textcolor{keyword}{const}\ T2\&\ inR)}
\DoxyCodeLine{00038\ \ \ \ \ \{}
\DoxyCodeLine{00039\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{a00542_a4d8f69a697df7f70c3a8e9b8ee130d2f}{AAX\_Result}}\ errL\ =\ \mbox{\hyperlink{a00539_a5f8c7439f3a706c4f8315a9609811937aeddbd1bb67e3a66e6af54a4b4a7a57b3}{AAX\_SUCCESS}};}
\DoxyCodeLine{00040\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{a00542_a4d8f69a697df7f70c3a8e9b8ee130d2f}{AAX\_Result}}\ errR\ =\ \mbox{\hyperlink{a00539_a5f8c7439f3a706c4f8315a9609811937aeddbd1bb67e3a66e6af54a4b4a7a57b3}{AAX\_SUCCESS}};}
\DoxyCodeLine{00041\ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00042\ \ \ \ \ \ \ \ \ int32\_t\ numPagesL\ =\ -\/1;}
\DoxyCodeLine{00043\ \ \ \ \ \ \ \ \ int32\_t\ numPagesR\ =\ -\/1;}
\DoxyCodeLine{00044\ \ \ \ \ \ \ \ \ errL\ =\ inL.GetNumPages(numPagesL);}
\DoxyCodeLine{00045\ \ \ \ \ \ \ \ \ errR\ =\ inR.GetNumPages(numPagesR);}
\DoxyCodeLine{00046\ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00047\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{if}\ (errL\ !=\ errR\ ||\ numPagesL\ !=\ numPagesR)\ \{\ \textcolor{keywordflow}{return}\ \textcolor{keyword}{false};\ \}}
\DoxyCodeLine{00048\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{else}\ \textcolor{keywordflow}{if}\ (\mbox{\hyperlink{a00539_a5f8c7439f3a706c4f8315a9609811937aeddbd1bb67e3a66e6af54a4b4a7a57b3}{AAX\_SUCCESS}}\ !=\ errL)\ \{\ \textcolor{keywordflow}{return}\ \textcolor{keyword}{true};\ \}\ \textcolor{comment}{//\ can't\ get\ page\ data\ from\ either\ table}}
\DoxyCodeLine{00049\ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00050\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{for}\ (int32\_t\ i\ =\ 0;\ i\ <\ numPagesL;\ ++i)}
\DoxyCodeLine{00051\ \ \ \ \ \ \ \ \ \{}
\DoxyCodeLine{00052\ \ \ \ \ \ \ \ \ \ \ \ \ int32\_t\ numParamsL\ =\ -\/1;}
\DoxyCodeLine{00053\ \ \ \ \ \ \ \ \ \ \ \ \ int32\_t\ numParamsR\ =\ -\/1;}
\DoxyCodeLine{00054\ \ \ \ \ \ \ \ \ \ \ \ \ errL\ =\ inL.GetNumMappedParameterIDs(i,\ numParamsL);}
\DoxyCodeLine{00055\ \ \ \ \ \ \ \ \ \ \ \ \ errR\ =\ inR.GetNumMappedParameterIDs(i,\ numParamsR);}
\DoxyCodeLine{00056\ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00057\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{if}\ (errL\ !=\ errR\ ||\ numParamsL\ !=\ numParamsR)\ \{\ \textcolor{keywordflow}{return}\ \textcolor{keyword}{false};\ \}}
\DoxyCodeLine{00058\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{else}\ \textcolor{keywordflow}{if}\ (\mbox{\hyperlink{a00539_a5f8c7439f3a706c4f8315a9609811937aeddbd1bb67e3a66e6af54a4b4a7a57b3}{AAX\_SUCCESS}}\ !=\ errL)\ \{\ \textcolor{keywordflow}{continue};\ \}\ \textcolor{comment}{//\ skip\ this\ page\ if\ equal\ errors\ were\ returned}}
\DoxyCodeLine{00059\ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00060\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{for}\ (int32\_t\ j\ =\ 0;\ j\ <\ numParamsL;\ ++j)}
\DoxyCodeLine{00061\ \ \ \ \ \ \ \ \ \ \ \ \ \{}
\DoxyCodeLine{00062\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{a01946}{AAX\_CString}}\ paramIdentifierL;}
\DoxyCodeLine{00063\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{a01946}{AAX\_CString}}\ paramIdentifierR;}
\DoxyCodeLine{00064\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ errL\ =\ inL.GetMappedParameterID(i,\ j,\ paramIdentifierL);}
\DoxyCodeLine{00065\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ errR\ =\ inR.GetMappedParameterID(i,\ j,\ paramIdentifierR);}
\DoxyCodeLine{00066\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00067\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{if}\ (errL\ !=\ errR\ ||\ paramIdentifierL\ !=\ paramIdentifierR)\ \{\ \textcolor{keywordflow}{return}\ \textcolor{keyword}{false};\ \}}
\DoxyCodeLine{00068\ \ \ \ \ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00069\ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00070\ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00071\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ \textcolor{keyword}{true};}
\DoxyCodeLine{00072\ \ \ \ \ \}}
\DoxyCodeLine{00073\ \ \ \ \ }
\DoxyCodeLine{00074\ \ \ \ \ \textcolor{keyword}{template}\ <\textcolor{keyword}{class}\ T1,\ \textcolor{keyword}{class}\ T2>}
\DoxyCodeLine{00075\ \ \ \ \ \textcolor{keyword}{inline}\ \textcolor{keywordtype}{bool}\ \mbox{\hyperlink{a00948_a2e75756c486e5db4ffa91579bb486a6a}{PageTableParameterNameVariationsAreEqual}}(\textcolor{keyword}{const}\ T1\&\ inL,\ \textcolor{keyword}{const}\ T2\&\ inR)}
\DoxyCodeLine{00076\ \ \ \ \ \{}
\DoxyCodeLine{00077\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{a00542_a4d8f69a697df7f70c3a8e9b8ee130d2f}{AAX\_Result}}\ errL\ =\ \mbox{\hyperlink{a00539_a5f8c7439f3a706c4f8315a9609811937aeddbd1bb67e3a66e6af54a4b4a7a57b3}{AAX\_SUCCESS}};}
\DoxyCodeLine{00078\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{a00542_a4d8f69a697df7f70c3a8e9b8ee130d2f}{AAX\_Result}}\ errR\ =\ \mbox{\hyperlink{a00539_a5f8c7439f3a706c4f8315a9609811937aeddbd1bb67e3a66e6af54a4b4a7a57b3}{AAX\_SUCCESS}};}
\DoxyCodeLine{00079\ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00080\ \ \ \ \ \ \ \ \ int32\_t\ numParamIdentifiersL\ =\ -\/1;}
\DoxyCodeLine{00081\ \ \ \ \ \ \ \ \ int32\_t\ numParamIdentifiersR\ =\ -\/1;}
\DoxyCodeLine{00082\ \ \ \ \ \ \ \ \ errL\ =\ inL.GetNumParametersWithNameVariations(numParamIdentifiersL);}
\DoxyCodeLine{00083\ \ \ \ \ \ \ \ \ errR\ =\ inR.GetNumParametersWithNameVariations(numParamIdentifiersR);}
\DoxyCodeLine{00084\ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00085\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{if}\ (errL\ !=\ errR\ ||\ numParamIdentifiersL\ !=\ numParamIdentifiersR)\ \{\ \textcolor{keywordflow}{return}\ \textcolor{keyword}{false};\ \}}
\DoxyCodeLine{00086\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{else}\ \textcolor{keywordflow}{if}\ (\mbox{\hyperlink{a00539_a5f8c7439f3a706c4f8315a9609811937aeddbd1bb67e3a66e6af54a4b4a7a57b3}{AAX\_SUCCESS}}\ !=\ errL)\ \{\ \textcolor{keywordflow}{return}\ \textcolor{keyword}{true};\ \}\ \textcolor{comment}{//\ can't\ get\ parameter\ name\ variation\ data\ from\ either\ table}}
\DoxyCodeLine{00087\ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00088\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{for}\ (int32\_t\ i\ =\ 0;\ i\ <\ numParamIdentifiersL;\ ++i)}
\DoxyCodeLine{00089\ \ \ \ \ \ \ \ \ \{}
\DoxyCodeLine{00090\ \ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{a01946}{AAX\_CString}}\ paramIdentifierL;}
\DoxyCodeLine{00091\ \ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{a01946}{AAX\_CString}}\ paramIdentifierR;}
\DoxyCodeLine{00092\ \ \ \ \ \ \ \ \ \ \ \ \ errL\ =\ inL.GetNameVariationParameterIDAtIndex(i,\ paramIdentifierL);}
\DoxyCodeLine{00093\ \ \ \ \ \ \ \ \ \ \ \ \ errL\ =\ inR.GetNameVariationParameterIDAtIndex(i,\ paramIdentifierR);}
\DoxyCodeLine{00094\ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00095\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{if}\ (errL\ !=\ errR\ ||\ paramIdentifierL\ !=\ paramIdentifierR)\ \{\ \textcolor{keywordflow}{return}\ \textcolor{keyword}{false};\ \}}
\DoxyCodeLine{00096\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{else}\ \textcolor{keywordflow}{if}\ (\mbox{\hyperlink{a00539_a5f8c7439f3a706c4f8315a9609811937aeddbd1bb67e3a66e6af54a4b4a7a57b3}{AAX\_SUCCESS}}\ !=\ errL)\ \{\ \textcolor{keywordflow}{continue};\ \}\ \textcolor{comment}{//\ skip\ this\ index\ if\ equal\ errors\ were\ returned}}
\DoxyCodeLine{00097\ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00098\ \ \ \ \ \ \ \ \ \ \ \ \ int32\_t\ numVariationsL\ =\ -\/1;}
\DoxyCodeLine{00099\ \ \ \ \ \ \ \ \ \ \ \ \ int32\_t\ numVariationsR\ =\ -\/1;}
\DoxyCodeLine{00100\ \ \ \ \ \ \ \ \ \ \ \ \ errL\ =\ inL.GetNumNameVariationsForParameter(paramIdentifierL.\mbox{\hyperlink{a01946_a8e3d13eeab1496c18f5eb9e5ddc43e13}{Get}}(),\ numVariationsL);}
\DoxyCodeLine{00101\ \ \ \ \ \ \ \ \ \ \ \ \ errL\ =\ inR.GetNumNameVariationsForParameter(paramIdentifierR.\mbox{\hyperlink{a01946_a8e3d13eeab1496c18f5eb9e5ddc43e13}{Get}}(),\ numVariationsR);}
\DoxyCodeLine{00102\ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00103\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{if}\ (errL\ !=\ errR\ ||\ numVariationsL\ !=\ numVariationsR)\ \{\ \textcolor{keywordflow}{return}\ \textcolor{keyword}{false};\ \}}
\DoxyCodeLine{00104\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{else}\ \textcolor{keywordflow}{if}\ (\mbox{\hyperlink{a00539_a5f8c7439f3a706c4f8315a9609811937aeddbd1bb67e3a66e6af54a4b4a7a57b3}{AAX\_SUCCESS}}\ !=\ errL)\ \{\ \textcolor{keywordflow}{continue};\ \}\ \textcolor{comment}{//\ skip\ this\ index\ if\ equal\ errors\ were\ returned}}
\DoxyCodeLine{00105\ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00106\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{for}\ (int32\_t\ j\ =\ 0;\ j\ <\ numVariationsL;\ ++j)}
\DoxyCodeLine{00107\ \ \ \ \ \ \ \ \ \ \ \ \ \{}
\DoxyCodeLine{00108\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{a01946}{AAX\_CString}}\ nameVariationL;}
\DoxyCodeLine{00109\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ int32\_t\ lengthL;}
\DoxyCodeLine{00110\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{a01946}{AAX\_CString}}\ nameVariationR;}
\DoxyCodeLine{00111\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ int32\_t\ lengthR;}
\DoxyCodeLine{00112\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ errL\ =\ inL.GetParameterNameVariationAtIndex(paramIdentifierL.\mbox{\hyperlink{a01946_a8e3d13eeab1496c18f5eb9e5ddc43e13}{Get}}(),\ j,\ nameVariationL,\ lengthL);}
\DoxyCodeLine{00113\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ errR\ =\ inR.GetParameterNameVariationAtIndex(paramIdentifierR.\mbox{\hyperlink{a01946_a8e3d13eeab1496c18f5eb9e5ddc43e13}{Get}}(),\ j,\ nameVariationR,\ lengthR);}
\DoxyCodeLine{00114\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00115\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{if}\ (errL\ !=\ errR\ ||\ lengthL\ !=\ lengthR\ ||\ nameVariationL\ !=\ nameVariationR)\ \{\ \textcolor{keywordflow}{return}\ \textcolor{keyword}{false};\ \}}
\DoxyCodeLine{00116\ \ \ \ \ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00117\ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00118\ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00119\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ \textcolor{keyword}{true};}
\DoxyCodeLine{00120\ \ \ \ \ \}}
\DoxyCodeLine{00121\ \ \ \ \ }
\DoxyCodeLine{00122\ \ \ \ \ \textcolor{keyword}{template}\ <\textcolor{keyword}{class}\ T1,\ \textcolor{keyword}{class}\ T2>}
\DoxyCodeLine{00123\ \ \ \ \ \textcolor{keyword}{inline}\ \textcolor{keywordtype}{bool}\ \mbox{\hyperlink{a00948_a315085bafc0ddf4e7043a69d070da2fb}{PageTablesAreEqual}}(\textcolor{keyword}{const}\ T1\&\ inL,\ \textcolor{keyword}{const}\ T2\&\ inR)}
\DoxyCodeLine{00124\ \ \ \ \ \{}
\DoxyCodeLine{00125\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ (\mbox{\hyperlink{a00948_a6615318d686a57585ba69565f8e6a99b}{PageTableParameterMappingsAreEqual}}(inL,\ inR)\ \&\&\ \mbox{\hyperlink{a00948_a2e75756c486e5db4ffa91579bb486a6a}{PageTableParameterNameVariationsAreEqual}}(inL,\ inR));}
\DoxyCodeLine{00126\ \ \ \ \ \}}
\DoxyCodeLine{00127\ \ \ \ \ }
\DoxyCodeLine{00132\ \ \ \ \ \textcolor{keyword}{template}\ <\textcolor{keyword}{class}\ T>}
\DoxyCodeLine{00133\ \ \ \ \ \textcolor{keyword}{inline}\ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{a00948_a99fe28eb20cfcef49e99710060c5ebe0}{CopyPageTable}}(T\&\ to,\ \textcolor{keyword}{const}\ T\&\ from)}
\DoxyCodeLine{00134\ \ \ \ \ \{}
\DoxyCodeLine{00135\ \ \ \ \ \ \ \ \ to.Clear();}
\DoxyCodeLine{00136\ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00137\ \ \ \ \ \ \ \ \ \textcolor{comment}{//\ Copy\ page\ tables}}
\DoxyCodeLine{00138\ \ \ \ \ \ \ \ \ int32\_t\ curPageIndex;}
\DoxyCodeLine{00139\ \ \ \ \ \ \ \ \ from.GetNumPages(curPageIndex);}
\DoxyCodeLine{00140\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{while}\ (0\ <\ curPageIndex-\/-\/)}
\DoxyCodeLine{00141\ \ \ \ \ \ \ \ \ \{}
\DoxyCodeLine{00142\ \ \ \ \ \ \ \ \ \ \ \ \ to.InsertPage(0);}
\DoxyCodeLine{00143\ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00144\ \ \ \ \ \ \ \ \ \ \ \ \ int32\_t\ numIDsRemaining\ =\ 0;}
\DoxyCodeLine{00145\ \ \ \ \ \ \ \ \ \ \ \ \ from.GetNumMappedParameterIDs(curPageIndex,\ numIDsRemaining);}
\DoxyCodeLine{00146\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{for}\ (int32\_t\ curSlotIndex\ =\ 0;\ 0\ <\ numIDsRemaining;\ ++curSlotIndex)\ \textcolor{comment}{//\ numIDsRemaining\ is\ decremented\ in\ the\ loop\ body}}
\DoxyCodeLine{00147\ \ \ \ \ \ \ \ \ \ \ \ \ \{}
\DoxyCodeLine{00148\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{a01946}{AAX\_CString}}\ curParam;}
\DoxyCodeLine{00149\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keyword}{const}\ \mbox{\hyperlink{a00542_a4d8f69a697df7f70c3a8e9b8ee130d2f}{AAX\_Result}}\ getParamResult\ =\ from.GetMappedParameterID(curPageIndex,\ curSlotIndex,\ curParam);}
\DoxyCodeLine{00150\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{if}\ (\mbox{\hyperlink{a00539_a5f8c7439f3a706c4f8315a9609811937aeddbd1bb67e3a66e6af54a4b4a7a57b3}{AAX\_SUCCESS}}\ ==\ getParamResult)}
\DoxyCodeLine{00151\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \{}
\DoxyCodeLine{00152\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ to.MapParameterID(curParam.\mbox{\hyperlink{a01946_a2c8c7c0cb76899d757dfd315146b4b40}{CString}}(),\ 0,\ curSlotIndex);}
\DoxyCodeLine{00153\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ -\/-\/numIDsRemaining;}
\DoxyCodeLine{00154\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00155\ \ \ \ \ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00156\ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00157\ }
\DoxyCodeLine{00158\ \ \ \ \ \ \ \ \ \textcolor{comment}{//\ Copy\ name\ variations}}
\DoxyCodeLine{00159\ \ \ \ \ \ \ \ \ int32\_t\ numParameterIdentifiers\ =\ 0;}
\DoxyCodeLine{00160\ \ \ \ \ \ \ \ \ to.ClearParameterNameVariations();}
\DoxyCodeLine{00161\ \ \ \ \ \ \ \ \ from.GetNumParametersWithNameVariations(numParameterIdentifiers);}
\DoxyCodeLine{00162\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{for}\ (int32\_t\ curParamIndex\ =\ 0;\ curParamIndex\ <\ numParameterIdentifiers;\ ++curParamIndex)}
\DoxyCodeLine{00163\ \ \ \ \ \ \ \ \ \{}
\DoxyCodeLine{00164\ \ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{a01946}{AAX\_CString}}\ curParamIdentifier;}
\DoxyCodeLine{00165\ \ \ \ \ \ \ \ \ \ \ \ \ from.GetNameVariationParameterIDAtIndex(curParamIndex,\ curParamIdentifier);}
\DoxyCodeLine{00166\ }
\DoxyCodeLine{00167\ \ \ \ \ \ \ \ \ \ \ \ \ int32\_t\ numNameVariations\ =\ 0;}
\DoxyCodeLine{00168\ \ \ \ \ \ \ \ \ \ \ \ \ from.GetNumNameVariationsForParameter(curParamIdentifier.\mbox{\hyperlink{a01946_a8e3d13eeab1496c18f5eb9e5ddc43e13}{Get}}(),\ numNameVariations);}
\DoxyCodeLine{00169\ }
\DoxyCodeLine{00170\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{for}\ (int32\_t\ curNameVariationIndex\ =\ 0;\ curNameVariationIndex\ <\ numNameVariations;\ ++curNameVariationIndex)}
\DoxyCodeLine{00171\ \ \ \ \ \ \ \ \ \ \ \ \ \{}
\DoxyCodeLine{00172\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ int32\_t\ curNameVariationLength;}
\DoxyCodeLine{00173\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{a01946}{AAX\_CString}}\ curNameVariation;}
\DoxyCodeLine{00174\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ from.GetParameterNameVariationAtIndex(curParamIdentifier.\mbox{\hyperlink{a01946_a8e3d13eeab1496c18f5eb9e5ddc43e13}{Get}}(),\ curNameVariationIndex,\ curNameVariation,\ curNameVariationLength);}
\DoxyCodeLine{00175\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ to.SetParameterNameVariation(curParamIdentifier.\mbox{\hyperlink{a01946_a8e3d13eeab1496c18f5eb9e5ddc43e13}{Get}}(),\ curNameVariation,\ curNameVariationLength);}
\DoxyCodeLine{00176\ \ \ \ \ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00177\ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00178\ \ \ \ \ \}}
\DoxyCodeLine{00179\ \ \ \ \ }
\DoxyCodeLine{00186\ \ \ \ \ \textcolor{keyword}{template}\ <\textcolor{keyword}{class}\ T>}
\DoxyCodeLine{00187\ \ \ \ \ \textcolor{keyword}{inline}\ std::vector<std::pair<int32\_t,\ int32\_t>\ >\ \mbox{\hyperlink{a00948_a1371028e109ce67ef9a17fc23c22a4af}{FindParameterMappingsInPageTable}}(\textcolor{keyword}{const}\ T\&\ inTable,\ \mbox{\hyperlink{a00542_a1440c756fe5cb158b78193b2fc1780d1}{AAX\_CParamID}}\ inParameterID)}
\DoxyCodeLine{00188\ \ \ \ \ \{}
\DoxyCodeLine{00189\ \ \ \ \ \ \ \ \ \textcolor{keyword}{const}\ \mbox{\hyperlink{a01946}{AAX\_CString}}\ searchParamID(inParameterID);}
\DoxyCodeLine{00190\ \ \ \ \ \ \ \ \ std::vector<std::pair<int32\_t,\ int32\_t>\ >\ foundParamMappings;}
\DoxyCodeLine{00191\ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00192\ \ \ \ \ \ \ \ \ int32\_t\ numPages\ =\ 0;}
\DoxyCodeLine{00193\ \ \ \ \ \ \ \ \ inTable.GetNumPages(numPages);}
\DoxyCodeLine{00194\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{for}\ (int32\_t\ i\ =\ 0;\ i\ <\ numPages;\ ++i)}
\DoxyCodeLine{00195\ \ \ \ \ \ \ \ \ \{}
\DoxyCodeLine{00196\ \ \ \ \ \ \ \ \ \ \ \ \ int32\_t\ numIDsRemaining\ =\ 0;}
\DoxyCodeLine{00197\ \ \ \ \ \ \ \ \ \ \ \ \ inTable.GetNumMappedParameterIDs(i,\ numIDsRemaining);}
\DoxyCodeLine{00198\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{for}\ (int32\_t\ curSlotIndex\ =\ 0;\ 0\ <\ numIDsRemaining;\ ++curSlotIndex)\ \textcolor{comment}{//\ numIDs\ is\ decremented\ in\ the\ loop\ body}}
\DoxyCodeLine{00199\ \ \ \ \ \ \ \ \ \ \ \ \ \{}
\DoxyCodeLine{00200\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{a01946}{AAX\_CString}}\ curParam;}
\DoxyCodeLine{00201\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keyword}{const}\ \mbox{\hyperlink{a00542_a4d8f69a697df7f70c3a8e9b8ee130d2f}{AAX\_Result}}\ getParamResult\ =\ inTable.GetMappedParameterID(i,\ curSlotIndex,\ curParam);}
\DoxyCodeLine{00202\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{if}\ (\mbox{\hyperlink{a00539_a5f8c7439f3a706c4f8315a9609811937aeddbd1bb67e3a66e6af54a4b4a7a57b3}{AAX\_SUCCESS}}\ ==\ getParamResult)}
\DoxyCodeLine{00203\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \{}
\DoxyCodeLine{00204\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{if}\ (searchParamID\ ==\ curParam)}
\DoxyCodeLine{00205\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \{}
\DoxyCodeLine{00206\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ foundParamMappings.push\_back(std::make\_pair(i,\ curSlotIndex));}
\DoxyCodeLine{00207\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00208\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00209\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ -\/-\/numIDsRemaining;}
\DoxyCodeLine{00210\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00211\ \ \ \ \ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00212\ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00213\ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00214\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ foundParamMappings;}
\DoxyCodeLine{00215\ \ \ \ \ \}}
\DoxyCodeLine{00216\ \ \ \ \ }
\DoxyCodeLine{00221\ \ \ \ \ \textcolor{keyword}{template}\ <\textcolor{keyword}{class}\ T>}
\DoxyCodeLine{00222\ \ \ \ \ \textcolor{keyword}{inline}\ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{a00948_ae583643c21c696c4d094a500b4e6d77e}{ClearMappedParameterByID}}(T\&\ ioTable,\ \mbox{\hyperlink{a00542_a1440c756fe5cb158b78193b2fc1780d1}{AAX\_CParamID}}\ inParameterID)}
\DoxyCodeLine{00223\ \ \ \ \ \{}
\DoxyCodeLine{00224\ \ \ \ \ \ \ \ \ \textcolor{keyword}{const}\ \textcolor{keyword}{auto}\ paramMappings(\mbox{\hyperlink{a00948_a1371028e109ce67ef9a17fc23c22a4af}{AAX::FindParameterMappingsInPageTable}}(ioTable,\ inParameterID));}
\DoxyCodeLine{00225\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{for}\ (\textcolor{keyword}{const}\ \textcolor{keyword}{auto}\&\ locationPair\ :\ paramMappings)}
\DoxyCodeLine{00226\ \ \ \ \ \ \ \ \ \{}
\DoxyCodeLine{00227\ \ \ \ \ \ \ \ \ \ \ \ \ ioTable.ClearMappedParameter(locationPair.first,\ locationPair.second);}
\DoxyCodeLine{00228\ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00229\ \ \ \ \ \}}
\DoxyCodeLine{00230\ \}}
\DoxyCodeLine{00231\ }
\DoxyCodeLine{00232\ \textcolor{preprocessor}{\#endif}}

\end{DoxyCode}
