40 const std::vector<std::string>& templates,
41 const std::vector<std::string>& templateInstantiations,
42 const std::map<std::string, aron::type::VariantPtr>& memberTypes,
43 const std::optional<aron::type::VariantPtr>& extends,
44 const type::Maybe maybe,
47 auto o = std::make_shared<type::Object>(p);
48 o->setObjectName(name);
49 o->setTemplates(templates);
50 o->setTemplateInstantiations(templateInstantiations);
51 o->setMemberTypes(memberTypes);
53 if (extends.has_value())
63 const type::Maybe maybe,
66 auto o = std::make_shared<type::List>(p);
67 o->setAcceptedType(acceptedType);
74 const type::Maybe maybe,
77 auto o = std::make_shared<type::Dict>(p);
78 o->setAcceptedType(acceptedType);
86 const type::Maybe maybe,
89 auto o = std::make_shared<type::Pair>(p);
90 o->setFirstAcceptedType(acceptedType1);
91 o->setSecondAcceptedType(acceptedType2);
98 const type::Maybe maybe,
101 auto o = std::make_shared<type::Tuple>(p);
102 o->setAcceptedTypes(acceptedTypes);
110 const std::string& defaultValue,
111 const type::Maybe maybe,
114 auto o = std::make_shared<type::NDArray>(p);
116 o->setElementType(type);
117 o->setDefaultValue(defaultValue);
125 const std::string& defaultValue,
126 const type::Maybe maybe,
129 auto o = std::make_shared<type::Matrix>(p);
133 o->setElementType(type);
134 o->setDefaultValue(defaultValue);
140 const std::string& defaultValue,
141 const type::Maybe maybe,
144 auto o = std::make_shared<type::Quaternion>(p);
146 o->setElementType(type);
147 o->setDefaultValue(defaultValue);
153 const std::string& defaultValue,
154 const type::Maybe maybe,
157 auto o = std::make_shared<type::Image>(p);
159 o->setPixelType(type);
160 o->setDefaultValue(defaultValue);
166 const std::string& defaultValue,
167 const type::Maybe maybe,
170 auto o = std::make_shared<type::PointCloud>(p);
172 o->setVoxelType(type);
173 o->setDefaultValue(defaultValue);
179 const std::map<std::string, int>& acceptedValues,
180 const std::string& defaultValue,
181 const type::Maybe maybe,
184 auto o = std::make_shared<type::IntEnum>(p);
185 o->setEnumName(name);
186 o->setAcceptedValueMap(acceptedValues);
187 o->setDefaultValueName(defaultValue);
194 const type::Maybe maybe,
197 auto o = std::make_shared<type::Int>(p);
198 o->setDefaultValue(defaultValue);
205 const type::Maybe maybe,
208 auto o = std::make_shared<type::Long>(p);
209 o->setDefaultValue(defaultValue);
216 const type::Maybe maybe,
219 auto o = std::make_shared<type::Float>(p);
220 o->setDefaultValue(defaultValue);
227 const type::Maybe maybe,
230 auto o = std::make_shared<type::Double>(p);
231 o->setDefaultValue(defaultValue);
238 const type::Maybe maybe,
241 auto o = std::make_shared<type::String>(p);
242 o->setDefaultValue(defaultValue);
249 const type::Maybe maybe,
252 auto o = std::make_shared<type::Bool>(p);
254 o->setDefaultValue(defaultValue);
261 auto o = std::make_shared<type::AnyObject>(p);