Skip to content

Commit d770461

Browse files
committed
Updating tags to set, needs more testing
1 parent 4bce517 commit d770461

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

src/entities/DFGFactor.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ mutable struct DFGFactor{T, S} <: AbstractDFGFactor
4747
timestamp::DateTime
4848
"""Factor tags, e.g [:FACTOR].
4949
Accessors: `getTags`, `addTags!`, and `deleteTags!`"""
50-
tags::Vector{Symbol}
50+
tags::Set{Symbol}
5151
"""Solver data.
5252
Accessors: `getSolverData`, `setSolverData!`"""
5353
solverData::GenericFunctionNodeData{T, S}

src/entities/DFGFactorSummary.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ struct DFGFactorSummary <: AbstractDFGFactor
1414
Accessors: `getTimestamp`"""
1515
timestamp::DateTime
1616
"""Factor tags, e.g [:FACTOR].
17-
Accessors: `getTags`"""
18-
tags::Vector{Symbol}
17+
Accessors: `getTags`, `addTags!`, and `deleteTags!`"""
18+
tags::Set{Symbol}
1919
"""Internal ID used by some of the DFG drivers. We don't suggest using this outside of DFG."""
2020
_internalId::Int64
2121
"""Internal cache of the ordering of the neighbor variables. Rather use getNeighbors to get the list as this is an internal value.

src/entities/DFGVariableSummary.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ struct DFGVariableSummary <: AbstractDFGVariable
1515
timestamp::DateTime
1616
"""Variable tags, e.g [:POSE, :VARIABLE, and :LANDMARK].
1717
Accessors: `getTags`, `addTags!`, and `deleteTags!`"""
18-
tags::Vector{Symbol}
18+
tags::Set{Symbol}
1919
"""Dictionary of estimates keyed by solverDataDict keys
2020
Accessors: `addEstimate!`, `updateEstimate!`, and `deleteEstimate!`"""
2121
estimateDict::Dict{Symbol, <:AbstractPointParametricEst}

src/entities/SkeletonDFGFactor.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ struct SkeletonDFGFactor <: AbstractDFGFactor
1111
Accessor: `getLabel`"""
1212
label::Symbol
1313
"""Factor tags, e.g [:FACTOR].
14-
Accessors: `getLabels`, `addLabels!`, and `deleteLabels!`"""
15-
tags::Vector{Symbol}
14+
Accessors: `getTags`, `addTags!`, and `deleteTags!`"""
15+
tags::Set{Symbol}
1616
"""Internal cache of the ordering of the neighbor variables. Rather use getNeighbors to get the list as this is an internal value.
1717
Accessors: `getVariableOrder`"""
1818
_variableOrderSymbols::Vector{Symbol}

src/entities/SkeletonDFGVariable.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ struct SkeletonDFGVariable <: AbstractDFGVariable
1212
Accessor: `getLabel`"""
1313
label::Symbol
1414
"""Variable tags, e.g [:POSE, :VARIABLE, and :LANDMARK].
15-
Accessors: `getLabels`, `addLabels!`, and `deleteLabels!`"""
16-
tags::Vector{Symbol}
15+
Accessors: `getTags`, `addTags!`, and `deleteTags!`"""
16+
tags::Set{Symbol}
1717
end
1818

1919
SkeletonDFGVariable(label::Symbol) = SkeletonDFGVariable(label, Symbol[])

0 commit comments

Comments
 (0)