Dune::InterfaceInformation Class Reference

Information describing an interface. More...

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

List of all members.

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.
std::size_t operator[] (size_t i) const
 Get the local index for an entry.
void reserve (size_t size)
 Reserve space for a number of entries.
void free ()
void add (std::size_t index)
 Add a new index to the interface.
 InterfaceInformation ()
virtual ~InterfaceInformation ()
bool operator!= (const InterfaceInformation &o) const
bool operator== (const InterfaceInformation &o) const

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.


Constructor & Destructor Documentation

Dune::InterfaceInformation::InterfaceInformation (  )  [inline]
virtual Dune::InterfaceInformation::~InterfaceInformation (  )  [inline, virtual]

Member Function Documentation

void Dune::InterfaceInformation::add ( std::size_t  index  )  [inline]

Add a new index to the interface.

void Dune::InterfaceInformation::free (  )  [inline]

brief Frees allocated memory.

bool Dune::InterfaceInformation::operator!= ( const InterfaceInformation o  )  const [inline]

References operator==().

bool Dune::InterfaceInformation::operator== ( const InterfaceInformation o  )  const [inline]

Referenced by operator!=().

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

Get the local index for an entry.

Parameters:
i The index of the entry.
std::size_t Dune::InterfaceInformation::operator[] ( size_t  i  )  const [inline]

Get the local index for an entry.

Parameters:
i The index of the entry.
void Dune::InterfaceInformation::reserve ( size_t  size  )  [inline]

Reserve space for a number of entries.

Parameters:
size The maximum number of entries to hold.
size_t Dune::InterfaceInformation::size (  )  const [inline]

Get the number of entries in the interface.

Referenced by Dune::Interface::print().


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

Generated on Fri Apr 29 2011 with Doxygen (ver 1.7.1) [doxygen-log,error-log].