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

Method GetPropertyDeclaration

sdk/angelscript/source/as_objecttype.cpp:371–388  ·  view source on GitHub ↗

interface

Source from the content-addressed store, hash-verified

369
370// interface
371const char *asCObjectType::GetPropertyDeclaration(asUINT index, bool includeNamespace) const
372{
373 if( index >= properties.GetLength() )
374 return 0;
375
376 asCString *tempString = &asCThreadManager::GetLocalData()->string;
377 if( properties[index]->isPrivate )
378 *tempString = "private ";
379 else if( properties[index]->isProtected )
380 *tempString = "protected ";
381 else
382 *tempString = "";
383 *tempString += properties[index]->type.Format(nameSpace, includeNamespace);
384 *tempString += " ";
385 *tempString += properties[index]->name;
386
387 return tempString->AddressOf();
388}
389
390asITypeInfo *asCObjectType::GetBaseType() const
391{

Callers 4

ifFunction · 0.45
WriteMethod · 0.45
DumpObjectTypeFunction · 0.45

Calls 3

GetLengthMethod · 0.45
FormatMethod · 0.45
AddressOfMethod · 0.45

Tested by 1

DumpObjectTypeFunction · 0.36