From 706b0122a6aab2290b65fbad0180ca5e2b2f58a9 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Tue, 21 Dec 2010 10:33:26 +0100 Subject: [PATCH] add isnotnull method to refcntr --- src/utils/refcntr.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/refcntr.h b/src/utils/refcntr.h index 870d3008..fbc6d8ac 100644 --- a/src/utils/refcntr.h +++ b/src/utils/refcntr.h @@ -50,6 +50,7 @@ public: const X *getconstptr() const {return rep;} int getcnt() const {return pcount ? *pcount : 0;} bool isNull() const {return rep == 0;} + bool isNotNull() const {return rep != 0;} };