the_Foundation 1.0
Loading...
Searching...
No Matches
Data Structures | Typedefs | Functions | Variables
stringhash.h File Reference
#include "blockhash.h"
#include "string.h"

Data Structures

struct  iStringHashClass
 
struct  iStringHashReverseIterator
 
struct  iStringHashReverseConstIterator
 

Typedefs

typedef iBlockHash iStringHash
 
typedef iString iStringHashKey
 
typedef iBlockHashNode iStringHashNode
 
typedef iBlockHashNodeClass iStringHashNodeClass
 

Functions

iStringHashNode * new_StringHashNode (const iString *key, const iAnyObject *object)
 
void deinit_StringHashNode (iStringHashNode *)
 
const iString * key_StringHashNode (const iStringHashNode *)
 
void initKey_StringHashNode (const iStringHashNode *, iString *key)
 
iAnyObject * value_StringHashNode (const iStringHashNode *)
 
void initBlock_StringHashKey (const iString *key, iBlock *)
 
iStringHash * new_StringHash (void)
 
void init_StringHash (iStringHash *d)
 
void deinit_StringHash (iStringHash *d)
 
iBool contains_StringHash (const iStringHash *, const iString *key)
 
const iAnyObject * constValue_StringHash (const iStringHash *, const iString *key)
 
iAnyObject * value_StringHash (iStringHash *, const iString *key)
 
iBool insert_StringHash (iStringHash *, const iString *key, const iAnyObject *value)
 
iBool remove_StringHash (iStringHash *, const iString *key)
 
void init_StringHashIterator (iStringHashIterator *, iStringHash *)
 
void next_StringHashIterator (iStringHashIterator *)
 
void init_StringHashReverseIterator (iStringHashReverseIterator *, iStringHash *)
 
void next_StringHashReverseIterator (iStringHashReverseIterator *)
 
const iString * key_StringHashIterator (iStringHashIterator *)
 
void remove_StringHashIterator (iStringHashIterator *)
 
void init_StringHashConstIterator (iStringHashConstIterator *, const iStringHash *)
 
void next_StringHashConstIterator (iStringHashConstIterator *)
 
void init_StringHashReverseConstIterator (iStringHashReverseConstIterator *, const iStringHash *)
 
void next_StringHashReverseConstIterator (iStringHashReverseConstIterator *)
 
const iString * key_StringHashConstIterator (iStringHashConstIterator *)
 
const iAnyObject * constValueRange_StringHash (const iStringHash *, iRangecc key)
 
iBool insertCStr_StringHash (iStringHash *, const char *key, iAnyObject *value)
 
iBool insertCStrN_StringHash (iStringHash *, const char *key, size_t size, iAnyObject *value)
 
void insertValues_StringHash (iStringHash *, const iString *key, iAnyObject *value,...)
 
void insertValuesCStr_StringHash (iStringHash *, const char *key, iAnyObject *value,...)
 

Variables

iStringHashClass Class_StringHash
 

Detailed Description

Hash object that uses String for keys and Object for values.

Authors
Copyright (c) 2017 Jaakko Keränen jaakk.nosp@m.o.ke.nosp@m.ranen.nosp@m.@iki.nosp@m..fi
License

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.