MCPcopy Create free account
hub / github.com/bwapi/bwapi / c_str

Method c_str

bwapi/include/BWAPI/Type.h:110–113  ·  view source on GitHub ↗

Retrieves the variable name of the type as a c-style string. Meant to be a convenience member. @returns Pointer to constant c-style string containing the name.

Source from the content-addressed store, hash-verified

108 ///
109 /// @returns Pointer to constant c-style string containing the name.
110 inline const char *c_str() const
111 {
112 return this->getName().c_str();
113 };
114
115 /// <summary>Output stream operator overload.</summary> Allows printing of the type without
116 /// calling Type::getName.

Callers 15

executeMethod · 0.80
executeMethod · 0.80
onStartMethod · 0.80
onFrameMethod · 0.80
onSendTextMethod · 0.80
CFileMethod · 0.80
openMethod · 0.80
CArchiveMethod · 0.80
openMethod · 0.80
updateMethod · 0.80
initializeAIModuleMethod · 0.80

Calls 1

getNameMethod · 0.45

Tested by 15

onFrameMethod · 0.64
onStartMethod · 0.64
startMethod · 0.64
updateMethod · 0.64
onStartMethod · 0.64
updateMethod · 0.64
startMethod · 0.64
updateMethod · 0.64
onFrameMethod · 0.64
onUnitCreateMethod · 0.64
onUnitDestroyMethod · 0.64
updateMethod · 0.64