Predator
[unstable] git snapshot
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
prototype.hh
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2012 Kamil Dudka <kdudka@redhat.com>
3
*
4
* This file is part of predator.
5
*
6
* predator is free software: you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation, either version 3 of the License, or
9
* any later version.
10
*
11
* predator 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 General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with predator. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
20
#ifndef H_GUARD_PROTOTYPE_H
21
#define H_GUARD_PROTOTYPE_H
22
23
#include "
config.h
"
24
#include "
symheap.hh
"
25
26
/// collect prototypes of the given object, return true on success
27
bool
collectPrototypesOf
(
28
TObjSet
&dst,
29
SymHeap
&sh,
30
TObjId
obj);
31
32
/// increment prototype level of a single object while taking care of DLS peers
33
void
objIncrementProtoLevel
(
SymHeap
&sh,
TObjId
);
34
35
/// decrement prototype level of a single object while taking care of DLS peers
36
void
objDecrementProtoLevel
(
SymHeap
&sh,
TObjId
);
37
38
/// decrement prototype level of owned prototype objects
39
void
decrementProtoLevel
(
SymHeap
&sh,
TObjId
obj);
40
41
/**
42
* returns true if no concrete object points to another object of a higher level
43
* @note this runs in debug build only
44
*/
45
bool
protoCheckConsistency
(
const
SymHeap
&sh);
46
47
#endif
/* H_GUARD_PROTOTYPE_H */
Generated on Mon Nov 9 2015 14:51:59 for Predator by
1.8.1.2