0023948: Wrong intersection between a surface of revolution and a plane.
[occt.git] / src / Standard / Standard_MMgrRaw.hxx
CommitLineData
b311480e 1// Created on: 2005-03-15
2// Created by: Peter KURNEV
973c2be1 3// Copyright (c) 2005-2014 OPEN CASCADE SAS
b311480e 4//
973c2be1 5// This file is part of Open CASCADE Technology software library.
b311480e 6//
d5f74e42 7// This library is free software; you can redistribute it and/or modify it under
8// the terms of the GNU Lesser General Public License version 2.1 as published
973c2be1 9// by the Free Software Foundation, with special exception defined in the file
10// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11// distribution for complete text of the license and disclaimer of any warranty.
b311480e 12//
973c2be1 13// Alternatively, this file may be used under the terms of Open CASCADE
14// commercial license or contractual agreement.
7fd59977 15
16#ifndef _Standard_MMgrRaw_HeaderFile
17#define _Standard_MMgrRaw_HeaderFile
18
7fd59977 19#include <Standard_MMgrRoot.hxx>
7fd59977 20
21/**
22* Implementation of raw OCC memory manager which uses standard C
23* functions: malloc (or calloc), free and realloc
24* without any optimization
25*/
26
27class Standard_MMgrRaw : public Standard_MMgrRoot
28{
29 public:
30 //! Constructor; if aClear is True, the memory will be nullified
31 //! upon allocation.
32 Standard_EXPORT Standard_MMgrRaw(const Standard_Boolean aClear=Standard_False);
33
34 //! Allocate aSize bytes
35 Standard_EXPORT virtual Standard_Address Allocate(const Standard_Size aSize);
36
37 //! Reallocate aPtr to the size aSize.
547702a1 38 //! The new pointer is returned.
39 Standard_EXPORT virtual Standard_Address Reallocate(Standard_Address thePtr,
40 const Standard_Size theSize);
7fd59977 41
42 //! Free allocated memory. The pointer is nullified.
547702a1 43 Standard_EXPORT virtual void Free (Standard_Address thePtr);
7fd59977 44
45 protected:
46 Standard_Boolean myClear; //! Option to nullify allocated memory
47};
48
49#endif