Switch to unified view
a/src/utils/refcntr.h | b/src/utils/refcntr.h | ||
---|---|---|---|
... |
... |
||
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 | const X *getptr() const {return rep;} |
45 | bool isNull() const {return rep == 0;} |
||
45 | }; |
46 | }; |
46 | 47 | ||
47 | 48 | ||
48 | #endif /*_REFCNTR_H_ */ |
49 | #endif /*_REFCNTR_H_ */ |