Skip to content

Commit 5af96b0

Browse files
committed
moving getData
1 parent ed6ea5b commit 5af96b0

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/Common.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,14 @@ function sortVarNested(vars::Vector{Symbol})::Vector{Symbol}
7676
return retvars
7777
end
7878

79+
"""
80+
$SIGNATURES
81+
82+
Retrieve data structure stored in a node.
83+
"""
84+
getData(v::DFGFactor)::GenericFunctionNodeData = v.data
85+
getData(v::DFGVariable; solveKey::Symbol=:default)::VariableNodeData = v.solverDataDict[solveKey]
86+
7987
"""
8088
$SIGNATURES
8189

src/DistributedFactorGraphs.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export getSerializationModule, setSerializationModule!
3232
export pack, unpack
3333

3434
export isPrior, lsfPriors
35+
export getData
3536
export getVariableType, getSofttype
3637
export getFactorType, getfnctype
3738

0 commit comments

Comments
 (0)