Debian Codegraph @

Kernel/tRelated.h

raw symbols SCIP
1 /* This file is part of the FaCT++ DL reasoner
2 Copyright (C) 2003-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 #ifndef TRELATED_H
21 #define TRELATED_Hcxx . . $ `Kernel/tRelated.h:21:9`!
22
23 #include "tIndividual.h"cxx . . $ `<file>/Kernel/tIndividual.h`/
24 #include "tRole.h"cxx . . $ `<file>/Kernel/tRole.h`/
25
26 /// class for represent individual relation <a,b>:R
27 class TRelatedcxx . . $ TRelated#
28 {
29 public: // members
30 TIndividualcxx . . $ TIndividual#* acxx . . $ TRelated#a. = nullptr;
31 TIndividualcxx . . $ TIndividual#* bcxx . . $ TRelated#b. = nullptr;
32 TRolecxx . . $ TRole#* Rcxx . . $ TRelated#R. = nullptr;
33
34 public: // interface
35 /// empty c'tor
36 TRelatedcxx . . $ TRelated#TRelated(49f6e7a06ebc5aa8).() = default;
37 /// init c'tor
38 TRelatedcxx . . $ TRelated#TRelated(9a60f9f6a8e43197). ( TIndividualcxx . . $ TIndividual#* a_, TIndividualcxx . . $ TIndividual#* b_, TRolecxx . . $ TRole#* R_ ) : acxx . . $ TRelated#a.(a_), bcxx . . $ TRelated#b.(b_), Rcxx . . $ TRelated#R.(R_) {}
39 /// copy c'tor
40 TRelatedcxx . . $ TRelated#TRelated(e10eda09e8ea4aef). ( const TRelatedcxx . . $ TRelated#& ) = default;
41 /// assignment
42 TRelatedcxx . . $ TRelated#& operatorcxx . . $ TRelated#`operator=`(7bb54f15592392fe). = ( const TRelatedcxx . . $ TRelated#& ) = default;
43
44 /// simplify structure wrt synonyms
45 void simplifycxx . . $ TRelated#simplify(49f6e7a06ebc5aa8). ( void )
46 {
47 Rcxx . . $ TRelated#R. = resolveSynonymcxx . . $ resolveSynonym(98ea26de6545f0ca).(Rcxx . . $ TRelated#R.);
48 acxx . . $ TRelated#a. = resolveSynonymcxx . . $ resolveSynonym(98ea26de6545f0ca).(acxx . . $ TRelated#a.);
49 bcxx . . $ TRelated#b. = resolveSynonymcxx . . $ resolveSynonym(98ea26de6545f0ca).(bcxx . . $ TRelated#b.);
50 acxx . . $ TRelated#a.->addRelatedcxx . . $ TIndividual#addRelated(f84e2c2de15603ba).(this);
51 }
52 /// get access to role wrt the FROM direction
53 TRolecxx . . $ TRole#* getRolecxx . . $ TRelated#getRole(3f1757836b76db79). ( void ) const { return Rcxx . . $ TRelated#R.; }
54 }; // TRelated
55
56 // TIndividual RELATED-dependent method' implementation
57 inline void
58 TIndividualcxx . . $ TIndividual# :: updateToldFromRelatedcxx . . $ TIndividual#updateToldFromRelated(49f6e7a06ebc5aa8). ( void )
59 {
60 RoleSSetcxx . . $ TConcept#RoleSSet# RolesProcessedcxx . . $ std/set#set(49f6e7a06ebc5aa8).;
61 updateToldcxx . . $ TIndividual#updateTold(f6c12e143d64fc7). ( RelatedIndexcxx . . $ TIndividual#RelatedIndex..begincxx . . $ std/vector#begin(33b10a496a38335b).(), RelatedIndexcxx . . $ TIndividual#RelatedIndex..endcxx . . $ std/vector#end(33b10a496a38335b).(), RolesProcessed );
62 }
63
64 #endif