Skip to content

Wrapper classes StatePost, and for initial and final states sets? #325

Description

@Adda0

Question originally raised in #277 (comment).

But initial and final can still have size(), right? since they are just sets.

They will have to be unless you want to create a wrapper class SparseStateSet. It would have a member SparseSet, method num_of_states() which would only call return this->sparse_set.size(); and add the boilerplate code for all other functions unmodified, as what we intend to do for StatePost.

However, if we do this for StatePost, we could create the wrapper for sparse set, too. It is the same wrapper as StatePost is for OrdVector<SymbolPost>. Opinions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    For:libraryThe issue is related to library (c++ implementation)Module:nfaThe issue is related to Nondeterministic Finite Automatatype:suggestionA suggestion for feature/change that is not necessary at this moment

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions