FARGOS/VISTA Object Management Environment Core  ..
FARGOS/VISTA Object Management Environment Core Table of Contents
OMEassocStorage Class Referencefinal

Reference-counted maintainer of an associative array. Used internally by OMEassoc. More...

#include <OMEassoc.h>

+ Inheritance diagram for OMEassocStorage:

Public Types

typedef uint32_t ASSOC_HASH_KEY_t
 

Private Types

typedef _STD map< ASSOC_HASH_KEY_t, OME_KEY_PAIRAssocArrayType_t
 

Private Member Functions

 OMEassocStorage ()
 
 ~OMEassocStorage ()
 
virtual OMEreferenceCountdeepCopy () const override
 
bool operator== (const OMEassocStorage &arg) const
 
bool operator!= (const OMEassocStorage &arg) const
 
OMEtypeoperator[] (const ASSOC_HASH_KEY_t)
 
const OMEtypeoperator[] (const ASSOC_HASH_KEY_t) const
 
bool deleteIndex (const ASSOC_HASH_KEY_t)
 
const OMEstringgetKeyForIndex (const ASSOC_HASH_KEY_t i) const
 
bool indexExists (const ASSOC_HASH_KEY_t i) const
 
ASSOC_HASH_KEY_t nextIndex (const ASSOC_HASH_KEY_t currentSubscript) const
 
OMEtypeoperator[] (const OMEstring &)
 
const OMEtypeoperator[] (const OMEstring &) const
 
bool deleteIndex (const OMEstring &)
 
bool indexExists (const OMEstring &) const
 
uint_fast32_t elementCount () const OME_ALWAYS_INLINE
 
bool isEmpty () const OME_ALWAYS_INLINE
 
template<typename STREAMTYPE >
STREAMTYPE & outputOnStream (STREAMTYPE &outputOnStream, int_fast16_t indent=0, uint8_t includeTypePrefix=OME_DEFAULT_COMPLEX_OUTPUT_MODE) const
 

Private Attributes

AssocArrayType_t assocArray
 

Friends

class OMEassoc
 
class OMEreferenceToData< OMEassocStorage >
 

Additional Inherited Members

- Public Member Functions inherited from OMEreferenceCount
 OMEreferenceCount ()
 
virtual ~OMEreferenceCount ()
 
void addReadOnlyReference ()
 
int_fast32_t dropReference ()
 
OMEreferenceCountgetUniqueReference ()
 
int_fast32_t totalReferences () const OME_ALWAYS_INLINE
 
- Protected Member Functions inherited from OMEreferenceCount
void lockMe ()
 
void unlockMe ()
 
- Protected Attributes inherited from OMEreferenceCount
int32_t references
 
int32_t mutexID
 

Detailed Description

Reference-counted maintainer of an associative array. Used internally by OMEassoc.

Member Typedef Documentation

◆ ASSOC_HASH_KEY_t

◆ AssocArrayType_t

Constructor & Destructor Documentation

◆ OMEassocStorage()

OMEassocStorage::OMEassocStorage ( )
private

◆ ~OMEassocStorage()

OMEassocStorage::~OMEassocStorage ( )
private

Member Function Documentation

◆ deepCopy()

OMEreferenceCount * OMEassocStorage::deepCopy ( ) const
overrideprivatevirtual

Reimplemented from OMEreferenceCount.

References noteDeepCopy().

◆ deleteIndex() [1/2]

bool OMEassocStorage::deleteIndex ( const ASSOC_HASH_KEY_t  subscript)
private

References deleteIndex(), and getKeyForIndex().

◆ deleteIndex() [2/2]

bool OMEassocStorage::deleteIndex ( const OMEstring key)
private

References OMEhash().

◆ elementCount()

uint_fast32_t OMEassocStorage::elementCount ( ) const
inlineprivate

References assocArray.

◆ getKeyForIndex()

const OMEstring & OMEassocStorage::getKeyForIndex ( const ASSOC_HASH_KEY_t  i) const
private

◆ indexExists() [1/2]

bool OMEassocStorage::indexExists ( const ASSOC_HASH_KEY_t  i) const
private

◆ indexExists() [2/2]

bool OMEassocStorage::indexExists ( const OMEstring key) const
private

References OMEhash().

◆ isEmpty()

bool OMEassocStorage::isEmpty ( ) const
inlineprivate

References assocArray.

◆ nextIndex()

OMEassocStorage::ASSOC_HASH_KEY_t OMEassocStorage::nextIndex ( const ASSOC_HASH_KEY_t  currentSubscript) const
private

◆ operator!=()

bool OMEassocStorage::operator!= ( const OMEassocStorage arg) const
private

References assocArray.

◆ operator==()

bool OMEassocStorage::operator== ( const OMEassocStorage arg) const
private

References assocArray.

◆ operator[]() [1/4]

OMEtype & OMEassocStorage::operator[] ( const ASSOC_HASH_KEY_t  subscript)
private

References stderr.

◆ operator[]() [2/4]

const OMEtype & OMEassocStorage::operator[] ( const ASSOC_HASH_KEY_t  subscript) const
private

References stderr, and OMEtype::value.

◆ operator[]() [3/4]

OMEtype & OMEassocStorage::operator[] ( const OMEstring key)
private

References OMEhash().

◆ operator[]() [4/4]

const OMEtype & OMEassocStorage::operator[] ( const OMEstring key) const
private

References OMEhash().

Friends And Related Function Documentation

◆ OMEassoc

friend class OMEassoc
friend

◆ OMEreferenceToData< OMEassocStorage >

friend class OMEreferenceToData< OMEassocStorage >
friend

Member Data Documentation

◆ assocArray

AssocArrayType_t OMEassocStorage::assocArray
private

The documentation for this class was generated from the following files:
Generated: Fri Jul 31 2020 18:19:16
Support Information