MFEM v4.7.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 ()
 Return the number of integer sets in the list.
 
int PickElementInSet (int i)
 Return the value of the first element of the ith set.
 
int PickRandomElementInSet (int i)
 Return a random value from the ith set in the list.
 
int Insert (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 (IntegerSet &s)
 
void AsTable (Table &t)
 Write the list of sets into table 't'.
 
 ~ListOfIntegerSets ()
 

Detailed Description

List of integer sets.

Definition at line 62 of file sets.hpp.

Constructor & Destructor Documentation

◆ ~ListOfIntegerSets()

mfem::ListOfIntegerSets::~ListOfIntegerSets ( )

Definition at line 138 of file sets.cpp.

Member Function Documentation

◆ AsTable()

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

Write the list of sets into table 't'.

Definition at line 116 of file sets.cpp.

◆ Insert()

int mfem::ListOfIntegerSets::Insert ( 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 91 of file sets.cpp.

◆ Lookup()

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

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

Definition at line 104 of file sets.cpp.

◆ PickElementInSet()

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

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

Definition at line 73 of file sets.hpp.

◆ PickRandomElementInSet()

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

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

Definition at line 76 of file sets.hpp.

◆ Size()

int mfem::ListOfIntegerSets::Size ( )
inline

Return the number of integer sets in the list.

Definition at line 70 of file sets.hpp.


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