Dune Core Modules (2.4.1)

Dune::InterfaceInformation Class Reference

Information describing an interface. More...

#include <dune/common/parallel/interface.hh>

Public Member Functions

size_t size () const
 Get the number of entries in the interface.
 
std::size_t & operator[] (size_t i)
 Get the local index for an entry. More...
 
std::size_t operator[] (size_t i) const
 Get the local index for an entry. More...
 
void reserve (size_t size)
 Reserve space for a number of entries. More...
 
void free ()
 
void add (std::size_t index)
 Add a new index to the interface.
 

Detailed Description

Information describing an interface.

This class is used for temporary gathering information about the interface needed for actually building it. It is used be class Interface as functor for InterfaceBuilder::build.

Member Function Documentation

◆ free()

void Dune::InterfaceInformation::free ( )
inline

brief Frees allocated memory.

◆ operator[]() [1/2]

std::size_t & Dune::InterfaceInformation::operator[] ( size_t  i)
inline

Get the local index for an entry.

Parameters
iThe index of the entry.

◆ operator[]() [2/2]

std::size_t Dune::InterfaceInformation::operator[] ( size_t  i) const
inline

Get the local index for an entry.

Parameters
iThe index of the entry.

◆ reserve()

void Dune::InterfaceInformation::reserve ( size_t  size)
inline

Reserve space for a number of entries.

Parameters
sizeThe maximum number of entries to hold.

References size().


The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Dec 22, 23:30, 2024)