momemta::ArgDef Struct Reference

Defines an input / output. More...

#include <ModuleDef.h>

Detailed Description

Defines an input / output.

Definition at line 40 of file ModuleDef.h.

Public Attributes

std::string name
 
std::string default_value
 Only meaningful for inputs.
 
bool optional
 Only meaningful for inputs.
 
bool many
 Only meaningful for inputs. If True, this input points to a list instead of a single value.
 
std::vector< AttrDefnested_attributes
 

Member Data Documentation

◆ nested_attributes

std::vector<AttrDef> momemta::ArgDef::nested_attributes

If not empty, this input is nested inside attributes. The order in this list is the nesting order

Example: Suppose an input 'attr/nested_attr/input=module::output'. nested_attributes will be filled with definitions of attr and nested_attr, in this order.

Note
Only meaningful for inputs

Definition at line 55 of file ModuleDef.h.


The documentation for this struct was generated from the following file: