Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::BlockIndexList Class Reference

Class managing an array in the form of a block list. More...

#include <arcane/core/BlockIndexList.h>

Collaboration diagram for Arcane::BlockIndexList:

Public Member Functions

Int32 nbBlock () const
Real memoryRatio () const
void reset ()
BlockIndex block (Int32 i) const
void fillArray (Array< Int32 > &v)

Private Member Functions

void _setBlockIndexAndOffset (Int32 block, Int32 index, Int32 offset)
void _setNbBlock (Int32 nb_block)
Int32 _currentIndexPosition () const
void _addBlockInfo (const Int32 *data, Int16 size)
Int32 _computeNbContigusBlock () const

Private Attributes

UniqueArray< Int32m_indexes
 List of indexes.
UniqueArray< Int32m_blocks_index_and_offset
Int32 m_original_size = 0
 Original size of the index array.
Int32 m_nb_block = 0
 Number of blocks (m_original_size/m_block_size rounded up).
Int16 m_block_size = 0
 Size of a block.
Int16 m_last_block_size = 0
 Size of the last block.

Friends

class BlockIndexListBuilder

Detailed Description

Class managing an array in the form of a block list.

Warning
Experimental API

Definition at line 82 of file BlockIndexList.h.

Member Function Documentation

◆ _addBlockInfo()

void Arcane::BlockIndexList::_addBlockInfo ( const Int32 * data,
Int16 size )
private

Definition at line 103 of file BlockIndexList.cc.

◆ _computeNbContigusBlock()

Int32 Arcane::BlockIndexList::_computeNbContigusBlock ( ) const
private

Definition at line 112 of file BlockIndexList.cc.

◆ _currentIndexPosition()

Int32 Arcane::BlockIndexList::_currentIndexPosition ( ) const
private

Definition at line 94 of file BlockIndexList.cc.

◆ _setBlockIndexAndOffset()

void Arcane::BlockIndexList::_setBlockIndexAndOffset ( Int32 block,
Int32 index,
Int32 offset )
private

Definition at line 74 of file BlockIndexList.cc.

◆ _setNbBlock()

void Arcane::BlockIndexList::_setNbBlock ( Int32 nb_block)
private

Definition at line 84 of file BlockIndexList.cc.

◆ block()

BlockIndex Arcane::BlockIndexList::block ( Int32 i) const
inline

Definition at line 93 of file BlockIndexList.h.

◆ fillArray()

void Arcane::BlockIndexList::fillArray ( Array< Int32 > & v)

Definition at line 46 of file BlockIndexList.cc.

◆ memoryRatio()

Real Arcane::BlockIndexList::memoryRatio ( ) const

Definition at line 33 of file BlockIndexList.cc.

◆ nbBlock()

Int32 Arcane::BlockIndexList::nbBlock ( ) const
inline

Definition at line 90 of file BlockIndexList.h.

◆ reset()

void Arcane::BlockIndexList::reset ( )

Definition at line 60 of file BlockIndexList.cc.

◆ BlockIndexListBuilder

friend class BlockIndexListBuilder
friend

Definition at line 84 of file BlockIndexList.h.

Member Data Documentation

◆ m_block_size

Int16 Arcane::BlockIndexList::m_block_size = 0
private

Size of a block.

Definition at line 113 of file BlockIndexList.h.

◆ m_blocks_index_and_offset

UniqueArray<Int32> Arcane::BlockIndexList::m_blocks_index_and_offset
private

Definition at line 107 of file BlockIndexList.h.

◆ m_indexes

UniqueArray<Int32> Arcane::BlockIndexList::m_indexes
private

List of indexes.

Definition at line 105 of file BlockIndexList.h.

◆ m_last_block_size

Int16 Arcane::BlockIndexList::m_last_block_size = 0
private

Size of the last block.

Definition at line 115 of file BlockIndexList.h.

◆ m_nb_block

Int32 Arcane::BlockIndexList::m_nb_block = 0
private

Number of blocks (m_original_size/m_block_size rounded up).

Definition at line 111 of file BlockIndexList.h.

◆ m_original_size

Int32 Arcane::BlockIndexList::m_original_size = 0
private

Original size of the index array.

Definition at line 109 of file BlockIndexList.h.


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