| 1 |
/* |
| 2 |
* Copyright (C) 2013-2015, 2019 by the Konclude Developer Team. |
| 3 |
* |
| 4 |
* This file is part of the reasoning system Konclude. |
| 5 |
* For details and support, see <http://konclude.com/>. |
| 6 |
* |
| 7 |
* Konclude is free software: you can redistribute it and/or modify |
| 8 |
* it under the terms of version 3 of the GNU Lesser General Public |
| 9 |
* License (LGPLv3) as published by the Free Software Foundation. |
| 10 |
* |
| 11 |
* Konclude is distributed in the hope that it will be useful, |
| 12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 |
* GNU (Lesser) General Public License for more details. |
| 15 |
* |
| 16 |
* You should have received a copy of the GNU (Lesser) General Public |
| 17 |
* License along with Konclude. If not, see <http://www.gnu.org/licenses/>. |
| 18 |
* |
| 19 |
*/ |
| 20 |
#ifdef KONCLUDE_REDLAND_INTEGRATION |
| 21 |
|
| 22 |
#include "CRedlandStoredTriplesIndividualAssertionIndexCacheExtensionData.h" |
| 23 |
|
| 24 |
|
| 25 |
namespace Konclude { |
| 26 |
|
| 27 |
namespace Reasoner { |
| 28 |
|
| 29 |
namespace Triples { |
| 30 |
|
| 31 |
|
| 32 |
CRedlandStoredTriplesIndividualAssertionIndexCacheExtensionData::CRedlandStoredTriplesIndividualAssertionIndexCacheExtensionData() { |
| 33 |
} |
| 34 |
|
| 35 |
CRedlandStoredTriplesIndividualAssertionIndexCacheExtensionData::~CRedlandStoredTriplesIndividualAssertionIndexCacheExtensionData() { |
| 36 |
if (mTypeConceptExtensionMap) { |
| 37 |
delete mTypeConceptExtensionMap; |
| 38 |
} |
| 39 |
if (mOutgoingObjectRoleExtensionMap) { |
| 40 |
delete mOutgoingObjectRoleExtensionMap; |
| 41 |
} |
| 42 |
if (mIncomingObjectRoleExtensionMap) { |
| 43 |
delete mIncomingObjectRoleExtensionMap; |
| 44 |
} |
| 45 |
if (mOutgoingDataRoleExtensionMap) { |
| 46 |
delete mOutgoingDataRoleExtensionMap; |
| 47 |
} |
| 48 |
} |
| 49 |
|
| 50 |
|
| 51 |
QMap<cint64, CConcept*>* CRedlandStoredTriplesIndividualAssertionIndexCacheExtensionData::getTypeConceptExtensionMap(bool create) { |
| 52 |
if (!mTypeConceptExtensionMap && create) { |
| 53 |
mTypeConceptExtensionMap = new QMap<cint64, CConcept*>(); |
| 54 |
} |
| 55 |
return mTypeConceptExtensionMap; |
| 56 |
} |
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
QMap<cint64, CRole*>* CRedlandStoredTriplesIndividualAssertionIndexCacheExtensionData::getOutgoingObjectRoleExtensionMap(bool create) { |
| 61 |
if (!mOutgoingObjectRoleExtensionMap && create) { |
| 62 |
mOutgoingObjectRoleExtensionMap = new QMap<cint64, CRole*>(); |
| 63 |
} |
| 64 |
return mOutgoingObjectRoleExtensionMap; |
| 65 |
} |
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
QMap<cint64, CRole*>* CRedlandStoredTriplesIndividualAssertionIndexCacheExtensionData::getIncomingObjectRoleExtensionMap(bool create) { |
| 70 |
if (!mIncomingObjectRoleExtensionMap && create) { |
| 71 |
mIncomingObjectRoleExtensionMap = new QMap<cint64, CRole*>(); |
| 72 |
} |
| 73 |
return mIncomingObjectRoleExtensionMap; |
| 74 |
} |
| 75 |
|
| 76 |
|
| 77 |
QMap<cint64, CRole*>* CRedlandStoredTriplesIndividualAssertionIndexCacheExtensionData::getOutgoingDataRoleExtensionMap(bool create) { |
| 78 |
if (!mOutgoingDataRoleExtensionMap && create) { |
| 79 |
mOutgoingDataRoleExtensionMap = new QMap<cint64, CRole*>(); |
| 80 |
} |
| 81 |
return mOutgoingDataRoleExtensionMap; |
| 82 |
} |
| 83 |
|
| 84 |
|
| 85 |
|
| 86 |
}; // end namespace Triples |
| 87 |
|
| 88 |
}; // end namespace Reasoner |
| 89 |
|
| 90 |
}; // end namespace Konclude |
| 91 |
|
| 92 |
#endif // !KONCLUDE_REDLAND_INTEGRATION |