diff options
Diffstat (limited to 'basegfx/inc/basegfx/matrix/b2dhommatrix.hxx')
-rw-r--r-- | basegfx/inc/basegfx/matrix/b2dhommatrix.hxx | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/basegfx/inc/basegfx/matrix/b2dhommatrix.hxx b/basegfx/inc/basegfx/matrix/b2dhommatrix.hxx index 8a535722ede5..89f04ba05ec3 100644 --- a/basegfx/inc/basegfx/matrix/b2dhommatrix.hxx +++ b/basegfx/inc/basegfx/matrix/b2dhommatrix.hxx @@ -4,9 +4,9 @@ * * $RCSfile: b2dhommatrix.hxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: kz $ $Date: 2005-11-02 13:52:50 $ + * last change: $Author: obo $ $Date: 2006-07-13 09:54:16 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -40,26 +40,31 @@ #include <sal/types.h> #endif +#ifndef INCLUDED_O3TL_COW_WRAPPER_HXX +#include <o3tl/cow_wrapper.hxx> +#endif + namespace basegfx { - // predeclaration class B2DTuple; - - // forward declaration class Impl2DHomMatrix; class B2DHomMatrix { - private: - Impl2DHomMatrix* mpM; + public: + typedef o3tl::cow_wrapper< Impl2DHomMatrix > ImplType; - void implPrepareChange(); + private: + ImplType mpImpl; public: B2DHomMatrix(); B2DHomMatrix(const B2DHomMatrix& rMat); ~B2DHomMatrix(); + /// unshare this matrix with all internally shared instances + void makeUnique(); + double get(sal_uInt16 nRow, sal_uInt16 nColumn) const; void set(sal_uInt16 nRow, sal_uInt16 nColumn, double fValue); |