File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -807,6 +807,22 @@ impl NodeTable {
807807 /// Get the population column as a slice
808808 => population, population_slice_raw, crate :: sys:: bindings:: tsk_id_t) ;
809809
810+ pub fn individual_column ( & self ) -> crate :: TableColumn < IndividualId > {
811+ crate :: table_column:: new_table_column ( self . individual_slice ( ) )
812+ }
813+
814+ pub fn population_column ( & self ) -> crate :: TableColumn < PopulationId > {
815+ crate :: table_column:: new_table_column ( self . population_slice ( ) )
816+ }
817+
818+ pub fn time_column ( & self ) -> crate :: TableColumn < Time > {
819+ crate :: table_column:: new_table_column ( self . time_slice ( ) )
820+ }
821+
822+ pub fn flags_column ( & self ) -> crate :: TableColumn < NodeFlags > {
823+ crate :: table_column:: new_table_column ( self . flags_slice ( ) )
824+ }
825+
810826 /// Clear all data from the table
811827 pub fn clear ( & mut self ) -> Result < i32 , TskitError > {
812828 handle_tsk_return_value ! ( self . table_. clear( ) )
You can’t perform that action at this time.
0 commit comments