FARGOS/VISTA Object Management Environment Core
..
|
Implements an ordered list of OMEtype elements. More...
#include <OMEset.h>
Public Member Functions | |
OMEset () | |
OMEset (const OMEset &org) | |
~OMEset () | |
OMEset & | operator= (const OMEset &arg) |
bool | operator== (const OMEset &arg) const |
bool | operator!= (const OMEset &arg) const |
bool | operator== (const OMEtype &arg) const |
bool | operator!= (const OMEtype &arg) const |
OMEset * | deepCopy () const |
OMEset & | operator+= (const OMEtype &item) |
Add element as-is into set. If the element is a set, it is added as a single element. More... | |
OMEset & | operator-= (const OMEtype &item) |
Remove element from set. More... | |
OMEset & | operator|= (const OMEtype &item) |
Add element to set. If new element is a set, each individual element of the set is added. More... | |
OMEset & | operator&= (const OMEtype &item) |
Set intersection. Returns elements that are in both sets. More... | |
OMEset * | operator+ (const OMEtype &item) const |
OMEset * | operator- (const OMEtype &item) const |
OMEset * | operator| (const OMEtype &item) const |
OMEset * | operator& (const OMEtype &item) const |
OMEtype * | nextElement () |
Iterate over a set by retrieving the next element. More... | |
void | resetIterator () |
Reset the internal iterator to the beginning of the list. More... | |
uint32_t | elementCount () const OME_ALWAYS_INLINE |
Returns the number of elements in the set. More... | |
uint32_t | isEmpty () const OME_ALWAYS_INLINE |
bool | elementExists (const OMEtype &elem) const OME_ALWAYS_INLINE |
Returns a Boolean indication if an indicated OMEtype element is present within the set. More... | |
template<typename STREAMTYPE > | |
STREAMTYPE & | outputOnStream (STREAMTYPE &outputStream, int_fast16_t indent=0, uint8_t includeTypePrefix=OME_DEFAULT_COMPLEX_OUTPUT_MODE) const |
Output an OMEset to an output stream. More... | |
![]() | |
void | getUniqueReference () |
Force unique reference to the data, which will trigger duplication if necessary (copy-on-write). More... | |
int_fast32_t | totalReferences () const OME_ALWAYS_INLINE |
Get current reference total. More... | |
Private Member Functions | |
OMEset (OMEsetStorage *s) | |
Private Attributes | |
_STD deque< OMEbaseTypeP >::const_iterator * | iterator |
Additional Inherited Members | |
![]() | |
void | addReadOnlyReference () OME_ALWAYS_INLINE |
void | dropReference (OMEsetStorage *newData=nullptr) OME_ALWAYS_INLINE |
OMEreferenceToData () | |
OMEreferenceToData (OMEsetStorage *existingData) NONNULL_CLASS_PARAMETERS(2) | |
OMEreferenceToData (const OMEreferenceToData< OMEsetStorage > &org) | |
virtual | ~OMEreferenceToData () |
![]() | |
OMEsetStorage * | data |
Implements an ordered list of OMEtype elements.
|
inlineexplicitprivate |
References s.
|
inline |
|
inlineexplicit |
|
inline |
References OME_DELETE_OBJECT.
|
inline |
|
inline |
Returns the number of elements in the set.
Referenced by debugDisplay(), debugDisplayAsHex(), elementCount(), and logOutput().
|
inline |
Returns a Boolean indication if an indicated OMEtype element is present within the set.
Referenced by indexExists().
|
inline |
Referenced by isEmpty().
OMEtype * OMEset::nextElement | ( | ) |
Iterate over a set by retrieving the next element.
If the internal iterator has not be initialized, a call to resetIterator() is automatically performed.
References OMEreferenceToData< OMEsetStorage >::data, OMEsetStorage::dataSet, iterator, and resetIterator().
Referenced by calculateStringLength(), OMEthread::callMethodWithSetArgument(), createACLthatAllowsOthers(), createACLthatDisallowsOthers(), createNewOIDthatOnlyAllowsOthers(), debugDisplay(), debugDisplayAsHex(), execProcess(), logOutput(), makeAsString(), mergeArrays(), OILnextIterator(), OMEsetStorage::operator|=(), OMEthread::sendMessageWithSetArgument(), setToArray(), skipAndOutputSetToStream(), and skipAndOutputSetToStreamAsHex().
|
inline |
References OMEreferenceToData< C >::data.
|
inline |
Set intersection. Returns elements that are in both sets.
References OMEreferenceToData< C >::getUniqueReference(), and OME_DELETE_OBJECT.
|
inline |
Add element as-is into set. If the element is a set, it is added as a single element.
References OMEreferenceToData< C >::getUniqueReference(), and OME_DELETE_OBJECT.
|
inline |
Remove element from set.
References OMEreferenceToData< C >::getUniqueReference(), and OME_DELETE_OBJECT.
|
inline |
References OMEreferenceToData< C >::data.
|
inline |
Add element to set. If new element is a set, each individual element of the set is added.
References OMEreferenceToData< C >::getUniqueReference(), and OME_DELETE_OBJECT.
|
inline |
Output an OMEset to an output stream.
outputStream | is a reference to an output stream. |
indent | specifies the number of spaces to indent before beginning output. If negative, no indent is performed for the first line, but subsequent lines are indented based on the absolute value of indent. |
includeTypePrefix | is a mask of flags indicating if type names should prefix data elements, if strings should be enclosed in quotes, etc. |
Referenced by operator<<().
void OMEset::resetIterator | ( | ) |
Reset the internal iterator to the beginning of the list.
References _STD, OMEreferenceToData< OMEsetStorage >::data, OMEsetStorage::dataSet, and iterator.
Referenced by calculateStringLength(), OMEthread::callMethodWithSetArgument(), createACLthatAllowsOthers(), createACLthatDisallowsOthers(), createNewOIDthatOnlyAllowsOthers(), debugDisplay(), debugDisplayAsHex(), execProcess(), logOutput(), makeAsString(), mergeArrays(), nextElement(), OMEsetStorage::operator|=(), OMEthread::sendMessageWithSetArgument(), setToArray(), skipAndOutputSetToStream(), and skipAndOutputSetToStreamAsHex().
|
private |
Referenced by nextElement(), and resetIterator().
![]() | Generated: Tue Jul 28 2020 16:03:27
Support Information |