0024098: Exception Standard_OutOfMemory raised during topological operation.
[occt.git] / src / BOPAlgo / BOPAlgo_Algo.cxx
CommitLineData
b311480e 1// Created by: Peter KURNEV
4e57c75e 2// Copyright (c) 2010-2012 OPEN CASCADE SAS
3// Copyright (c) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
4// Copyright (c) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT,
5// EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
b311480e 6//
7// The content of this file is subject to the Open CASCADE Technology Public
8// License Version 6.5 (the "License"). You may not use the content of this file
9// except in compliance with the License. Please obtain a copy of the License
10// at http://www.opencascade.org and read it completely before using this file.
11//
12// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
13// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
14//
15// The Original Code and all software distributed under the License is
16// distributed on an "AS IS" basis, without warranty of any kind, and the
17// Initial Developer hereby disclaims all such warranties, including without
18// limitation, any warranties of merchantability, fitness for a particular
19// purpose or non-infringement. Please see the License for the specific terms
20// and conditions governing the rights and limitations under the License.
21
7fd59977 22
4e57c75e 23#include <BOPAlgo_Algo.ixx>
24
25#include <NCollection_BaseAllocator.hxx>
7fd59977 26
27//=======================================================================
4e57c75e 28// function:
7fd59977 29// purpose:
30//=======================================================================
4e57c75e 31 BOPAlgo_Algo::BOPAlgo_Algo()
7fd59977 32:
4e57c75e 33 myAllocator(NCollection_BaseAllocator::CommonBaseAllocator()),
34 myErrorStatus(1),
35 myWarningStatus(0)
7fd59977 36{}
7fd59977 37//=======================================================================
4e57c75e 38// function:
7fd59977 39// purpose:
40//=======================================================================
4e57c75e 41 BOPAlgo_Algo::BOPAlgo_Algo(const Handle(NCollection_BaseAllocator)& theAllocator)
42:
43 myAllocator(theAllocator),
44 myErrorStatus(1),
45 myWarningStatus(0)
46{}
7fd59977 47
48//=======================================================================
4e57c75e 49// function: ~
7fd59977 50// purpose:
51//=======================================================================
4e57c75e 52 BOPAlgo_Algo::~BOPAlgo_Algo()
7fd59977 53{
7fd59977 54}
55//=======================================================================
4e57c75e 56//function : Allocator
57//purpose :
7fd59977 58//=======================================================================
4e57c75e 59 const Handle(NCollection_BaseAllocator)& BOPAlgo_Algo::Allocator()const
7fd59977 60{
4e57c75e 61 return myAllocator;
7fd59977 62}
7fd59977 63//=======================================================================
4e57c75e 64// function: CheckData
7fd59977 65// purpose:
66//=======================================================================
4e57c75e 67 void BOPAlgo_Algo::CheckData()
7fd59977 68{
4e57c75e 69 myErrorStatus=0;
7fd59977 70}
7fd59977 71//=======================================================================
4e57c75e 72// function: CheckResult
7fd59977 73// purpose:
74//=======================================================================
4e57c75e 75 void BOPAlgo_Algo::CheckResult()
7fd59977 76{
4e57c75e 77 myErrorStatus=0;
7fd59977 78}
79//=======================================================================
4e57c75e 80// function: ErrorStatus
7fd59977 81// purpose:
82//=======================================================================
4e57c75e 83 Standard_Integer BOPAlgo_Algo::ErrorStatus()const
7fd59977 84{
4e57c75e 85 return myErrorStatus;
7fd59977 86}
7fd59977 87//=======================================================================
4e57c75e 88// function: WarningStatus
7fd59977 89// purpose:
90//=======================================================================
4e57c75e 91 Standard_Integer BOPAlgo_Algo::WarningStatus()const
7fd59977 92{
4e57c75e 93 return myWarningStatus;
7fd59977 94}
4e57c75e 95// myErrorStatus
96//
97// 1 - object is just initialized