Reference documentation for deal.II version 9.1.0-pre
Public Member Functions | List of all members
IndexSet::Range Struct Reference

Public Member Functions

 Range ()
 
 Range (const size_type i1, const size_type i2)
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Detailed Description

A type that denotes the half open index range [begin,end).

The nth_index_in_set denotes the how many-th index within this IndexSet the first element of the current range is. This information is only accurate if IndexSet::compress() has been called after the last insertion.

Definition at line 832 of file index_set.h.

Constructor & Destructor Documentation

IndexSet::Range::Range ( )
inline

Default constructor. Since there is no useful choice for a default constructed interval, this constructor simply creates something that resembles an invalid range. We need this constructor for serialization purposes, but the invalid range should be filled with something read from the archive before it is used, so we should hopefully never get to see an invalid range in the wild.

Definition at line 1423 of file index_set.h.

IndexSet::Range::Range ( const size_type  i1,
const size_type  i2 
)
inline

Constructor. Create a half-open interval with the given indices.

Parameters
i1Left end point of the interval.
i2First index greater than the last index of the indicated range.

Definition at line 1431 of file index_set.h.

Member Function Documentation

template<class Archive >
void IndexSet::Range::serialize ( Archive &  ar,
const unsigned int  version 
)
inline

Write or read the data of this object to or from a stream for the purpose of serialization

Definition at line 1951 of file index_set.h.


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