|
DTNMA Reference Tools v2.1.0 - 13.gc5c0bac
Delay-Tolerant Networking Management Architecture (DTNMA) Tool Suite
|
This file contains the definitions for segments containing int/text identifiers. More...
#include "type.h"#include "cace/config.h"#include <m-string.h>#include <stdint.h>#include <stdbool.h>#include <time.h>
Include dependency graph for idseg.h:
This graph shows which files directly or indirectly include this file:Data Structures | |
| struct | cace_ari_idseg_t |
| Represent an identifier component of an ARI. More... | |
Typedefs | |
| typedef int64_t | cace_ari_int_id_t |
| Integer type for object reference parts. | |
Functions | |
| void | cace_ari_idseg_init (cace_ari_idseg_t *obj) |
| Initialize a null ID segment. | |
| void | cace_ari_idseg_deinit (cace_ari_idseg_t *obj) |
| void | cace_ari_idseg_copy (cace_ari_idseg_t *obj, const cace_ari_idseg_t *src) |
| size_t | cace_ari_idseg_hash (const cace_ari_idseg_t *obj) |
| int | cace_ari_idseg_cmp (const cace_ari_idseg_t *left, const cace_ari_idseg_t *right) |
| bool | cace_ari_idseg_equal (const cace_ari_idseg_t *left, const cace_ari_idseg_t *right) |
| void | cace_ari_idseg_init_text (cace_ari_idseg_t *obj, m_string_t text) |
| Initialize an ID segment from any text. | |
| void | cace_ari_idseg_derive_form (cace_ari_idseg_t *idset) |
| Derive an integer value if the segment contains text that matches an integer pattern. | |
This file contains the definitions for segments containing int/text identifiers.
| typedef int64_t cace_ari_int_id_t |
Integer type for object reference parts.
| int cace_ari_idseg_cmp | ( | const cace_ari_idseg_t * | left, |
| const cace_ari_idseg_t * | right | ||
| ) |
References cace_ari_idseg_t::as_int, cace_ari_idseg_t::as_text, CHKRET, and cace_ari_idseg_t::form.
Referenced by cace_ari_objpath_cmp().
| void cace_ari_idseg_copy | ( | cace_ari_idseg_t * | obj, |
| const cace_ari_idseg_t * | src | ||
| ) |
References cace_ari_idseg_t::as_int, cace_ari_idseg_t::as_text, CHKVOID, and cace_ari_idseg_t::form.
Referenced by cace_ari_objpath_copy().
| void cace_ari_idseg_deinit | ( | cace_ari_idseg_t * | obj | ) |
References cace_ari_idseg_t::as_text, CHKVOID, and cace_ari_idseg_t::form.
Referenced by cace_ari_objpath_deinit().
| void cace_ari_idseg_derive_form | ( | cace_ari_idseg_t * | idset | ) |
Derive an integer value if the segment contains text that matches an integer pattern.
| [in,out] | idset | The object to update. |
References cace_ari_idseg_t::as_int, cace_ari_idseg_t::as_text, CHKVOID, and cace_ari_idseg_t::form.
| bool cace_ari_idseg_equal | ( | const cace_ari_idseg_t * | left, |
| const cace_ari_idseg_t * | right | ||
| ) |
References cace_ari_idseg_t::as_int, cace_ari_idseg_t::as_text, CHKFALSE, and cace_ari_idseg_t::form.
Referenced by cace_ari_objpath_equal().
| size_t cace_ari_idseg_hash | ( | const cace_ari_idseg_t * | obj | ) |
References cace_ari_idseg_t::as_int, cace_ari_idseg_t::as_text, CHKRET, and cace_ari_idseg_t::form.
Referenced by cace_ari_hash_visit_objpath().
| void cace_ari_idseg_init | ( | cace_ari_idseg_t * | obj | ) |
Initialize a null ID segment.
| [out] | obj | The segment to initialize. |
References cace_ari_idseg_t::form.
Referenced by cace_ari_objpath_init().
| void cace_ari_idseg_init_text | ( | cace_ari_idseg_t * | obj, |
| m_string_t | text | ||
| ) |
Initialize an ID segment from any text.
| [out] | obj | The segment to initialize. |
| [in,out] | text | The text to take from and clear. |
References cace_ari_idseg_t::as_text, and cace_ari_idseg_t::form.