Skip to content

Allow for standalone tables #262

Closed
Closed
@molpopgen

Description

@molpopgen

We currently only define table types as immutable
views of data owned by table collections/tree sequences.

To support standalone tables:

  • Define a new type, OwningXTable for row type X.
  • impl std::ops::Deref for each new type.
    The deref target is XTable.
  • The public API is add_row and add_row_with_metadata.
  • Probably also need copy function.

Thanks to @momolangenstein for suggesting the Deref pattern.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions