A set of integers.
More...
#include <sets.hpp>
A set of integers.
Definition at line 23 of file sets.hpp.
mfem::IntegerSet::IntegerSet |
( |
| ) |
|
|
inline |
Create an empty set.
Definition at line 30 of file sets.hpp.
Create a copy of set 's'.
Definition at line 18 of file sets.cpp.
mfem::IntegerSet::IntegerSet |
( |
const int |
n, |
|
|
const int * |
p |
|
) |
| |
|
inline |
Create an integer set from C-array 'p' of 'n' integers.
Definition at line 36 of file sets.hpp.
mfem::IntegerSet::operator Array< int > & |
( |
| ) |
|
|
inline |
Return a reference to the sorted array of all the set entries.
Definition at line 42 of file sets.hpp.
int mfem::IntegerSet::operator== |
( |
IntegerSet & |
s | ) |
|
Return 1 if the sets are equal and 0 otherwise.
Definition at line 28 of file sets.cpp.
int mfem::IntegerSet::PickElement |
( |
| ) |
|
|
inline |
Return the value of the lowest element of the set.
Definition at line 45 of file sets.hpp.
int mfem::IntegerSet::PickRandomElement |
( |
| ) |
|
Return the value of a random element of the set.
Definition at line 44 of file sets.cpp.
void mfem::IntegerSet::Recreate |
( |
const int |
n, |
|
|
const int * |
p |
|
) |
| |
Create an integer set from C-array 'p' of 'n' integers. Overwrites any existing set data.
Definition at line 59 of file sets.cpp.
int mfem::IntegerSet::Size |
( |
| ) |
|
|
inline |
Return the size of the set.
Definition at line 39 of file sets.hpp.
The documentation for this class was generated from the following files: