VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtVector_n.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2014 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 Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)