Chemical Data Processing Library C++ API - Version 1.1.1
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
CDPL::Math::Vector3LArray
VectorArray< Vector3L > Vector3LArray
An array of Math::Vector3L objects.
Definition: VectorArray.hpp:94
CDPL::Math::VectorArray
An array for storing generic vector objects.
Definition: VectorArray.hpp:49
CDPL::Util::Array
A dynamic array class providing amortized constant time access to arbitrary elements.
Definition: Array.hpp:92
CDPL::Math::Vector3ULArray
VectorArray< Vector3UL > Vector3ULArray
An array of Math::Vector3UL objects.
Definition: VectorArray.hpp:104
VectorArray< Vector3D >
Array.hpp
Definition of the class CDPL::Util::Array.
CDPL::Math::Vector2ULArray
VectorArray< Vector2UL > Vector2ULArray
An array of Math::Vector2UL objects.
Definition: VectorArray.hpp:99
CDPL::Math::Vector2LArray
VectorArray< Vector2L > Vector2LArray
An array of Math::Vector2L objects.
Definition: VectorArray.hpp:89
CDPL::Math::Vector3DArray
VectorArray< Vector3D > Vector3DArray
An array of Math::Vector3D objects.
Definition: VectorArray.hpp:84
CDPL::Math::Vector3FArray
VectorArray< Vector3F > Vector3FArray
An array of Math::Vector3F objects.
Definition: VectorArray.hpp:74
CDPL::Math::VectorArray::SharedPointer
std::shared_ptr< VectorArray > SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated VectorArray instances.
Definition: VectorArray.hpp:57
CDPL::Chem::AtomType::V
const unsigned int V
Specifies Vanadium.
Definition: AtomType.hpp:177
CDPL
The namespace of the Chemical Data Processing Library.
CDPL::Math::Vector2FArray
VectorArray< Vector2F > Vector2FArray
An array of Math::Vector2F objects.
Definition: VectorArray.hpp:69
CDPL::Math::Vector2DArray
VectorArray< Vector2D > Vector2DArray
An array of Math::Vector2D objects.
Definition: VectorArray.hpp:79
CDPL::Math::VectorArray::ValueType
V ValueType
Definition: VectorArray.hpp:52
Vector.hpp
Definition of vector data types.