|
a/src/utils/refcntr.h |
|
b/src/utils/refcntr.h |
|
... |
|
... |
39 |
delete pcount;
|
39 |
delete pcount;
|
40 |
}
|
40 |
}
|
41 |
}
|
41 |
}
|
42 |
X *operator->() {return rep;}
|
42 |
X *operator->() {return rep;}
|
43 |
int getcnt() const {return pcount ? *pcount : 0;}
|
43 |
int getcnt() const {return pcount ? *pcount : 0;}
|
44 |
const X *getptr() const {return rep;}
|
44 |
X *getptr() const {return rep;}
|
45 |
bool isNull() const {return rep == 0;}
|
45 |
bool isNull() const {return rep == 0;}
|
46 |
};
|
46 |
};
|
47 |
|
47 |
|
48 |
|
48 |
|
49 |
#endif /*_REFCNTR_H_ */
|
49 |
#endif /*_REFCNTR_H_ */
|