|
a/src/utils/refcntr.h |
|
b/src/utils/refcntr.h |
|
... |
|
... |
48 |
X *operator->() {return rep;}
|
48 |
X *operator->() {return rep;}
|
49 |
X *getptr() const {return rep;}
|
49 |
X *getptr() const {return rep;}
|
50 |
const X *getconstptr() const {return rep;}
|
50 |
const X *getconstptr() const {return rep;}
|
51 |
int getcnt() const {return pcount ? *pcount : 0;}
|
51 |
int getcnt() const {return pcount ? *pcount : 0;}
|
52 |
bool isNull() const {return rep == 0;}
|
52 |
bool isNull() const {return rep == 0;}
|
|
|
53 |
bool isNotNull() const {return rep != 0;}
|
53 |
};
|
54 |
};
|
54 |
|
55 |
|
55 |
|
56 |
|
56 |
#endif /*_REFCNTR_H_ */
|
57 |
#endif /*_REFCNTR_H_ */
|