| 1 | /* This file is part of the FaCT++ DL reasoner |
| 2 | Copyright (C) 2010-2015 Dmitry Tsarkov and The University of Manchester |
| 3 | Copyright (C) 2015-2017 Dmitry Tsarkov |
| 4 | |
| 5 | This library is free software; you can redistribute it and/or |
| 6 | modify it under the terms of the GNU Lesser General Public |
| 7 | License as published by the Free Software Foundation; either |
| 8 | version 2.1 of the License, or (at your option) any later version. |
| 9 | |
| 10 | This library is distributed in the hope that it will be useful, |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | Lesser General Public License for more details. |
| 14 | |
| 15 | You should have received a copy of the GNU Lesser General Public |
| 16 | License along with this library; if not, write to the Free Software |
| 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 18 | */ |
| 19 | |
| 20 | #include "tExpressionManager.h"cxx . . $ `<file>/Kernel/tExpressionManager.h`/ |
| 21 | |
| 22 | TExpressionManagercxx . . $ TExpressionManager# :: TExpressionManagercxx . . $ TExpressionManager#TExpressionManager(49f6e7a06ebc5aa8). ( void ) |
| 23 | : CTopcxx . . $ TExpressionManager#CTop.(new TDLConceptTopcxx . . $ TDLConceptTop#) |
| 24 | , CBottomcxx . . $ TExpressionManager#CBottom.(new TDLConceptBottomcxx . . $ TDLConceptBottom#) |
| 25 | , DTopcxx . . $ TExpressionManager#DTop.(new TDLDataTopcxx . . $ TDLDataTop#) |
| 26 | , DBottomcxx . . $ TExpressionManager#DBottom.(new TDLDataBottomcxx . . $ TDLDataBottom#) |
| 27 | , ORTopcxx . . $ TExpressionManager#ORTop.(new TDLObjectRoleTopcxx . . $ TDLObjectRoleTop#) |
| 28 | , ORBottomcxx . . $ TExpressionManager#ORBottom.(new TDLObjectRoleBottomcxx . . $ TDLObjectRoleBottom#) |
| 29 | , DRTopcxx . . $ TExpressionManager#DRTop.(new TDLDataRoleTopcxx . . $ TDLDataRoleTop#) |
| 30 | , DRBottomcxx . . $ TExpressionManager#DRBottom.(new TDLDataRoleBottomcxx . . $ TDLDataRoleBottom#) |
| 31 | , InverseRoleCachecxx . . $ TExpressionManager#InverseRoleCache.(this) |
| 32 | , OneOfCachecxx . . $ TExpressionManager#OneOfCache.(this) |
| 33 | { |
| 34 | } |
| 35 | |
| 36 | TExpressionManagercxx . . $ TExpressionManager# :: ~cxx . . $ TExpressionManager#`~TExpressionManager`(49f6e7a06ebc5aa8).TExpressionManagercxx . . $ TExpressionManager#() |
| 37 | { |
| 38 | clearcxx . . $ TExpressionManager#clear(49f6e7a06ebc5aa8).(); |
| 39 | delete CTopcxx . . $ TExpressionManager#CTop.; |
| 40 | delete CBottomcxx . . $ TExpressionManager#CBottom.; |
| 41 | delete ORTopcxx . . $ TExpressionManager#ORTop.; |
| 42 | delete ORBottomcxx . . $ TExpressionManager#ORBottom.; |
| 43 | delete DRTopcxx . . $ TExpressionManager#DRTop.; |
| 44 | delete DRBottomcxx . . $ TExpressionManager#DRBottom.; |
| 45 | delete DTopcxx . . $ TExpressionManager#DTop.; |
| 46 | delete DBottomcxx . . $ TExpressionManager#DBottom.; |
| 47 | } |
| 48 | |
| 49 | void |
| 50 | TExpressionManagercxx . . $ TExpressionManager# :: clearcxx . . $ TExpressionManager#clear(49f6e7a06ebc5aa8). ( void ) |
| 51 | { |
| 52 | // clear all the names but the datatypes |
| 53 | NS_Ccxx . . $ TExpressionManager#NS_C..clearcxx . . $ TNameSet#clear(49f6e7a06ebc5aa8).(); |
| 54 | NS_Icxx . . $ TExpressionManager#NS_I..clearcxx . . $ TNameSet#clear(49f6e7a06ebc5aa8).(); |
| 55 | NS_ORcxx . . $ TExpressionManager#NS_OR..clearcxx . . $ TNameSet#clear(49f6e7a06ebc5aa8).(); |
| 56 | NS_DRcxx . . $ TExpressionManager#NS_DR..clearcxx . . $ TNameSet#clear(49f6e7a06ebc5aa8).(); |
| 57 | InverseRoleCachecxx . . $ TExpressionManager#InverseRoleCache..clearcxx . . $ TExpressionManager#TInverseRoleCache#clear(49f6e7a06ebc5aa8).(); |
| 58 | OneOfCachecxx . . $ TExpressionManager#OneOfCache..clearcxx . . $ TExpressionManager#TOneOfCache#clear(49f6e7a06ebc5aa8).(); |
| 59 | // delete all the recorded references |
| 60 | for ( auto& expr: RefRecordercxx . . $ TExpressionManager#RefRecorder. ) |
| 61 | delete expr; |
| 62 | RefRecordercxx . . $ TExpressionManager#RefRecorder..clearcxx . . $ std/vector#clear(49f6e7a06ebc5aa8).(); |
| 63 | } |
| 64 | |
| 65 | /// clear the TNamedEntry cache for all elements of all name-sets |
| 66 | void |
| 67 | TExpressionManagercxx . . $ TExpressionManager# :: clearNameCachecxx . . $ TExpressionManager#clearNameCache(49f6e7a06ebc5aa8). ( void ) |
| 68 | { |
| 69 | clearEntriesCachecxx . . $ clearEntriesCache(36401f4342a0a6dc).(NS_Ccxx . . $ TExpressionManager#NS_C.); |
| 70 | clearEntriesCachecxx . . $ clearEntriesCache(36401f4342a0a6dc).(NS_Icxx . . $ TExpressionManager#NS_I.); |
| 71 | clearEntriesCachecxx . . $ clearEntriesCache(36401f4342a0a6dc).(NS_ORcxx . . $ TExpressionManager#NS_OR.); |
| 72 | clearEntriesCachecxx . . $ clearEntriesCache(36401f4342a0a6dc).(NS_DRcxx . . $ TExpressionManager#NS_DR.); |
| 73 | clearEntriesCachecxx . . $ clearEntriesCache(36401f4342a0a6dc).(NS_DTcxx . . $ TExpressionManager#NS_DT.); |
| 74 | } |