dune-fem  2.4.1-rc
Public Types | Public Member Functions | List of all members
Dune::Fem::DynamicReferenceVector< K, A > Class Template Reference

Construct a vector with a dynamic size. More...

#include </local/tomalk/somewhere/tmp/dune-fem/dune/fem/common/referencevector.hh>

Inheritance diagram for Dune::Fem::DynamicReferenceVector< K, A >:
Inheritance graph

Public Types

typedef Base::size_type size_type
 
typedef Base::value_type value_type
 

Public Member Functions

 DynamicReferenceVector (const A &a=A())
 Constructor making uninitialized vector. More...
 
 DynamicReferenceVector (size_type n, const A &a=A())
 Constructor making vector with identical coordinates. More...
 
 DynamicReferenceVector (const This &other)
 
 DynamicReferenceVector (This &&other)
 
template<class V >
Thisoperator= (const DenseVector< V > &other)
 
Thisoperator= (const This &other)
 
Thisoperator= (This &&other)
 
size_type capacity () const
 Number of elements for which memory has been allocated. More...
 
void resize (size_type n)
 
void reserve (size_type n)
 
void bind (size_type i, K &u)
 bind i-th entry to a reference More...
 
void unbind (size_type i)
 
size_type vec_size () const
 
K & vec_access (size_type i)
 
const K & vec_access (size_type i) const
 

Detailed Description

template<class K, class A>
class Dune::Fem::DynamicReferenceVector< K, A >

Construct a vector with a dynamic size.

Template Parameters
Kis the field type (use float, double, complex, etc)

Member Typedef Documentation

template<class K , class A >
typedef Base::size_type Dune::Fem::DynamicReferenceVector< K, A >::size_type
template<class K , class A >
typedef Base::value_type Dune::Fem::DynamicReferenceVector< K, A >::value_type

Constructor & Destructor Documentation

template<class K , class A >
Dune::Fem::DynamicReferenceVector< K, A >::DynamicReferenceVector ( const A &  a = A())
inlineexplicit

Constructor making uninitialized vector.

template<class K , class A >
Dune::Fem::DynamicReferenceVector< K, A >::DynamicReferenceVector ( size_type  n,
const A &  a = A() 
)
inlineexplicit

Constructor making vector with identical coordinates.

template<class K , class A >
Dune::Fem::DynamicReferenceVector< K, A >::DynamicReferenceVector ( const This other)
inline
template<class K , class A >
Dune::Fem::DynamicReferenceVector< K, A >::DynamicReferenceVector ( This &&  other)
inline

Member Function Documentation

template<class K , class A >
void Dune::Fem::DynamicReferenceVector< K, A >::bind ( size_type  i,
K &  u 
)
inline

bind i-th entry to a reference

template<class K , class A >
size_type Dune::Fem::DynamicReferenceVector< K, A >::capacity ( ) const
inline

Number of elements for which memory has been allocated.

capacity() is always greater than or equal to size().

template<class K , class A >
template<class V >
This& Dune::Fem::DynamicReferenceVector< K, A >::operator= ( const DenseVector< V > &  other)
inline
template<class K , class A >
This& Dune::Fem::DynamicReferenceVector< K, A >::operator= ( const This other)
inline
template<class K , class A >
This& Dune::Fem::DynamicReferenceVector< K, A >::operator= ( This &&  other)
inline

References Dune::Fem::move().

template<class K , class A >
void Dune::Fem::DynamicReferenceVector< K, A >::reserve ( size_type  n)
inline
template<class K , class A >
void Dune::Fem::DynamicReferenceVector< K, A >::resize ( size_type  n)
inline
template<class K , class A >
void Dune::Fem::DynamicReferenceVector< K, A >::unbind ( size_type  i)
inline
template<class K , class A >
K& Dune::Fem::DynamicReferenceVector< K, A >::vec_access ( size_type  i)
inline
template<class K , class A >
const K& Dune::Fem::DynamicReferenceVector< K, A >::vec_access ( size_type  i) const
inline
template<class K , class A >
size_type Dune::Fem::DynamicReferenceVector< K, A >::vec_size ( ) const
inline

The documentation for this class was generated from the following file: