|
dune-common
2.6-git
|
Construct a vector with a dynamic size. More...
#include <dune/common/dynvector.hh>

Public Types | |
| typedef Base::size_type | size_type |
| typedef Base::value_type | value_type |
| typedef std::vector< K, Allocator > | container_type |
| typedef Allocator | allocator_type |
Public Member Functions | |
| DynamicVector (const allocator_type &a=allocator_type()) | |
| Constructor making uninitialized vector. More... | |
| DynamicVector (size_type n, const allocator_type &a=allocator_type()) | |
| DynamicVector (size_type n, value_type c, const allocator_type &a=allocator_type()) | |
| Constructor making vector with identical coordinates. More... | |
| DynamicVector (std::initializer_list< K > const &l) | |
| Construct from a std::initializer_list. More... | |
| DynamicVector (const DynamicVector &x) | |
| Constructor making vector with identical coordinates. More... | |
| DynamicVector (DynamicVector &&x) | |
| Move constructor. More... | |
| template<class T > | |
| DynamicVector (const DynamicVector< T, Allocator > &x) | |
| template<class X > | |
| DynamicVector (const DenseVector< X > &x, const allocator_type &a=allocator_type()) | |
| Copy constructor from another DenseVector. More... | |
| DynamicVector & | operator= (const DynamicVector &other) |
| Copy assignment operator. More... | |
| DynamicVector & | operator= (DynamicVector &&other) |
| Move assignment operator. More... | |
| size_type | capacity () const |
| Number of elements for which memory has been allocated. More... | |
| void | resize (size_type n, value_type c=value_type()) |
| void | reserve (size_type n) |
| size_type | size () const |
| K & | operator[] (size_type i) |
| const K & | operator[] (size_type i) const |
| const container_type & | container () const |
| container_type & | container () |
| derived_type & | operator= (const value_type &k) |
| Assignment operator for scalar. More... | |
Related Functions | |
(Note that these are not member functions.) | |
| template<class K , class Allocator > | |
| std::istream & | operator>> (std::istream &in, DynamicVector< K, Allocator > &v) |
| Read a DynamicVector from an input stream. More... | |
Construct a vector with a dynamic size.
| K | is the field type (use float, double, complex, etc) |
| Allocator | type of allocator object used to define the storage allocation model, default Allocator = std::allocator< K >. |
| typedef Allocator Dune::DynamicVector< K, Allocator >::allocator_type |
| typedef std::vector< K, Allocator > Dune::DynamicVector< K, Allocator >::container_type |
| typedef Base::size_type Dune::DynamicVector< K, Allocator >::size_type |
| typedef Base::value_type Dune::DynamicVector< K, Allocator >::value_type |
|
inlineexplicit |
Constructor making uninitialized vector.
|
inlineexplicit |
|
inline |
Constructor making vector with identical coordinates.
|
inline |
Construct from a std::initializer_list.
|
inline |
Constructor making vector with identical coordinates.
|
inline |
Move constructor.
|
inline |
|
inline |
Copy constructor from another DenseVector.
|
inline |
Number of elements for which memory has been allocated.
capacity() is always greater than or equal to size().
|
inline |
|
inline |
|
inline |
Copy assignment operator.
|
inline |
Assignment operator for scalar.
|
inline |
Move assignment operator.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
1.8.17