Debian Codegraph @

Kernel/tNamedEntry.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 TNAMEDENTRY_H
21 #define TNAMEDENTRY_Hcxx . . $ `Kernel/tNamedEntry.h:21:9`!
22
23 #include <string>
24 #include <ostream>
25
26 #include "flags.h"cxx . . $ `<file>/Kernel/flags.h`/
27
28 class TNamedEntitycxx . . $ TNamedEntity#;
29 class SaveLoadManagercxx . . $ SaveLoadManager#;
30
31 class TNamedEntrycxx . . $ TNamedEntry#: public Flagscxx . . $ Flags#
32 {
33 protected: // members
34 /// name of the entry
35 stdcxx . . $ std/::stringcxx . . $ std/string# extNamecxx . . $ TNamedEntry#extName.;
36 /// entry identifier
37 int extIdcxx . . $ TNamedEntry#extId. = 0;
38 /// original entity
39 const TNamedEntitycxx . . $ TNamedEntity#* entitycxx . . $ TNamedEntry#entity. = nullptr;
40
41 public: // interface
42 /// the only c'tor
43 explicit TNamedEntrycxx . . $ TNamedEntry#TNamedEntry(9c546c94e5fcce4e). ( const stdcxx . . $ std/::stringcxx . . $ std/string#& name )
44 : extNamecxx . . $ TNamedEntry#extName. (name) // copy name
45 {}
46 /// no copy c'tor
47 TNamedEntrycxx . . $ TNamedEntry#TNamedEntry(6bf2d17da511e206). ( const TNamedEntrycxx . . $ TNamedEntry#& ) = delete;
48 /// no assignment
49 TNamedEntrycxx . . $ TNamedEntry#& operatorcxx . . $ TNamedEntry#`operator=`(314449bcb60a6fc0). = ( const TNamedEntrycxx . . $ TNamedEntry#& ) = delete;
50
51 /// gets name of given entry
52 const char* getNamecxx . . $ TNamedEntry#getName(a9f41ea0e82d88cf). ( void ) const { return extNamecxx . . $ TNamedEntry#extName..c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).(); }
53
54 /// set internal ID
55 void setIdcxx . . $ TNamedEntry#setId(d4f767463ce0a6b3). ( int id ) { extIdcxx . . $ TNamedEntry#extId. = id; }
56 /// get internal ID
57 int getIdcxx . . $ TNamedEntry#getId(455f465bc33b4cdf). ( void ) const { return extIdcxx . . $ TNamedEntry#extId.; }
58
59 /// set entity
60 void setEntitycxx . . $ TNamedEntry#setEntity(70f9d3c046cd5911). ( const TNamedEntitycxx . . $ TNamedEntity#* e ) { entitycxx . . $ TNamedEntry#entity. = e; }
61 /// get entity
62 const TNamedEntitycxx . . $ TNamedEntity#* getEntitycxx . . $ TNamedEntry#getEntity(1a59bfca6295ee56). ( void ) const { return entitycxx . . $ TNamedEntry#entity.; }
63
64 /// register a System flag
65 FPP_ADD_FLAGcxx . . $ TNamedEntry#setSystem(b45ddcbc8423892c).(System,0x1);
66
67 // hierarchy interface
68
69 /// register a Top-of-the-hierarchy flag
70 FPP_ADD_FLAGcxx . . $ Flags#setFlag(ee2069353d7cc01f).(Top,0x1000);
71 /// register a Bottom-of-the-hierarchy flag
72 FPP_ADD_FLAGcxx . . $ `Kernel/flags.h:64:9`!(Bottom,0x2000);
73
74 virtual void Printcxx . . $ TNamedEntry#Print(490063bd7e6d8d5d). ( stdcxx . . $ std/::ostreamcxx . . $ std/ostream#& o ) const { o <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). getNamecxx . . $ TNamedEntry#getName(a9f41ea0e82d88cf). (); }
75
76 // save/load interface; implementation is in SaveLoad.cpp
77
78 /// save entry
79 virtual void Savecxx . . $ TNamedEntry#Save(aaac402dd6f8bcf7). ( SaveLoadManagercxx . . $ SaveLoadManager#& ) const;
80 /// load entry
81 virtual void Loadcxx . . $ TNamedEntry#Load(da67b8e43f9c9b96). ( SaveLoadManagercxx . . $ SaveLoadManager#& );
82 }; // TNamedEntry
83
84 #endif