class NCVMemNativeAllocator

NCVMemNativeAllocator

#include <NCV.hpp>

class NCVMemNativeAllocator: public INCVMemAllocator
{
public:
    // construction

    NCVMemNativeAllocator(
        NCVMemoryType memT,
        Ncv32u alignment
        );

    // methods

    virtual
    Ncv32u
    alignment(void) const;

    virtual
    NCVStatus
    alloc(
        NCVMemSegment& seg,
        size_t size
        );

    virtual
    NCVStatus
    dealloc(NCVMemSegment& seg);

    virtual
    NcvBool
    isCounting(void) const;

    virtual
    NcvBool
    isInitialized(void) const;

    virtual
    size_t
    maxSize(void) const;

    virtual
    NCVMemoryType
    memType(void) const;
};

Inherited Members

public:
    // methods

    virtual
    Ncv32u
    alignment(void) const = 0;

    virtual
    NCVStatus
    alloc(
        NCVMemSegment& seg,
        size_t size
        ) = 0;

    virtual
    NCVStatus
    dealloc(NCVMemSegment& seg) = 0;

    virtual
    NcvBool
    isCounting(void) const = 0;

    virtual
    NcvBool
    isInitialized(void) const = 0;

    virtual
    size_t
    maxSize(void) const = 0;

    virtual
    NCVMemoryType
    memType(void) const = 0;