MCPcopy Create free account
hub / github.com/Autodesk/AutomaticComponentToolkit / DecRefCountMethod

Function DecRefCountMethod

Source/componentdefinition.go:1197–1204  ·  view source on GitHub ↗

DecRefCountMethod returns the xml definition of the DecRefCount-method

()

Source from the content-addressed store, hash-verified

1195
1196// DecRefCountMethod returns the xml definition of the DecRefCount-method
1197func DecRefCountMethod() (ComponentDefinitionMethod) {
1198 var method ComponentDefinitionMethod
1199 source := `<method name="DecRefCount" description = "Decreases the reference count of a class instance and free releases it, if the last reference has been removed">
1200 <param name="HasBeenReleased" type="bool" pass="return" description="Has the object been released" />
1201 </method>`
1202 xml.Unmarshal([]byte(source), &method)
1203 return method
1204}
1205
1206// ReleaseBaseClassInterfaceMethod returns the xml definition of a method that should decrease the reference count of a BaseClass interface.
1207func ReleaseBaseClassInterfaceMethod(baseClassName string) (ComponentDefinitionMethod) {

Callers 4

writeCPPClassInterfaceFunction · 0.85
buildCPPStubClassFunction · 0.85
buildPascalStubFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected