Debian Codegraph @

Kernel/dlVHashImpl.h

raw symbols SCIP
1 /* This file is part of the FaCT++ DL reasoner
2 Copyright (C) 2006-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 DLVHASHIMPL_H
21 #define DLVHASHIMPL_Hcxx . . $ `Kernel/dlVHashImpl.h:21:9`!
22
23 // implementation of DLVertex Hash; to be included after DLDag definition
24
25 inline BipolarPointercxx . . $ BipolarPointer#
26 dlVHashTablecxx . . $ dlVHashTable# :: locatecxx . . $ dlVHashTable#locate(e38e8d7d654dccb4). ( const HashLeafcxx . . $ dlVHashTable#HashLeaf#& leaf, const DLVertexcxx . . $ DLVertex#& v ) const
27 {
28 for ( const auto& bp: leaf )
29 if ( v ==cxx . . $ DLVertex#`operator==`(a7e9993be36471cf). hostcxx . . $ dlVHashTable#host.[cxx . . $ DLDag#`operator[]`(5fe3b8e96045ba2c).bp] )
30 return bp;
31
32 return bpINVALIDcxx . . $ bpINVALID.;
33 }
34
35 inline BipolarPointercxx . . $ BipolarPointer#
36 dlVHashTablecxx . . $ dlVHashTable# :: locatecxx . . $ dlVHashTable#locate(afc6382ab0cd3b8b). ( const DLVertexcxx . . $ DLVertex#& v ) const
37 {
38 auto p = Tablecxx . . $ dlVHashTable#Table..findcxx . . $ std/map#find(7b3585bb5da8f7d).(hashcxx . . $ dlVHashTable#hash(8f47413182285a6b).(v));
39 return p ==cxx . . $ std/`operator==`(7e1308a0738ea758). Tablecxx . . $ dlVHashTable#Table..endcxx . . $ std/map#end(646659518938a4d6).() ? bpINVALIDcxx . . $ bpINVALID. : locatecxx . . $ dlVHashTable#locate(e38e8d7d654dccb4). ( p->cxx . . $ std/_Rb_tree_const_iterator#`operator->`(1016ee5406d91ab9).secondcxx . . $ std/pair#second., v );
40 }
41
42 inline void
43 dlVHashTablecxx . . $ dlVHashTable# :: addElementcxx . . $ dlVHashTable#addElement(d4f767463ce0a6b3). ( BipolarPointercxx . . $ BipolarPointer# pos )
44 {
45 insertcxx . . $ dlVHashTable#insert(345510c98d6b6c89). ( Tablecxx . . $ dlVHashTable#Table.[cxx . . $ std/map#`operator[]`(da459db78e6e18a3).hashcxx . . $ dlVHashTable#hash(8f47413182285a6b).(hostcxx . . $ dlVHashTable#host.[cxx . . $ DLDag#`operator[]`(5fe3b8e96045ba2c).pos])], pos );
46 }
47
48 #endif
49