MFEM  v4.2.0
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | List of all members
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. More...
 
int PickElementInSet (int i)
 Return the value of the first element of the ith set. More...
 
int PickRandomElementInSet (int i)
 Return a random value from the ith set in the list. More...
 
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. More...
 
int Lookup (IntegerSet &s)
 
void AsTable (Table &t)
 Write the list of sets into table 't'. More...
 
 ~ListOfIntegerSets ()
 

Detailed Description

List of integer sets.

Definition at line 59 of file sets.hpp.

Constructor & Destructor Documentation

mfem::ListOfIntegerSets::~ListOfIntegerSets ( )

Definition at line 129 of file sets.cpp.

Member Function Documentation

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

Write the list of sets into table 't'.

Definition at line 107 of file sets.cpp.

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 82 of file sets.cpp.

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 95 of file sets.cpp.

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

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

Definition at line 70 of file sets.hpp.

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

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

Definition at line 73 of file sets.hpp.

int mfem::ListOfIntegerSets::Size ( )
inline

Return the number of integer sets in the list.

Definition at line 67 of file sets.hpp.


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