constraint< std::vector<T>> - constraint< std::vector<T>> - 2026.1 English - UG1603

AI Engine-ML Kernel and Graph Programming Guide (UG1603)

Document ID
UG1603
Release Date
2026-07-08
Version
2026.1 English

Use this template class to build vector data constraints on kernels, connections, and ports.

Scope

Constraint must appear inside a graph constructor.

Member Function

constraint<std::vector<T> > operator=(std::vector<T>)

Constraint must appear inside a graph constructor.

Constructors

The default constructor is not used. Instead the following special constructors are used with specific meaning.

constraint <std::vector<std::string > >& headers (kernel&)

This constraint allows you to specify a set of header files for a kernel that define objects to be shared with other kernels and hence have to be included one time in the corresponding main program. The kernel source file would instead include an extern declaration for that object.