FARGOS/VISTA Object Management Environment Core
..
|
Implements sparse array of OMEtype elements. More...
#include <OMEarray.h>
Public Types | |
typedef OMEarrayStorage::ARRAY_SUBSCRIPT_t | ARRAY_SUBSCRIPT_t |
Public Member Functions | |
OMEarray () | |
OMEarray (const OMEarray &org) | |
OMEarray & | operator= (const OMEarray &arg) |
~OMEarray () | |
bool | operator== (const OMEarray &arg) const |
bool | operator!= (const OMEarray &arg) const |
OMEtype & | operator[] (const uint32_t i) OME_ALWAYS_INLINE |
OMEtype & | operator[] (const int32_t i) OME_ALWAYS_INLINE |
OMEtype & | operator[] (const uint64_t i) OME_ALWAYS_INLINE |
Subscript reference ! More... | |
OMEtype & | operator[] (const uint16_t i) OME_ALWAYS_INLINE |
const OMEtype & | operator[] (const uint32_t i) const OME_ALWAYS_INLINE |
const OMEtype & | operator[] (const int32_t i) const OME_ALWAYS_INLINE |
const OMEtype & | operator[] (const uint64_t i) const OME_ALWAYS_INLINE |
const OMEtype & | operator[] (const uint16_t i) const OME_ALWAYS_INLINE |
bool | deleteIndex (const uint32_t i) |
bool | deleteIndex (const uint64_t i) |
Deletes the element identified by internal subscript i. More... | |
bool | forceDeleteIndex (const ARRAY_SUBSCRIPT_t i) |
Similar to deleteIndex(), but does not ensure a single reference to the array is held. More... | |
bool | indexExists (const uint32_t i) const |
bool | indexExists (const int32_t i) const |
bool | indexExists (const uint64_t i) const |
Indicate if an array element exists. More... | |
ARRAY_SUBSCRIPT_t | nextIndex (const uint32_t currentSubscript) const |
ARRAY_SUBSCRIPT_t | nextIndex (const int32_t currentSubscript) const |
ARRAY_SUBSCRIPT_t | nextIndex (const uint64_t currentSubscript) const |
Return next valid subscript in an array. More... | |
ARRAY_SUBSCRIPT_t | priorIndex (const uint32_t currentSubscript) const |
ARRAY_SUBSCRIPT_t | priorIndex (const int32_t currentSubscript) const |
ARRAY_SUBSCRIPT_t | priorIndex (const uint64_t currentSubscript) const |
uint_fast32_t | elementCount () const OME_ALWAYS_INLINE |
bool | isEmpty () const OME_ALWAYS_INLINE |
OMEarray * | 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 OMEarray 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 | |
OMEarray (OMEarrayStorage *s) | |
Additional Inherited Members | |
![]() | |
void | addReadOnlyReference () OME_ALWAYS_INLINE |
void | dropReference (OMEarrayStorage *newData=nullptr) OME_ALWAYS_INLINE |
OMEreferenceToData () | |
OMEreferenceToData (OMEarrayStorage *existingData) NONNULL_CLASS_PARAMETERS(2) | |
OMEreferenceToData (const OMEreferenceToData< OMEarrayStorage > &org) | |
virtual | ~OMEreferenceToData () |
![]() | |
OMEarrayStorage * | data |
Implements sparse array of OMEtype elements.
|
inlineexplicitprivate |
References s.
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
References OMEreferenceToData< C >::getUniqueReference().
Referenced by deleteIndex().
|
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().
|
inline |
Referenced by OMEnlmStorage::elementCount(), elementCount(), OMEobjectInstance::importObject(), OILcreateObject(), OMEreadLicenseFile(), pathComponentsToString(), OMEthread::sendMessage(), and subscriptsInOrder().
|
inline |
Similar to deleteIndex(), but does not ensure a single reference to the array is held.
|
inline |
|
inline |
Referenced by arrayToSet(), createNewOIDthatOnlyAllowsOthers(), OMEclass::extractInstanceData(), OMEnlmCatalog::findCatalogFile(), OMEclass::importInstanceData(), OMEobjectInstance::importObject(), OMEnlmStorage::indexExists(), indexExists(), mergeArrays(), OMEconvertToStorageDescription(), OMEfindFileInDirectory(), OMEsetNameSpaceSearchList(), pathComponentsToString(), relativePathToAbsolute(), subscriptsInOrder(), and substituteText().
|
inline |
Indicate if an array element exists.
0 | the element identified by the internal subscript i does not exist. |
1 | the element identified by the internal subscript i does exist. ! |
|
inline |
Referenced by OMEnlmStorage::isEmpty(), isEmpty(), and OMEnlmStorage::outputOnStream().
|
inline |
|
inline |
Referenced by arrayToSet(), mergeArrays(), OMEnlmStorage::nextIndex(), nextIndex(), subscriptsInOrder(), and substituteText().
|
inline |
Return next valid subscript in an array.
0 | indicates the end of the array has been reached. ! |
|
inline |
References OMEreferenceToData< C >::data.
|
inline |
References OMEreferenceToData< C >::data.
|
inline |
References OMEreferenceToData< C >::data.
|
inline |
References OMEreferenceToData< C >::getUniqueReference().
|
inline |
References OMEreferenceToData< C >::data.
|
inline |
References OMEreferenceToData< C >::getUniqueReference().
|
inline |
References OMEreferenceToData< C >::data.
|
inline |
References OMEreferenceToData< C >::getUniqueReference().
|
inline |
References OMEreferenceToData< C >::data.
|
inline |
Subscript reference !
read-only subscript reference
References OMEreferenceToData< C >::getUniqueReference().
|
inline |
Output an OMEarray 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 arrayBaseTest(), OMEthread::invokeMethod(), OMEobjectInstance::invokeMethod(), and operator<<().
|
inline |
|
inline |
Referenced by priorIndex().
|
inline |
currentSubscript | ! |
![]() | Generated: Tue Jul 28 2020 16:03:27
Support Information |