28template <
typename ValueT>
37 virtual ~BaseInserter();
44 Integer
getId()
const;
59 void setMatrixValues(ValueT* matrix_values);
67 Integer m_current_size;
72 UniqueArray<Integer> m_n;
73 Integer m_current_block_size_row;
74 Integer m_current_block_size_col;
75 UniqueArray<Integer> m_block_size_row;
76 UniqueArray<Integer> m_block_size_col;
77 UniqueArray<Integer> m_row_index;
78 UniqueArray<Integer> m_col_index;
87template <
typename ValueT>
95 void addMatrixEntry(Integer row_index, Integer col_index);
100template <
typename ValueT>
108 Filler& operator++();
110 void addBlockData(ConstArray2View<ValueT> values);
126template <
typename ValueT>
139 virtual ~Inserter() {}
void init()
@ Méthodes visibles de l'extérieur
bool isEnd()
Retourn true, le filler est à la fin.
Integer getId() const
Identifiant de l'inserter dans son StreamVBlockMatrixBuilder.
void end()
Termine l'inserter (déallocation des données).
Integer size()
Nombre d'itération dans l'inserter.
bool isBegin()
Retourne si le filler est au début.
Integer count()
Nombre de données dans l'inserter.
UniqueArray< Integer > m_data_index
positon of entry in the Matrix CSR structure
Integer currentSize()
Taille du bloc courant à insérer.
bool isEnd()
Retourn true, le filler est à la fin.
void start()
Redémarre le filler au début.
Integer index()
Retourne l'index d'itération courante de l'inserter.
StreamVBlockMatrixBuilderT(VBlockMatrix &matrix, bool init_and_start=true)
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --