OCCT3D OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    Standard_DefineAlloc.hxx File Reference

    Macros

    #define DEFINE_STANDARD_ALLOC_ARRAY
    #define DEFINE_STANDARD_ALLOC_PLACEMENT
    #define DEFINE_STANDARD_ALLOC
    #define WORKAROUND_SUNPRO_NEW_PLACEMENT
    #define STANDARD_ALIGNED(theAlignment, theType, theVar)
     Declare variable with memory alignment.

    Macro Definition Documentation

    ◆ DEFINE_STANDARD_ALLOC

    #define DEFINE_STANDARD_ALLOC
    Value:
    void* operator new(size_t theSize) \
    { \
    return Standard::Allocate(theSize); \
    } \
    void operator delete(void* theAddress) \
    { \
    Standard::Free(theAddress); \
    } \
    DEFINE_STANDARD_ALLOC_ARRAY \
    DEFINE_STANDARD_ALLOC_PLACEMENT
    static void * Allocate(const size_t theSize)
    Allocates memory blocks theSize - bytes to allocate.

    ◆ DEFINE_STANDARD_ALLOC_ARRAY

    #define DEFINE_STANDARD_ALLOC_ARRAY
    Value:
    void* operator new[](size_t theSize) \
    { \
    return Standard::Allocate(theSize); \
    } \
    void operator delete[](void* theAddress) \
    { \
    Standard::Free(theAddress); \
    }

    ◆ DEFINE_STANDARD_ALLOC_PLACEMENT

    #define DEFINE_STANDARD_ALLOC_PLACEMENT
    Value:
    void* operator new(size_t, void* theAddress) noexcept \
    { \
    return theAddress; \
    } \
    void operator delete(void*, void*) noexcept {}

    ◆ STANDARD_ALIGNED

    #define STANDARD_ALIGNED ( theAlignment,
    theType,
    theVar )
    Value:
    theType theVar

    Declare variable with memory alignment.

    static const STANDARD_ALIGNED(8, char, THE_ARRAY)[] = {0xFF, 0xFE, 0xFA, 0xFB, 0xFF, 0x11,
    0x22, 0x33};
    #define STANDARD_ALIGNED(theAlignment, theType, theVar)
    Declare variable with memory alignment.
    Definition Standard_DefineAlloc.hxx:90

    ◆ WORKAROUND_SUNPRO_NEW_PLACEMENT

    #define WORKAROUND_SUNPRO_NEW_PLACEMENT