added parser/Node, operator==() to util/refptr
git-svn-id: svn://anubis/jtlc/trunk@8 f5bc74b8-7b62-4e90-9214-7121d538519f
This commit is contained in:
1 parent
c9c59e41fc
commit
798342ec0b
3 files changed
+66
No files matched your search
@@ -21,6 +21,14 @@ class refptr
|
||||
T & operator*() const;
|
||||
T * operator->() const;
|
||||
bool isNull() const { return m_ptr == NULL; }
|
||||
bool operator==(const refptr<T> & other) const
|
||||
{
|
||||
return m_ptr == other.m_ptr;
|
||||
}
|
||||
bool operator==(T * ptr) const
|
||||
{
|
||||
return m_ptr == ptr;
|
||||
}
|
||||
|
||||
private:
|
||||
void cloneFrom(const refptr<T> & orig);
|
||||
|
||||
Reference in new issue
Block a user