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

Block containing a list of indices with an offset. More...

#include <arcane/core/BlockIndexList.h>

Collaboration diagram for Arcane::BlockIndex:

Public Member Functions

Int32 operator[] (Int32 i) const
 i-th value of the block
Int16 size () const
 Size of the block.
Int32 valueOffset () const
 Offset of the block values.

Static Public Attributes

static constexpr Int16 MAX_BLOCK_SIZE = 512

Private Member Functions

 BlockIndex (const Int32 *ptr, Int32 value_offset, Int16 size)

Private Attributes

const Int32m_block_start = nullptr
Int32 m_value_offset = 0
Int16 m_size = 0

Friends

class BlockIndexList

Detailed Description

Block containing a list of indices with an offset.

Warning
Experimental API

Definition at line 36 of file BlockIndexList.h.

Constructor & Destructor Documentation

◆ BlockIndex()

Arcane::BlockIndex::BlockIndex ( const Int32 * ptr,
Int32 value_offset,
Int16 size )
inlineprivate

Definition at line 46 of file BlockIndexList.h.

Member Function Documentation

◆ operator[]()

Int32 Arcane::BlockIndex::operator[] ( Int32 i) const
inline

i-th value of the block

Definition at line 55 of file BlockIndexList.h.

◆ size()

Int16 Arcane::BlockIndex::size ( ) const
inline

Size of the block.

Definition at line 62 of file BlockIndexList.h.

◆ valueOffset()

Int32 Arcane::BlockIndex::valueOffset ( ) const
inline

Offset of the block values.

Definition at line 65 of file BlockIndexList.h.

◆ BlockIndexList

friend class BlockIndexList
friend

Definition at line 38 of file BlockIndexList.h.

Member Data Documentation

◆ m_block_start

const Int32* Arcane::BlockIndex::m_block_start = nullptr
private

Definition at line 69 of file BlockIndexList.h.

◆ m_size

Int16 Arcane::BlockIndex::m_size = 0
private

Definition at line 71 of file BlockIndexList.h.

◆ m_value_offset

Int32 Arcane::BlockIndex::m_value_offset = 0
private

Definition at line 70 of file BlockIndexList.h.

◆ MAX_BLOCK_SIZE

Int16 Arcane::BlockIndex::MAX_BLOCK_SIZE = 512
staticconstexpr

Definition at line 42 of file BlockIndexList.h.


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