Branch data Line data Source code
1 : : #ifndef INCLUDED_COM_SUN_STAR_GEOMETRY_AFFINEMATRIX2D_HPP
2 : : #define INCLUDED_COM_SUN_STAR_GEOMETRY_AFFINEMATRIX2D_HPP
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : #include "com/sun/star/geometry/AffineMatrix2D.hdl"
7 : :
8 : : #include "com/sun/star/uno/Type.hxx"
9 : : #include "cppu/unotype.hxx"
10 : : #include "sal/types.h"
11 : : #include "typelib/typeclass.h"
12 : : #include "typelib/typedescription.h"
13 : :
14 : : namespace com { namespace sun { namespace star { namespace geometry {
15 : :
16 : 18 : inline AffineMatrix2D::AffineMatrix2D() SAL_THROW(())
17 : : : m00(0)
18 : : , m01(0)
19 : : , m02(0)
20 : : , m10(0)
21 : : , m11(0)
22 : 18 : , m12(0)
23 : : {
24 : 18 : }
25 : :
26 : 0 : inline AffineMatrix2D::AffineMatrix2D(const double& m00_, const double& m01_, const double& m02_, const double& m10_, const double& m11_, const double& m12_) SAL_THROW(())
27 : : : m00(m00_)
28 : : , m01(m01_)
29 : : , m02(m02_)
30 : : , m10(m10_)
31 : : , m11(m11_)
32 : 0 : , m12(m12_)
33 : : {
34 : 0 : }
35 : :
36 : : } } } }
37 : :
38 : : namespace com { namespace sun { namespace star { namespace geometry {
39 : :
40 : 0 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::geometry::AffineMatrix2D const *) {
41 : : //TODO: On certain platforms with weak memory models, the following code can result in some threads observing that the_type points to garbage
42 : : static ::typelib_TypeDescriptionReference * the_type = 0;
43 [ # # ]: 0 : if (the_type == 0) {
44 : 0 : ::typelib_static_type_init(&the_type, typelib_TypeClass_STRUCT, "com.sun.star.geometry.AffineMatrix2D");
45 : : }
46 : 0 : return *reinterpret_cast< ::com::sun::star::uno::Type * >(&the_type);
47 : : }
48 : :
49 : : } } } }
50 : :
51 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER ::com::sun::star::geometry::AffineMatrix2D const *) SAL_THROW(()) {
52 : : return ::cppu::UnoType< ::com::sun::star::geometry::AffineMatrix2D >::get();
53 : : }
54 : :
55 : : #endif // INCLUDED_COM_SUN_STAR_GEOMETRY_AFFINEMATRIX2D_HPP
|