![]() |
XII Release 0.1.0
|
#include <GraphSerialization.h>
Public Member Functions | |
| xiiGraphSnapshot (xiiAllocator *pAllocator=xiiDefaultAllocatorWrapper::GetAllocator()) | |
| Copyright (c) Theophilus Eriata. All Rights Reserved. | |
| void | Capture (const xiiGraph &graph) |
| xiiResult | Validate () const |
| xiiResult | Apply (xiiGraph &graph, xiiGraphLoadedHandles *out_pHandles=nullptr) const |
| Transactional: failed validation/loading leaves the destination and optional handle mapping unchanged. | |
| xiiResult | Save (xiiStreamWriter &stream) const |
| xiiResult | Load (xiiStreamReader &stream, xiiUInt32 vertexLimit=1024 *1024, xiiUInt32 edgeLimit=4 *1024 *1024) |
| Bounded, versioned, endian-independent reads. Incomplete/unsupported input leaves this snapshot unchanged. | |
Public Attributes | |
| xiiUInt32 | m_uiVertexCount = 0 |
| xiiDynamicArray< xiiUInt32 > | m_EdgeSources |
| xiiDynamicArray< xiiUInt32 > | m_EdgeTargets |
Reflected, portable topology data. Array indices identify serialized vertices/edges, including parallel edges. Runtime handles and algorithm state are deliberately excluded. Consumer payload formats can use these indices.