GraphCopyInit
Description
Deep-copy init callback wired into the graph for node payloads, or NULL if the graph was initialised without deep-copy semantics.
Parameters
| Name | Direction | Description |
|---|---|---|
g |
in | Graph to query. |
Usage example (Cross-references)
Usage examples (Cross-references)
- In
Graph.Type.c:24:
bool result = GraphNodeCount(&graph) == 0 && GraphEdgeCount(&graph) == 0 && GraphEmpty(&graph) &&
VecBegin(&graph.slots) == NULL && VecBegin(&graph.free_indices) == NULL &&
VecBegin(&graph.pending_edge_removals) == NULL && GraphCopyInit(&graph) == NULL &&
GraphCopyDeinit(&graph) == NULL && graph.pending_delete_count == 0 &&
GraphMutationEpoch(&graph) == 0 && GraphAllocator(&graph)->alignment == 1;- In
Graph.Init.c:156:
result = result && (GraphAllocator(&graph_e)->alignment == 8) && (GraphAllocator(&graph_f)->alignment == 16);
result = result && (GraphAllocator(&graph_g)->alignment == 32) && (GraphAllocator(&graph_h)->alignment == 64);
result = result && (GraphCopyInit(&graph_c) == (GenericCopyInit)str_init_copy);
result = result && (GraphCopyDeinit(&graph_d) == (GenericCopyDeinit)str_deinit);
result = result && (graph_h.slots.allocator->retry_limit == 31);
Last updated on