Reference documentation for deal.II version 9.4.1
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Attributes | Private Attributes | List of all members
Utilities::MPI::internal::ComputeIndexOwner::FlexibleIndexStorage Class Reference

#include <deal.II/base/mpi_compute_index_owner_internal.h>

Public Types

using index_type = unsigned int
 

Public Member Functions

 FlexibleIndexStorage (const bool use_vector=true)
 
void reinit (const bool use_vector, const bool index_range_contiguous, const std::size_t size)
 
void fill (const std::size_t start, const std::size_t end, const index_type &value)
 
index_typeoperator[] (const std::size_t index)
 
index_type operator[] (const std::size_t index) const
 
bool entry_has_been_set (const std::size_t index) const
 

Static Public Attributes

static const index_type invalid_index_value
 

Private Attributes

bool use_vector
 
std::size_t size
 
std::vector< index_typedata
 
std::map< std::size_t, index_typedata_map
 

Detailed Description

Definition at line 38 of file mpi_compute_index_owner_internal.h.

Member Typedef Documentation

◆ index_type

Definition at line 41 of file mpi_compute_index_owner_internal.h.

Constructor & Destructor Documentation

◆ FlexibleIndexStorage()

Utilities::MPI::internal::ComputeIndexOwner::FlexibleIndexStorage::FlexibleIndexStorage ( const bool  use_vector = true)

Definition at line 38 of file mpi_compute_index_owner_internal.cc.

Member Function Documentation

◆ reinit()

void Utilities::MPI::internal::ComputeIndexOwner::FlexibleIndexStorage::reinit ( const bool  use_vector,
const bool  index_range_contiguous,
const std::size_t  size 
)

Definition at line 46 of file mpi_compute_index_owner_internal.cc.

◆ fill()

void Utilities::MPI::internal::ComputeIndexOwner::FlexibleIndexStorage::fill ( const std::size_t  start,
const std::size_t  end,
const index_type value 
)

Definition at line 65 of file mpi_compute_index_owner_internal.cc.

◆ operator[]() [1/2]

FlexibleIndexStorage::index_type & Utilities::MPI::internal::ComputeIndexOwner::FlexibleIndexStorage::operator[] ( const std::size_t  index)

Definition at line 107 of file mpi_compute_index_owner_internal.cc.

◆ operator[]() [2/2]

FlexibleIndexStorage::index_type Utilities::MPI::internal::ComputeIndexOwner::FlexibleIndexStorage::operator[] ( const std::size_t  index) const

Definition at line 128 of file mpi_compute_index_owner_internal.cc.

◆ entry_has_been_set()

bool Utilities::MPI::internal::ComputeIndexOwner::FlexibleIndexStorage::entry_has_been_set ( const std::size_t  index) const

Definition at line 149 of file mpi_compute_index_owner_internal.cc.

Member Data Documentation

◆ invalid_index_value

const FlexibleIndexStorage::index_type Utilities::MPI::internal::ComputeIndexOwner::FlexibleIndexStorage::invalid_index_value
static
Initial value:
=
static const unsigned int invalid_unsigned_int
Definition: types.h:201

Definition at line 42 of file mpi_compute_index_owner_internal.h.

◆ use_vector

bool Utilities::MPI::internal::ComputeIndexOwner::FlexibleIndexStorage::use_vector
private

Definition at line 67 of file mpi_compute_index_owner_internal.h.

◆ size

std::size_t Utilities::MPI::internal::ComputeIndexOwner::FlexibleIndexStorage::size
private

Definition at line 68 of file mpi_compute_index_owner_internal.h.

◆ data

std::vector<index_type> Utilities::MPI::internal::ComputeIndexOwner::FlexibleIndexStorage::data
private

Definition at line 69 of file mpi_compute_index_owner_internal.h.

◆ data_map

std::map<std::size_t, index_type> Utilities::MPI::internal::ComputeIndexOwner::FlexibleIndexStorage::data_map
private

Definition at line 70 of file mpi_compute_index_owner_internal.h.


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