class EE::AllocatedPointer

Overview

#include <memorymanager.hpp>

class AllocatedPointer {
public:
    // fields

    const char* mFile;
    int mLine;
    size_t mMemory;
    void* mData;
    bool mTrack;
    bool mGlobalAllocation;

    // construction

    AllocatedPointer(void* data, const char* file, int line, size_t memory, bool track = false, bool globalAllocation = false);
};

Detailed Documentation

Construction

AllocatedPointer(void* data, const char* file, int line, size_t memory, bool track = false, bool globalAllocation = false)

file must have static storage duration. All memory-manager entry points pass FILE or a string literal, so retaining the pointer avoids allocating bookkeeping strings.