Changeset 35 in sord for trunk/sord/sord.h


Ignore:
Timestamp:
2011-02-15 19:06:29 (3 years ago)
Author:
drobilla
Message:

Sord => SordModel?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sord/sord.h

    r34 r35  
    5252 
    5353typedef struct _SordWorld* SordWorld;  ///< Sord world (library state) 
    54 typedef struct _Sord*      Sord;       ///< Quad store 
     54typedef struct _SordModel* SordModel;  ///< Quad store 
    5555typedef struct _SordIter*  SordIter;   ///< Store iterator 
    5656typedef struct _SordNode*  SordNode;   ///< Node 
     
    145145                         const char*    lang, uint8_t lang_len); 
    146146 
     147/** Copy a node. */ 
     148SORD_API 
     149SordNode 
     150sord_node_copy(SordNode node); 
     151 
     152/** Free a node. */ 
     153SORD_API 
     154void 
     155sord_node_free(SordNode node); 
     156 
    147157/** Return the type of a node (SORD_URI, SORD_BLANK, or SORD_LITERAL). */ 
    148158SORD_API 
     
    178188 
    179189/** @} */ 
    180 /** @name Store 
    181  * For brevity, the Sord store is simply referred to as a "Sord". 
     190/** @name Model 
    182191 * @{ 
    183192 */ 
     
    192201 */ 
    193202SORD_API 
    194 Sord 
     203SordModel 
    195204sord_new(SordWorld world, unsigned indices, bool graphs); 
    196205 
     
    198207SORD_API 
    199208void 
    200 sord_free(Sord sord); 
     209sord_free(SordModel model); 
    201210 
    202211SORD_API 
    203212SordWorld 
    204 sord_get_world(Sord sord); 
     213sord_get_world(SordModel model); 
    205214 
    206215/** Return the number of nodes stored in @a sord. 
     
    214223SORD_API 
    215224int 
    216 sord_num_quads(Sord read); 
     225sord_num_quads(SordModel model); 
    217226 
    218227/** Return an iterator to the start of the store. */ 
    219228SORD_API 
    220229SordIter 
    221 sord_begin(Sord read); 
     230sord_begin(SordModel model); 
    222231 
    223232/** Return an iterator that will iterate over each graph URI. */ 
    224233SORD_API 
    225234SordIter 
    226 sord_graphs_begin(Sord read); 
     235sord_graphs_begin(SordModel model); 
    227236 
    228237/** Search for a triple pattern. 
     
    231240SORD_API 
    232241SordIter 
    233 sord_find(Sord sord, const SordQuad pat); 
     242sord_find(SordModel model, const SordQuad pat); 
    234243 
    235244/** Add a quad to the store. */ 
    236245SORD_API 
    237246void 
    238 sord_add(Sord sord, const SordQuad tup); 
     247sord_add(SordModel model, const SordQuad quad); 
    239248 
    240249/** Remove a quad from the store. 
     
    244253SORD_API 
    245254void 
    246 sord_remove(Sord sord, const SordQuad tup); 
     255sord_remove(SordModel model, const SordQuad quad); 
    247256 
    248257/** Remove a quad from the store by iterator. 
     
    251260SORD_API 
    252261void 
    253 sord_remove_iter(Sord sord, SordIter iter); 
     262sord_remove_iter(SordModel model, SordIter iter); 
    254263 
    255264/** Remove a graph from the store. */ 
    256265SORD_API 
    257266void 
    258 sord_remove_graph(Sord sord, SordNode graph); 
     267sord_remove_graph(SordModel model, SordNode graph); 
    259268 
    260269/** @} */ 
     
    266275SORD_API 
    267276void 
    268 sord_iter_get(SordIter iter, SordQuad tup); 
     277sord_iter_get(SordIter iter, SordQuad quad); 
    269278 
    270279/** Return the store pointed to by @a iter. */ 
    271280SORD_API 
    272 Sord 
    273 sord_iter_get_sord(SordIter iter); 
     281SordModel 
     282sord_iter_get_model(SordIter iter); 
    274283 
    275284/** Increment @a iter to point to the next statement. */ 
     
    309318SORD_API 
    310319bool 
    311 sord_read_file(Sord           sord, 
     320sord_read_file(SordModel      model, 
    312321               const uint8_t* uri, 
    313322               const SordNode graph, 
     
    316325SORD_API 
    317326bool 
    318 sord_read_file_handle(Sord           sord, 
     327sord_read_file_handle(SordModel      model, 
    319328                      FILE*          fd, 
    320329                      const uint8_t* base_uri, 
Note: See TracChangeset for help on using the changeset viewer.