XII Release 0.1.0
Loading...
Searching...
No Matches
xiiGraphSnapshot Struct Reference

#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

Detailed Description

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.


The documentation for this struct was generated from the following files:
  • /home/runner/work/XII/XII/Source/Engine/Core/Graph/GraphSerialization.h
  • /home/runner/work/XII/XII/Source/Engine/Core/Graph/Implementation/GraphSerialization.cpp