MCPcopy Create free account
hub / github.com/anjo76/angelscript / GetSubTypeId

Method GetSubTypeId

sdk/angelscript/source/as_objecttype.cpp:187–197  ·  view source on GitHub ↗

interface

Source from the content-addressed store, hash-verified

185
186// interface
187int asCObjectType::GetSubTypeId(asUINT subtypeIndex) const
188{
189 // This method is only supported for templates and template specializations
190 if( templateSubTypes.GetLength() == 0 )
191 return asERROR;
192
193 if( subtypeIndex >= templateSubTypes.GetLength() )
194 return asINVALID_ARG;
195
196 return engine->GetTypeIdFromDataType(templateSubTypes[subtypeIndex]);
197}
198
199// interface
200asITypeInfo *asCObjectType::GetSubType(asUINT subtypeIndex) const

Callers 6

CScriptArrayMethod · 0.45
PrecacheMethod · 0.45
CScriptGridMethod · 0.45

Calls 2

GetTypeIdFromDataTypeMethod · 0.80
GetLengthMethod · 0.45

Tested by

no test coverage detected