Dune Core Modules (2.9.1)
vbvector.hh
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
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:443
bool operator==(const CreateIterator &it) const
equality
Definition: vbvector.hh:505
size_type index() const
dereferencing
Definition: vbvector.hh:511
SizeProxy reference
reference type
Definition: vbvector.hh:463
size_type * pointer
pointer type
Definition: vbvector.hh:460
bool operator!=(const CreateIterator &it) const
inequality
Definition: vbvector.hh:499
size_type value_type
value type
Definition: vbvector.hh:449
CreateIterator(VariableBlockVector &_v, int _i, bool _isEnd)
constructor
Definition: vbvector.hh:466
void setblocksize(size_type _k)
set size of current block
Definition: vbvector.hh:517
size_type & operator*()
Access size of current block.
Definition: vbvector.hh:528
std::output_iterator_tag iterator_category
iterator category
Definition: vbvector.hh:446
CreateIterator & operator++()
prefix increment
Definition: vbvector.hh:482
void difference_type
difference type (unused)
Definition: vbvector.hh:457
Iterator class for sequential access.
Definition: vbvector.hh:584
RealIterator(window_type *_p, size_type _i)
constructor
Definition: vbvector.hh:594
bool equals(const RealIterator &it) const
equality
Definition: vbvector.hh:611
size_type index() const
Return the index of the entry this iterator is pointing to.
Definition: vbvector.hh:639
void decrement()
prefix decrement
Definition: vbvector.hh:605
void increment()
prefix increment
Definition: vbvector.hh:599
RealIterator()
constructor, no arguments
Definition: vbvector.hh:587
window_type & dereference() const
dereferencing
Definition: vbvector.hh:617
typename Imp::BlockTraits< B >::field_type field_type
export the type representing the field
Definition: vbvector.hh:55
A allocator_type
export the allocator type
Definition: vbvector.hh:58
VariableBlockVector(size_type _nblocks, size_type m)
Definition: vbvector.hh:134
size_type N() const
number of blocks in the vector (are of variable size here)
Definition: vbvector.hh:726
VariableBlockVector(const VariableBlockVector &a)
copy constructor, has copy semantics
Definition: vbvector.hh:172
VariableBlockVector(size_type _nblocks)
Definition: vbvector.hh:108
~VariableBlockVector()
free dynamic memory
Definition: vbvector.hh:215
window_type & operator[](size_type i)
random access to blocks
Definition: vbvector.hh:563
CreateIterator createend()
get create iterator pointing to one after the last block
Definition: vbvector.hh:552
CreateIterator createbegin()
get initial create iterator
Definition: vbvector.hh:543
VariableBlockVector & operator=(const VariableBlockVector &a)
assignment
Definition: vbvector.hh:322
ConstIterator rend() const
end ConstIterator
Definition: vbvector.hh:706
A::size_type size_type
The size type for the index access.
Definition: vbvector.hh:73
ConstIterator find(size_type i) const
random access returning iterator (end if not contained)
Definition: vbvector.hh:718
Iterator find(size_type i)
random access returning iterator (end if not contained)
Definition: vbvector.hh:712
const window_type & const_reference
Export type used for const references to container entries.
Definition: vbvector.hh:70
RealIterator< const value_type, const window_type & > ConstIterator
Const iterator.
Definition: vbvector.hh:681
ConstIterator begin() const
begin ConstIterator
Definition: vbvector.hh:687
BlockVector< B, A > value_type
Type of the elements of the outer vector, i.e., dynamic vectors of B.
Definition: vbvector.hh:80
BlockVector< B, A > block_type
Same as value_type, here for historical reasons.
Definition: vbvector.hh:84
void resize(size_type _nblocks, size_type m)
same effect as constructor with same argument
Definition: vbvector.hh:270
window_type & reference
Export type used for references to container entries.
Definition: vbvector.hh:64
void resize(size_type _nblocks)
same effect as constructor with same argument
Definition: vbvector.hh:234
auto min(ADLTag< 0 >, const V &v1, const V &v2)
implements binary Simd::min()
Definition: defaults.hh:89
This file implements iterator facade classes for writing stl conformant iterators.
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Nov 21, 23:30, 2024)