Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)

Enlighten API 3.10 Documentation
Results will update as you type.
  • class Geo GeoBufferedInputStream
  • class Geo GeoCriticalSection
  • class Geo GeoDebugAllocator
  • class Geo GeoDelegateDestructor
  • class Geo GeoDeleteArrayDestructor
  • class Geo GeoDeleteDestructor
  • class Geo GeoDepthCubeMap
  • class Geo GeoEmbreeContext
  • class Geo GeoEqualCString
  • class Geo GeoEvent
  • class Geo GeoFileManager
  • class Geo GeoFileStream
  • class Geo GeoFixedBinarySearchMap
  • class Geo GeoFixedBinarySearchMapCompare
  • class Geo GeoFixedPoolAllocator
  • class Geo GeoFixedString
  • class Geo GeoFlattenAndPackResults
  • class Geo GeoFp16Texture
  • class Geo GeoFpControl
  • class Geo GeoFrameTime
  • class Geo GeoFreeDestructor
  • class Geo GeoGenericTexture
  • class Geo GeoGuid
  • class Geo GeoHalf
  • class Geo GeoHashConstHandle
  • class Geo GeoHashCString
  • class Geo GeoHashDefault
  • class Geo GeoHashHandle
  • class Geo GeoHashMap
  • class Geo GeoHashString
  • class Geo GeoImmutableArray
  • class Geo GeoInputEvent
  • class Geo GeoInstanceCount
  • class Geo GeoIntRange
  • class Geo GeoIntrusivePtr
  • class Geo GeoKeyValueArray
  • class Geo GeoLineSegment
  • class Geo GeoList
  • class Geo GeoMap
  • class Geo GeoMemoryDefault
  • class Geo GeoMemoryPool
  • class Geo GeoMemoryStream
  • class Geo GeoNonAABoundingBox
  • class Geo GeoNoopDestructor
  • class Geo GeoPair
  • class Geo GeoParametrisedPlane3
  • class Geo GeoPriorityQueue
  • class Geo GeoProgress
  • class Geo GeoQueue
  • class Geo GeoQueueEnumInterface
  • class Geo GeoRefArrayPtr
  • class Geo GeoRefCount
  • class Geo GeoRefPtr
  • class Geo GeoRefReleasePtr
  • class Geo GeoReleaseDestructor
  • class Geo GeoRGBXTexture
  • class Geo GeoScopedCSection
  • class Geo GeoSingleton
  • class Geo GeoSpatialHash
  • class Geo GeoString
  • class Geo GeoTimer
  • class Geo GeoTokenList
  • class Geo GeoTokenStream
  • class Geo GeoTriangle
  • class Geo GeoTriple
  • class Geo GeoUniqueDelegatePtr
  • class Geo GeoUniquePtr
  • class Geo GeoUniqueReleasePtr
  • class Geo GeoV128Texture
  • class Geo GeoVariant
  • class Geo GeoVirtualPageAllocator
  • class Geo GeoZLibFileStream
  • class Geo GoodRNG
  • class Geo IdentDataCompare
  • class Geo IdentVertLinkBuilder
  • class Geo IdxLink
  • class Geo IffReader
  • class Geo IffTextWriter
  • class Geo IffWriter
  • class Geo IGeoEvent
  • class Geo IGeoInputStream
    Calendars

You‘re viewing this with anonymous access, so some content might be blocked.
/
class Geo GeoMemoryPool

    This is the documentation for Enlighten.

    class Geo GeoMemoryPool

    Nov 21, 2019

    template<class T>
    class Geo::GeoMemoryPool

    A memory pool.

    Variables

    Name Description
    const u32 MemoryAlignment = GEO_ALIGN_OF(T) > GEO_ALIGN_OF(Geo::u32) ? GEO_ALIGN_OF(T) : GEO_ALIGN_OF(Geo::u32)

    The required memory alignment.

    Functions

    Name Description
    Allocate()

    Allocate object.

    AllocateIndex()

    Returns the index of a newly allocated object within the pool.

    CalculateSize(Geo::u32)

    Calculate required memory size.

    Deallocate(T *)

    Deallocate object.

    DeallocateIndex(Geo::u32)

    Deallocates the object at the specified index within the pool.

    GeoMemoryPool(void *, Geo::u32)

    Create a memory pool.

    GetIndex(const T *)

    Returns the index of the specified object within the pool.

    GetObject(Geo::u32)

    Returns the object at the specified index within the pool.

    IsEmpty()

    Returns true if no more blocks can be allocated.


    T* Geo::GeoMemoryPool< T >::Allocate


    public: T * Allocate()


    Allocate object.


    Geo::u32 Geo::GeoMemoryPool< T >::AllocateIndex


    public: Geo::u32 AllocateIndex()


    Returns the index of a newly allocated object within the pool.


    static Geo::u32 Geo::GeoMemoryPool< T >::CalculateSize


    public: Geo::u32 CalculateSize
    (
        Geo::u32 count
    )


    Calculate required memory size.

    Parameters
    [in] count

    The maximum number of objects the memory pool can allocate.


    void Geo::GeoMemoryPool< T >::Deallocate


    public: void Deallocate
    (
        T * ptr
    )


    Deallocate object.


    void Geo::GeoMemoryPool< T >::DeallocateIndex


    public: void DeallocateIndex
    (
        Geo::u32 index
    )


    Deallocates the object at the specified index within the pool.


    Geo::GeoMemoryPool< T >::GeoMemoryPool


    public: GeoMemoryPool
    (
        void * memory,
        Geo::u32 count
    )


    Create a memory pool.

    Parameters
    [in] memory

    The start of the allocated memory space.

    [in] count

    The maximum number of objects the memory pool can allocate.


    Geo::u32 Geo::GeoMemoryPool< T >::GetIndex


    public: Geo::u32 GetIndex
    (
        const T * ptr
    ) const


    Returns the index of the specified object within the pool.


    T* Geo::GeoMemoryPool< T >::GetObject


    public: T * GetObject
    (
        Geo::u32 index
    ) const


    Returns the object at the specified index within the pool.


    bool Geo::GeoMemoryPool< T >::IsEmpty


    public: bool IsEmpty() const


    Returns true if no more blocks can be allocated.

    , multiple selections available,
    {"serverDuration": 9, "requestCorrelationId": "fe29889956c74daea64144b16db15be2"}