MFEM v4.8.0
Finite element discretization library
Loading...
Searching...
No Matches
mfem::ListOfIntegerSets Class Reference

List of integer sets. More...

#include <sets.hpp>

Public Member Functions

int Size () const
 Return the number of integer sets in the list.
 
int PickElementInSet (int i) const
 Return the value of the first element of the ith set.
 
int PickRandomElementInSet (int i) const
 Return a random value from the ith set in the list.
 
int Insert (const IntegerSet &s)
 Check to see if set 's' is in the list. If not append it to the end of the list. Returns the index of the list where set 's' can be found.
 
int Lookup (const IntegerSet &s) const
 
void AsTable (Table &t) const
 Write the list of sets into table 't'.
 
 ~ListOfIntegerSets ()
 

Detailed Description

List of integer sets.

Definition at line 50 of file sets.hpp.

Constructor & Destructor Documentation

◆ ~ListOfIntegerSets()

mfem::ListOfIntegerSets::~ListOfIntegerSets ( )

Definition at line 103 of file sets.cpp.

Member Function Documentation

◆ AsTable()

void mfem::ListOfIntegerSets::AsTable ( Table & t) const

Write the list of sets into table 't'.

Definition at line 81 of file sets.cpp.

◆ Insert()

int mfem::ListOfIntegerSets::Insert ( const IntegerSet & s)

Check to see if set 's' is in the list. If not append it to the end of the list. Returns the index of the list where set 's' can be found.

Definition at line 56 of file sets.cpp.

◆ Lookup()

int mfem::ListOfIntegerSets::Lookup ( const IntegerSet & s) const

Return the index of the list where set 's' can be found. Returns -1 if not found.

Definition at line 69 of file sets.cpp.

◆ PickElementInSet()

int mfem::ListOfIntegerSets::PickElementInSet ( int i) const
inline

Return the value of the first element of the ith set.

Definition at line 61 of file sets.hpp.

◆ PickRandomElementInSet()

int mfem::ListOfIntegerSets::PickRandomElementInSet ( int i) const
inline

Return a random value from the ith set in the list.

Definition at line 64 of file sets.hpp.

◆ Size()

int mfem::ListOfIntegerSets::Size ( ) const
inline

Return the number of integer sets in the list.

Definition at line 58 of file sets.hpp.


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