|
int | initialize (const std::string &obj_name, verify_type v_type) |
| Initialize the SharedSet. More...
|
|
size_t | size () const |
| Get the size of the set. More...
|
|
bool | empty () const |
| Tests if the set is empty. More...
|
|
size_t | count (const valT &k) const |
| Counts elements with a specific value. More...
|
|
const_iterator | begin () const |
| Get const_iterator to beginning of underlying set.
|
|
const_iterator | end () const |
| Get const_iterator to end of underlying set.
|
|
const_reverse_iterator | rbegin () const |
| Get const_reverse_iterator to beginning of underlying set.
|
|
const_reverse_iterator | rend () const |
| Get const_reverse_iterator to end of underlying set.
|
|
void | publish () |
| Indicate that the calling element has written all the data it plans to write. More...
|
|
bool | isFullyPublished () |
| Check whether all instances of this SharedSet have called publish(). More...
|
|
void | insert (const valT &value) |
| Insert data to the set. More...
|
|
const_iterator | find (const valT &value) const |
| Searches the SharedSet for an element equivalent to value and returns a const iterator to it if found, otherwise it returns an iterator to SharedSet::end. More...
|
|
const valT & | mutex_find (const valT &value) const |
| Searches the SharedSet for an element equivalent to value and returns a const iterator to it if found, otherwise it returns an iterator to SharedSet::end. More...
|
|
template<typename valT>
class SST::Shared::SharedSet< valT >
SharedSet class.
The class is templated to allow for an array of any non-pointer type. The type must be serializable.
Searches the SharedSet for an element equivalent to value and returns a const iterator to it if found, otherwise it returns an iterator to SharedSet::end.
- Parameters
-
NOTE: This function does not use a mutex, so it is possible to get invalid results if another thread is simulateously writing to the set. However, after the init() phase of simulation is complete (in setup() and beyond), this is always a safe operation. If reading during init() and you can't guarantee that all elements have already written all elements to the SharedSet, use mutex_find() to guarantee thread safety.
- Returns
- read-only iterator to data referenced by value