Skip to content

create_path() should say the path must not already exist. #112

Backlog

Description

@adamnovak

create_path_handle() makes you promise the path doesn't exist already, but create_path() doesn't explicitly say that. This can be confusing in some cases.

/**
* Add a path with the given metadata. Any item can be the corresponding
* unset sentinel (PathMetadata::NO_LOCUS_NAME,
* PathMetadata::NO_PHASE_BLOCK, etc.).
*
* Implementations may refuse to store paths-or-threads of certain senses
* when relevant fields are unset.
*
* Handles to other paths must
* remain valid.
*/
virtual path_handle_t create_path(const PathSense& sense,
const std::string& sample,
const std::string& locus,
const size_t& haplotype,
const size_t& phase_block,
const subrange_t& subrange,
bool is_circular = false);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions