FARGOS/VISTA Object Management Environment Core
..
|
Implements associative array of OMEtype elements. More...
#include <OMEassoc.h>
Public Types | |
typedef OMEassocStorage::ASSOC_HASH_KEY_t | ASSOC_HASH_KEY_t |
Public Member Functions | |
OMEassoc () | |
OMEassoc (const OMEassoc &org) | |
OMEassoc & | operator= (const OMEassoc &arg) |
~OMEassoc () | |
bool | operator== (const OMEassoc &arg) const |
bool | operator!= (const OMEassoc &arg) const |
OMEtype & | operator[] (const ASSOC_HASH_KEY_t i) |
Subscript reference ! More... | |
const OMEtype & | operator[] (const ASSOC_HASH_KEY_t i) const |
read-only subscript reference ! More... | |
OMEtype & | operator[] (const OMEstring &key) |
subscript reference using a string key. ! More... | |
const OMEtype & | operator[] (const OMEstring &key) const |
read-only subscript reference using a string key. ! More... | |
const OMEstring & | getKeyForIndex (const ASSOC_HASH_KEY_t i) const |
bool | deleteIndex (const ASSOC_HASH_KEY_t i) |
bool | forceDeleteIndex (const ASSOC_HASH_KEY_t i) |
Similar to deleteIndex(), but does not ensure a single reference to the array is held. More... | |
bool | deleteIndex (const OMEstring &key) |
bool | forceDeleteIndex (const OMEstring &key) |
Similar to deleteIndex(), but does not ensure a single reference to the array is held. More... | |
bool | indexExists (const ASSOC_HASH_KEY_t i) const |
bool | indexExists (const OMEstring &key) const |
ASSOC_HASH_KEY_t | nextIndex (const ASSOC_HASH_KEY_t currentSubscript) const |
uint_fast32_t | elementCount () const OME_ALWAYS_INLINE |
bool | isEmpty () const OME_ALWAYS_INLINE |
OMEassoc * | deepCopy () const |
template<typename STREAMTYPE > | |
STREAMTYPE & | outputOnStream (STREAMTYPE &outputStream, int_fast16_t indent=0, uint8_t includeTypePrefix=OME_DEFAULT_COMPLEX_OUTPUT_MODE) const |
Output an OMEassoc object 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 | |
OMEassoc (OMEassocStorage *s) | |
Additional Inherited Members | |
![]() | |
void | addReadOnlyReference () OME_ALWAYS_INLINE |
void | dropReference (OMEassocStorage *newData=nullptr) OME_ALWAYS_INLINE |
OMEreferenceToData () | |
OMEreferenceToData (OMEassocStorage *existingData) NONNULL_CLASS_PARAMETERS(2) | |
OMEreferenceToData (const OMEreferenceToData< OMEassocStorage > &org) | |
virtual | ~OMEreferenceToData () |
![]() | |
OMEassocStorage * | data |
Implements associative array of OMEtype elements.
|
inlineexplicitprivate |
References s.
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
Deletes the element identified by internal subscript i.
0 | the element did not exist. |
1 | the element was successfully deleted. ! |
References OMEreferenceToData< C >::getUniqueReference().
Referenced by deleteIndex().
|
inline |
Deletes the element identified by the string subscript key.
0 | the element did not exist. |
1 | the element was successfully deleted. ! |
References OMEreferenceToData< C >::getUniqueReference().
|
inline |
Referenced by elementCount(), and subscriptsInOrder().
|
inline |
Similar to deleteIndex(), but does not ensure a single reference to the array is held.
|
inline |
Similar to deleteIndex(), but does not ensure a single reference to the array is held.
|
inline |
Referenced by getKeyForIndex(), mergeArrays(), OMEgetInterfaces(), sortArray(), and substituteText().
|
inline |
0 | the element identified by the internal subscript i does not exist. |
1 | the element identified by the internal subscript i does exist. ! |
Referenced by debugDisplay(), display(), OMEnlmCatalog::findMessage(), getApplicationVariable(), indexExists(), logOutput(), OMEcheckACL(), and subscriptsInOrder().
|
inline |
0 | the element identified by key does not exist. |
1 | the element identified by key does exist. |
|
inline |
Referenced by isEmpty().
|
inline |
0 | indicates the end of the array has been reached. ! |
Referenced by expandSSIvars(), mergeArrays(), nextIndex(), OMEgetInterfaces(), priorIndex(), subscriptsInOrder(), and substituteText().
|
inline |
References OMEreferenceToData< C >::data.
|
inline |
References OMEreferenceToData< C >::data.
|
inline |
Subscript reference !
References OMEreferenceToData< C >::getUniqueReference().
|
inline |
read-only subscript reference !
References OMEreferenceToData< C >::data.
|
inline |
subscript reference using a string key. !
References OMEreferenceToData< C >::getUniqueReference().
|
inline |
read-only subscript reference using a string key. !
References OMEreferenceToData< C >::data.
|
inline |
Output an OMEassoc object 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<<().
![]() | Generated: Tue Jul 28 2020 16:03:27
Support Information |