Chemical Data Processing Library C++ API - Version 1.2.0
VectorArray.hpp
Go to the documentation of this file.
1 /*
2  * VectorArray.hpp
3  *
4  * This file is part of the Chemical Data Processing Toolkit
5  *
6  * Copyright (C) 2003 Thomas Seidel <thomas.seidel@univie.ac.at>
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public License
19  * along with this library; see the file COPYING. If not, write to
20  * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21  * Boston, MA 02111-1307, USA.
22  */
23 
29 #ifndef CDPL_MATH_VECTORARRAY_HPP
30 #define CDPL_MATH_VECTORARRAY_HPP
31 
32 #include <memory>
33 
34 #include "CDPL/Math/Vector.hpp"
35 #include "CDPL/Util/Array.hpp"
36 
37 
38 namespace CDPL
39 {
40 
41  namespace Math
42  {
43 
47  template <typename V>
48  class VectorArray : public Util::Array<V>
49  {
50 
51  public:
52  typedef V ValueType;
53 
57  typedef std::shared_ptr<VectorArray> SharedPointer;
58 
59  private:
60  const char* getClassName() const
61  {
62  return "VectorArray";
63  }
64  };
65 
70 
75 
80 
85 
90 
95 
100 
105  } // namespace Math
106 } // namespace CDPL
107 
108 #endif // CDPL_MATH_VECTORARRAY_HPP
Definition of the class CDPL::Util::Array.
Definition of vector data types.
An array for storing generic vector objects.
Definition: VectorArray.hpp:49
V ValueType
Definition: VectorArray.hpp:52
std::shared_ptr< VectorArray > SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated VectorArray instances.
Definition: VectorArray.hpp:57
A dynamic array class providing amortized constant time access to arbitrary elements.
Definition: Array.hpp:92
constexpr unsigned int V
Specifies Vanadium.
Definition: AtomType.hpp:177
VectorArray< Vector2F > Vector2FArray
An array of Math::Vector2F objects.
Definition: VectorArray.hpp:69
VectorArray< Vector3D > Vector3DArray
An array of Math::Vector3D objects.
Definition: VectorArray.hpp:84
VectorArray< Vector2L > Vector2LArray
An array of Math::Vector2L objects.
Definition: VectorArray.hpp:89
VectorArray< Vector2UL > Vector2ULArray
An array of Math::Vector2UL objects.
Definition: VectorArray.hpp:99
VectorArray< Vector3F > Vector3FArray
An array of Math::Vector3F objects.
Definition: VectorArray.hpp:74
VectorArray< Vector2D > Vector2DArray
An array of Math::Vector2D objects.
Definition: VectorArray.hpp:79
VectorArray< Vector3L > Vector3LArray
An array of Math::Vector3L objects.
Definition: VectorArray.hpp:94
VectorArray< Vector3UL > Vector3ULArray
An array of Math::Vector3UL objects.
Definition: VectorArray.hpp:104
The namespace of the Chemical Data Processing Library.