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.
  • Modules
  • Namespaces
    • namespace Enlighten
    • namespace Geo
      • class Geo AbstractRayChunk
      • class Geo AnsiAllocator
      • class Geo AtlasMesh
      • class Geo AtlasMeshChart
      • class Geo AtlasMeshPackingFlags
      • class Geo BasicAllocator
      • class Geo ChartParametiserFailure
      • class Geo ConvexHull
      • class Geo ConvexHullBuilder
      • class Geo CovarianceMatrix
      • class Geo CovarianceMatrixBuilder
      • class Geo EmbreeRtMeshVisitor
      • class Geo Geo2DTransform
      • class Geo GeoAlignedFreeDestructor
      • class Geo GeoAllocationPage
      • class Geo GeoAllocator
      • class Geo GeoAllocatorUnchecked
      • class Geo GeoArray
      • class Geo GeoArray_Stl
      • class Geo GeoAutoArrayPtr
      • class Geo GeoAutoDeleteArray
      • class Geo GeoAutoDeleteList
      • class Geo GeoAutoDeleteMap
      • class Geo GeoAutoPtr
      • class Geo GeoAutoReleaseArray
      • class Geo GeoAutoReleaseMap
      • class Geo GeoAutoReleasePtr
      • class Geo GeoBitArray
      • class Geo GeoBitStore
      • class Geo GeoBlueNoise
      • class Geo GeoBlueNoiseDiskPalette
      • class Geo GeoBlueNoiseRayPalette
      • class Geo GeoBoundingBox
      • class Geo GeoBoundingSphere
      • class Geo GeoBufferedFileStream
      • 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
    Calendars

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

    This is the documentation for Enlighten.

    class Geo GeoAllocationPage

    Nov 21, 2019

    class Geo::GeoAllocationPage

    A storage unit for a page based allocation system.

    Despite looking like a std::allocator, you cannot fully implement an allocator using this kind of class alone (as allocators do not have state, and clearly, a page has state). As a result, this class is used by the GeoFixedPoolAllocator class, which is a std::allocator.

    Note

    This class knows nothing of the types of object that it may be storing, it is just raw memory. Hence no constructors or destructors are called, that is the responsibility of the allocator.

    Typedefs

    Name Description
    Geo::s32 TIndexer

    The indexing type for the pool.

    Functions

    Name Description
    Allocate()

    Assign a slot in this pool, and return a pointer to it.

    Create(size_t, TIndexer)

    Create a pool big enough to hold maxObjects, of size objectSize.

    Deallocate(void *)

    Release a single slot back to the pool.

    Destroy()

    Free the contents of the pool.

    MaxObjects()

    Returns maximum number of objects that can be held.


    void* Geo::GeoAllocationPage::Allocate


    public: void * Allocate()


    Assign a slot in this pool, and return a pointer to it.


    bool Geo::GeoAllocationPage::Create


    public: bool Create
    (
        size_t objectSize,
        TIndexer maxObjects
    )


    Create a pool big enough to hold maxObjects, of size objectSize.


    void Geo::GeoAllocationPage::Deallocate


    public: void Deallocate
    (
        void * pStorage
    )


    Release a single slot back to the pool.


    void Geo::GeoAllocationPage::Destroy


    public: void Destroy()


    Free the contents of the pool.


    TIndexer Geo::GeoAllocationPage::MaxObjects


    public: TIndexer MaxObjects() const


    Returns maximum number of objects that can be held.

    , multiple selections available,
    {"serverDuration": 9, "requestCorrelationId": "1c38c4652ef44fde92e260ddf7ba0bfe"}