\subsection{Indexing with simultaneous component and global restrictions} \label{sec:restricted-indexing} The preceding oracle construction also handles restrictions whose simultaneous imposition is not covered by the linear-delay enumeration theorem. The result below is a generating-function composition consequence, for which no priority claim is made. Its order is specified explicitly and differs from both the unrestricted indexing order above and the DPT reverse-search order. The additional idea is an inclusion--exclusion with only two terms. To enforce a maximum height \emph{exactly} $H$, count objects of height at most $H$ and subtract those of height less than $H$. During unranking, one bit records whether a height-$H$ component is still required. For example, after selecting a component of height $H$, the remaining components need only satisfy the upper bound; retaining the exact-height requirement would incorrectly insist on a second such component. All counts in a subtraction must use the same alphabet order and the same threshold. The proof spells this out for periodic cycles as well as for multisets. \begin{theorem} Let $P\subseteq\{1,\ldots,n\}\times\{0,\ldots,n-1\}$ be given by its membership table. The isomorphism classes of nonempty functional digraphs with $n$ vertices, exactly $K$ cyclic vertices, exactly $m$ components, maximum depth exactly $H$, and $(k,h)\in P$ for every component of cycle length $k$ and depth $h$, admit counting, ranking, and unranking in polynomial bit time and polynomial space. The ranking order is the parameter-first recursive order defined below. In particular, this gives polynomial-delay enumeration of the class, and exact uniform sampling in expected polynomial bit time using fair random bits. \end{theorem} \begin{proof} We construct three tables in dependency order: height-refined rooted trees, cycle/depth-refined components, and multisets of components with global resource totals. Only the last stage has three additive resources, namely vertices, cyclic vertices, and components. Their number is fixed, so truncated multivariate coefficient arrays are polynomial in $n$. First order rooted trees by $(i,h,r)$, where $i$ is their size, $h$ their exact height, and $r$ their recursively defined rank within that parameter class. Write $t_{i,h}$ for the class size. The initial value is $t_{1,0}=1$, and other height-zero counts vanish. For $h\geq1$, \[ t_{i,h}=[z^{i-1}]\left( \prod_{\substack{j