cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
vctMatrixRotation3ConstRef.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* ex: set filetype=cpp softtabstop=4 shiftwidth=4 tabstop=4 cindent expandtab: */
3 
4 /*
5 
6  Author(s): Anton Deguet
7  Created on: 2004-01-12
8 
9  (C) Copyright 2004-2008 Johns Hopkins University (JHU), All Rights
10  Reserved.
11 
12 --- begin cisst license - do not edit ---
13 
14 This software is provided "as is" under an open source license, with
15 no warranty. The complete license can be found in license.txt and
16 http://www.cisst.org/cisst/license.txt.
17 
18 --- end cisst license ---
19 */
20 
21 #pragma once
22 #ifndef _vctMatrixRotation3ConstRef_h
23 #define _vctMatrixRotation3ConstRef_h
24 
32 
33 #include <cisstVector/vctExport.h>
34 
35 
50 template <class _elementType, vct::stride_type _rowStride, vct::stride_type _colStride>
51 class vctMatrixRotation3ConstRef: public vctMatrixRotation3Base<vctFixedSizeConstMatrixRef<_elementType, 3, 3, _rowStride, _colStride> >
52 {
53  public:
54  /* no need to document, inherit doxygen documentation from base class */
55  VCT_CONTAINER_TRAITS_TYPEDEFS(_elementType);
56  enum {ROWS = 3, COLS = 3};
57  enum {DIMENSION = 3};
63 
66  {}
67 
68 
69  // #if 0 // default one works?
70  // inline vctMatrixRotation3ConstRef(const ThisType & other) {
71  // this->SetRef(other);
72  // }
73  // #endif
74 
75  inline vctMatrixRotation3ConstRef(const BaseType & other) {
76  this->SetRef(other);
77  }
78 
79  template <class __containerType>
81  this->SetRef(other.Pointer());
82  }
83 };
84 
85 
86 #endif // _vctMatrixRotation3ConstRef_h
87 
vctMatrixRotation3ConstRef(void)
Definition: vctMatrixRotation3ConstRef.h:65
void SetRef(pointer p)
Definition: vctFixedSizeConstMatrixRef.h:114
Declaration of vctFixedSizeMatrix.
Define a rotation matrix for a space of dimension 3.
Definition: vctForwardDeclarations.h:202
vctFixedSizeConstMatrixRef< value_type, ROWS, COLS, _rowStride, _colStride > ContainerType
Definition: vctMatrixRotation3ConstRef.h:58
vctMatrixRotation3Base< ContainerType > BaseType
Definition: vctMatrixRotation3ConstRef.h:59
cmnTypeTraits< value_type > TypeTraits
Definition: vctMatrixRotation3ConstRef.h:62
Define a rotation matrix for a space of dimension 3.
Definition: vctForwardDeclarations.h:199
vctMatrixRotation3ConstRef(const BaseType &other)
Definition: vctMatrixRotation3ConstRef.h:75
Definition: vctMatrixRotation3ConstRef.h:56
Define a rotation matrix for a space of dimension 3.
Definition: vctForwardDeclarations.h:198
Definition: vctMatrixRotation3ConstRef.h:57
Declaration of vctMatrixRotation3Base.
VCT_CONTAINER_TRAITS_TYPEDEFS(_elementType)
An implementation of the ``abstract'' vctFixedSizeConstMatrixBase.
Definition: vctFixedSizeConstMatrixRef.h:50
vctMatrixRotation3ConstRef(const vctMatrixRotation3ConstBase< __containerType > &other)
Definition: vctMatrixRotation3ConstRef.h:80
Definition: vctMatrixRotation3ConstRef.h:56
Macros to export the symbols of cisstVector (in a Dll).
A collection of useful information about the C++ basic types, represented in a generic programming wa...
Definition: cmnTypeTraits.h:155
vctMatrixRotation3ConstRef< value_type, _rowStride, _colStride > ThisType
Definition: vctMatrixRotation3ConstRef.h:60