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

Method createObject

Engine/source/core/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 6

creator.ed.csFile · 0.80
creator.ed.csFile · 0.80
addNodeMethod · 0.80
addFieldMethod · 0.80
createFieldMethod · 0.80
addNodeMethod · 0.80

Calls 3

sizeMethod · 0.45
backMethod · 0.45
pop_backMethod · 0.45

Tested by

no test coverage detected