MCPcopy Create free account
hub / github.com/GarageGames/Torque2D / createObject

Method createObject

engine/source/memory/factoryCache.h:53–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51 }
52
53 T* createObject( void )
54 {
55 // Create a new object if cache is empty.
56 if ( this->size() == 0 )
57 return new T();
58
59 // Return a cached object.
60 T* pObject = this->back();
61 this->pop_back();
62 return pObject;
63 }
64
65 void cacheObject( T* pObject )
66 {

Callers 7

createRenderRequestMethod · 0.80
sceneRenderMethod · 0.80
createSpriteMethod · 0.80
addNodeMethod · 0.80
addFieldMethod · 0.80
createFieldMethod · 0.80
addNodeMethod · 0.80

Calls 2

pop_backMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected