.. index:: pair: class; EE::AllocatedPointer .. _doxid-class_e_e_1_1_allocated_pointer: class EE::AllocatedPointer ========================== .. toctree:: :hidden: Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class AllocatedPointer { public: // fields const char* :target:`mFile`; int :target:`mLine`; size_t :target:`mMemory`; void* :target:`mData`; bool :target:`mTrack`; bool :target:`mGlobalAllocation`; // construction :ref:`AllocatedPointer`(void* data, const char* file, int line, size_t memory, bool track = false, bool globalAllocation = false); }; .. _details-class_e_e_1_1_allocated_pointer: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Construction ------------ .. index:: pair: function; AllocatedPointer .. _doxid-class_e_e_1_1_allocated_pointer_1ac94e18019d62821719f6d540931dc18a: .. ref-code-block:: cpp :class: doxyrest-title-code-block 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.