Dune Core Modules (unstable)
vbvector.hh
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright © DUNE Project contributors, see file LICENSE.md in module root
129 VariableBlockVector (size_type _nblocks, size_type m) : Imp::block_vector_unmanaged<B,size_type>()
Helper functions for determining the vector/matrix block level.
This file implements a vector space as a tensor product of a given vector space. The number of compon...
Base class for stl conformant forward iterators.
Definition: iteratorfacades.hh:434
Iterator class for sequential creation of blocks.
Definition: vbvector.hh:438
bool operator==(const CreateIterator &it) const
equality
Definition: vbvector.hh:500
size_type index() const
dereferencing
Definition: vbvector.hh:506
SizeProxy reference
reference type
Definition: vbvector.hh:458
CreateIterator & operator++()
prefix increment
Definition: vbvector.hh:477
size_type * pointer
pointer type
Definition: vbvector.hh:455
bool operator!=(const CreateIterator &it) const
inequality
Definition: vbvector.hh:494
size_type value_type
value type
Definition: vbvector.hh:444
CreateIterator(VariableBlockVector &_v, int _i, bool _isEnd)
constructor
Definition: vbvector.hh:461
void setblocksize(size_type _k)
set size of current block
Definition: vbvector.hh:512
std::output_iterator_tag iterator_category
iterator category
Definition: vbvector.hh:441
size_type & operator*()
Access size of current block.
Definition: vbvector.hh:523
void difference_type
difference type (unused)
Definition: vbvector.hh:452
Iterator class for sequential access.
Definition: vbvector.hh:579
RealIterator(window_type *_p, size_type _i)
constructor
Definition: vbvector.hh:589
window_type & dereference() const
dereferencing
Definition: vbvector.hh:612
bool equals(const RealIterator &it) const
equality
Definition: vbvector.hh:606
size_type index() const
Return the index of the entry this iterator is pointing to.
Definition: vbvector.hh:634
void decrement()
prefix decrement
Definition: vbvector.hh:600
void increment()
prefix increment
Definition: vbvector.hh:594
RealIterator()
constructor, no arguments
Definition: vbvector.hh:582
typename Imp::BlockTraits< B >::field_type field_type
export the type representing the field
Definition: vbvector.hh:56
A allocator_type
export the allocator type
Definition: vbvector.hh:59
VariableBlockVector(size_type _nblocks, size_type m)
Definition: vbvector.hh:129
size_type N() const
number of blocks in the vector (are of variable size here)
Definition: vbvector.hh:721
VariableBlockVector(const VariableBlockVector &a)
copy constructor, has copy semantics
Definition: vbvector.hh:167
VariableBlockVector(size_type _nblocks)
Definition: vbvector.hh:103
~VariableBlockVector()
free dynamic memory
Definition: vbvector.hh:210
CreateIterator createend()
get create iterator pointing to one after the last block
Definition: vbvector.hh:547
CreateIterator createbegin()
get initial create iterator
Definition: vbvector.hh:538
VariableBlockVector & operator=(const VariableBlockVector &a)
assignment
Definition: vbvector.hh:317
ConstIterator rend() const
end ConstIterator
Definition: vbvector.hh:701
A::size_type size_type
The size type for the index access.
Definition: vbvector.hh:74
ConstIterator find(size_type i) const
random access returning iterator (end if not contained)
Definition: vbvector.hh:713
Iterator find(size_type i)
random access returning iterator (end if not contained)
Definition: vbvector.hh:707
const window_type & const_reference
Export type used for const references to container entries.
Definition: vbvector.hh:71
RealIterator< const value_type, const window_type & > ConstIterator
Const iterator.
Definition: vbvector.hh:676
ConstIterator begin() const
begin ConstIterator
Definition: vbvector.hh:682
BlockVector< B, A > value_type
Type of the elements of the outer vector, i.e., dynamic vectors of B.
Definition: vbvector.hh:81
window_type & operator[](size_type i)
random access to blocks
Definition: vbvector.hh:558
BlockVector< B, A > block_type
Same as value_type, here for historical reasons.
Definition: vbvector.hh:85
void resize(size_type _nblocks, size_type m)
same effect as constructor with same argument
Definition: vbvector.hh:265
window_type & reference
Export type used for references to container entries.
Definition: vbvector.hh:65
void resize(size_type _nblocks)
same effect as constructor with same argument
Definition: vbvector.hh:229
Type traits to determine the type of reals (when working with complex numbers)
constexpr auto min
Function object that returns the smaller of the given values.
Definition: hybridutilities.hh:506
This file implements iterator facade classes for writing stl conformant iterators.
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.80.0
(Apr 27, 22:29, 2024)