1
//////////////////////////////////////////////////////////////////////////
3
// pgScript - PostgreSQL Tools
4
// RCS-ID: $Id: pgsCopiedPtr.h 7758 2009-03-26 20:49:59Z dpage $
5
// Copyright (C) 2002 - 2009, The pgAdmin Development Team
6
// This software is released under the BSD Licence
8
//////////////////////////////////////////////////////////////////////////
11
#ifndef PGSCOPIEDPTR_H_
12
#define PGSCOPIEDPTR_H_
16
template <typename T> class pgsCopiedPtr
37
pgsCopiedPtr(const pgsCopiedPtr & that) :
38
p(that.p == 0 ? 0 : that.p->clone())
48
pgsCopiedPtr & operator =(pgsCopiedPtr that)
59
const T & operator *() const
69
const T * operator ->() const
80
#endif /*PGSCOPIEDPTR_H_*/