Browse Source

- Exposed the object count for FrameTemp<T>.

MelvMay-GG 12 years ago
parent
commit
01ab6b2
1 changed files with 3 additions and 0 deletions
  1. 3 0
      engine/source/memory/frameAllocator.h

+ 3 - 0
engine/source/memory/frameAllocator.h

@@ -254,6 +254,8 @@ public:
       FrameAllocator::setWaterMark( mWaterMark );
    }
 
+   U32 getObjectCount( void ) const { return mNumObjectsInMemory; }
+
    /// NOTE: This will return the memory, NOT perform a ones-complement
    T* operator ~() { return mMemory; };
    /// NOTE: This will return the memory, NOT perform a ones-complement
@@ -279,6 +281,7 @@ public:
    operator T() { return *mMemory; }
    operator const T() const { return *mMemory; }
 
+
    // This ifdef is to satisfy the ever so pedantic GCC compiler
    //  Which seems to upset visual studio.
    T& operator[]( const U32 idx ) { return mMemory[idx]; }