25#include <alien/kernels/composite/CompositeMultiVectorImpl.h>
26#include <alien/kernels/composite/CompositeVector.h>
29#include <alien/functional/NullVector.h>
30#include <alien/kernels/composite/CompositeSpace.h>
31#include <alien/utils/ICopyOnWriteObject.h>
39using namespace Arccore;
47 return v.composite(i);
62, m_composite_vector(m_impl->get<
Alien::BackEnd::tag::composite>(false))
64 m_impl->setFeature(
"composite");
85 for (Integer i = 0; i <
size; ++i)
139 m_impl->setFeature(feature);
147 return m_impl->hasFeature(feature);
181 for (Integer i = 0; i < this->
size(); ++i)
191 for (Integer i = 0; i < this->
size(); ++i)
Composite vector for heterogenous vector.
IVector & operator[](Arccore::Integer i)
Get the i-th subvector.
MultiVectorImpl * impl()
Get the multivector implementation.
CompositeKernel::Vector & m_composite_vector
The composite vector.
void resize(Arccore::Integer nc)
Resize the number of submatrices.
void visit(ICopyOnWriteVector &) const
Visit method.
CompositeKernel::VectorElement Element
Type of submatrix element.
void setUserFeature(Arccore::String feature)
Add a feature to the composite vector.
Element composite(Arccore::Integer i)
Get the i-th element.
std::shared_ptr< MultiVectorImpl > m_impl
The multivector implementation.
Arccore::Integer size() const
Get the number of subvectors.
bool hasUserFeature(Arccore::String feature) const
Check if the composite vector has a feature.
void free()
Free resources.
void clear()
Clear resources.
const ISpace & space() const
Get the space of the global vector.
CompositeVector()
Constructor.
Interface for algebraic space objects.
Interface for all vectors.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --