Debian Codegraph @

seatac/statObj.H

raw symbols SCIP
1 #cxx . . $ `<file>/seatac/statObj.H`/ifndef STATOBJ_H
2 #define STATOBJ_Hcxx . . $ `seatac/statObj.H:2:9`!
3
4 #include <stdio.h>
5 #include <stdlib.h>
6 #include "sharedObj.H"cxx . . $ `<file>/seatac/sharedObj.H`/
7
8
9 class statObjcxx . . $ statObj# {
10 public:
11 statObjcxx . . $ statObj#statObj(6f6da539ca2a87b6).(sharedObjcxx . . $ sharedObj# *so, char *soOpts);
12 ~cxx . . $ statObj#`~statObj`(ced63f7c635d850d).statObjcxx . . $ statObj#();
13
14 void addcxx . . $ statObj#add(53ed47f03c7187f9).(filterObjcxx . . $ filterObj# *FO) {
15 if (soaddcxx . . $ statObj#soadd.)
16 (*soaddcxx . . $ statObj#soadd.)(handlecxx . . $ statObj#handle., FO->handlecxx . . $ filterObj#handle.);
17 };
18
19 void showcxx . . $ statObj#show(8d4262d45fc644ab).(FILE *file) {
20 if (soshowcxx . . $ statObj#soshow.)
21 (*soshowcxx . . $ statObj#soshow.)(handlecxx . . $ statObj#handle., file);
22 };
23
24 private:
25 char *soOptscxx . . $ statObj#soOpts.;
26 sharedObjcxx . . $ sharedObj# *socxx . . $ statObj#so.;
27
28 void *handlecxx . . $ statObj#handle.;
29
30 void * (*soconstructcxx . . $ statObj#soconstruct.)(char *);
31 void (*sodestructcxx . . $ statObj#sodestruct.)(void *);
32 void (*soaddcxx . . $ statObj#soadd.)(void *, void *);
33 void (*soshowcxx . . $ statObj#soshow.)(void *, FILE *);
34 };
35
36
37 inline
38 statObjcxx . . $ statObj#::statObjcxx . . $ statObj#statObj(6f6da539ca2a87b6).(sharedObjcxx . . $ sharedObj# *so_, char *op_) {
39 soOptscxx . . $ statObj#soOpts. = 0L;
40 socxx . . $ statObj#so. = so_;
41
42 handlecxx . . $ statObj#handle. = 0L;
43
44 soconstructcxx . . $ statObj#soconstruct. = 0L;
45 soaddcxx . . $ statObj#soadd. = 0L;
46 soshowcxx . . $ statObj#soshow. = 0L;
47 sodestructcxx . . $ statObj#sodestruct. = 0L;
48
49 if (op_) {
50 soOptscxx . . $ statObj#soOpts. = new char [strlen(op_) + 1];
51 strcpy(soOptscxx . . $ statObj#soOpts., op_);
52 }
53
54 if (socxx . . $ statObj#so.) {
55 soconstructcxx . . $ statObj#soconstruct. = (void* (*)(char*))socxx . . $ statObj#so.->getcxx . . $ sharedObj#get(42228c1987407501).("constructStats");
56 sodestructcxx . . $ statObj#sodestruct. = (void (*)(void*))socxx . . $ statObj#so.->getcxx . . $ sharedObj#get(42228c1987407501).("destructStats");
57 soaddcxx . . $ statObj#soadd. = (void (*)(void*, void*))socxx . . $ statObj#so.->getcxx . . $ sharedObj#get(42228c1987407501).("addStats");
58 soshowcxx . . $ statObj#soshow. = (void (*)(void*, FILE*))socxx . . $ statObj#so.->getcxx . . $ sharedObj#get(42228c1987407501).("showStats");
59
60 handlecxx . . $ statObj#handle. = (*soconstructcxx . . $ statObj#soconstruct.)(soOptscxx . . $ statObj#soOpts.);
61 }
62 }
63
64
65 inline
66 statObjcxx . . $ statObj#::~cxx . . $ statObj#`~statObj`(ced63f7c635d850d).statObjcxx . . $ statObj#() {
67 if (sodestructcxx . . $ statObj#sodestruct.)
68 (*sodestructcxx . . $ statObj#sodestruct.)(handlecxx . . $ statObj#handle.);
69 delete [] soOptscxx . . $ statObj#soOpts.;
70 }
71
72
73 #endif // STATOBJ_H