VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtVector_n.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 #pragma once
10 
11 namespace makVrv {
12 
15  template<size_t n> class DtVectorN
16  {
17  public:
18  DtVectorN<n>(void){}
19  virtual ~DtVectorN<n>(void){}
20 
21  float& operator[](size_t i);
22  const float& operator[](size_t i) const;
23  private:
24  float m_vals[n];
25  };
26 
27  template<size_t n>
28  float& DtVectorN<n>::operator[](size_t i)
29  {
30  return m_vals[i];
31  }
32  template<size_t n>
33  const float& DtVectorN<n>::operator[](size_t i) const
34  {
35  return m_vals[i];
36  }
37 
38 } //namespace makVrv

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)