dune-fem 2.8.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
Dune::Fem::DynamicReferenceVector< K, A > Class Template Reference

An implementation of DenseVector which uses a std::vector of references as storage. More...

#include <dune/fem/storage/referencevector.hh>

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

Public Types

typedef BaseType::size_type size_type
 
typedef BaseType::value_type value_type
 
typedef value_type FieldType
 
typedef DenseMatVecTraits< ThisType >::container_type DofStorageType
 

Public Member Functions

 DynamicReferenceVector (const A &a=A())
 Constructor with uninitialized vector.
 
 DynamicReferenceVector (size_type n, const A &a=A())
 Constructor with uninitialized vector of size n.
 
 DynamicReferenceVector (const ThisType &other)
 Copy constructor.
 
 DynamicReferenceVector (ThisType &&other)
 Move constructor.
 
ThisTypeoperator= (const value_type &k)
 
template<class V >
ThisTypeoperator= (const DenseVector< V > &other)
 
ThisTypeoperator= (const ThisType &other)
 
ThisTypeoperator= (ThisType &&other)
 
size_type capacity () const
 
void resize (size_type n)
 
void reserve (size_type n)
 
void bind (size_type i, K &u)
 Bind i-th entry to a reference.
 
void unbind (size_type i)
 Unbind i-th entry.
 
size_type size () const
 
value_typeoperator[] (size_type i)
 
const value_typeoperator[] (size_type i) const
 
void clear ()
 

Detailed Description

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

An implementation of DenseVector which uses a std::vector of references as storage.

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

Member Typedef Documentation

◆ DofStorageType

template<class K , class A >
typedef DenseMatVecTraits<ThisType>::container_type Dune::Fem::DynamicReferenceVector< K, A >::DofStorageType

◆ FieldType

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

◆ size_type

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

◆ value_type

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

Constructor & Destructor Documentation

◆ DynamicReferenceVector() [1/4]

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

Constructor with uninitialized vector.

◆ DynamicReferenceVector() [2/4]

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

Constructor with uninitialized vector of size n.

◆ DynamicReferenceVector() [3/4]

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

Copy constructor.

◆ DynamicReferenceVector() [4/4]

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

Move constructor.

Member Function Documentation

◆ bind()

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.

◆ capacity()

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

◆ clear()

template<class K , class A >
void Dune::Fem::DynamicReferenceVector< K, A >::clear ( )
inline

◆ operator=() [1/4]

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

◆ operator=() [2/4]

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

◆ operator=() [3/4]

template<class K , class A >
ThisType & Dune::Fem::DynamicReferenceVector< K, A >::operator= ( const value_type k)
inline

◆ operator=() [4/4]

template<class K , class A >
ThisType & Dune::Fem::DynamicReferenceVector< K, A >::operator= ( ThisType &&  other)
inline

◆ operator[]() [1/2]

template<class K , class A >
value_type & Dune::Fem::DynamicReferenceVector< K, A >::operator[] ( size_type  i)
inline

◆ operator[]() [2/2]

template<class K , class A >
const value_type & Dune::Fem::DynamicReferenceVector< K, A >::operator[] ( size_type  i) const
inline

◆ reserve()

template<class K , class A >
void Dune::Fem::DynamicReferenceVector< K, A >::reserve ( size_type  n)
inline

◆ resize()

template<class K , class A >
void Dune::Fem::DynamicReferenceVector< K, A >::resize ( size_type  n)
inline

◆ size()

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

◆ unbind()

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

Unbind i-th entry.


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