CARTA Backend
The backend component of CARTA
Loading...
Searching...
No Matches
carta::TableView Class Reference

#include <TableView.h>

Collaboration diagram for carta::TableView:
[legend]

Public Member Functions

 TableView (const Table &table)
 
 TableView (const Table &table, const IndexList &index_list, bool ordered=true)
 
bool NumericFilter (const Column *column, CARTA::ComparisonOperator comparison_operator, double value, double secondary_value=0.0)
 
bool StringFilter (const Column *column, std::string search_string, bool case_insensitive=false)
 
bool Invert ()
 
void Reset ()
 
bool Combine (const TableView &second)
 
bool SortByColumn (const Column *column, bool ascending=true)
 
bool SortByIndex ()
 
size_t NumRows () const
 
const TableGetTable () const
 
template<class T >
std::vector< T > Values (const Column *column, int64_t start=-1, int64_t end=-1) const
 
bool FillValues (const Column *column, CARTA::ColumnData &column_data, int64_t start=-1, int64_t end=-1) const
 

Protected Attributes

bool _is_subset
 
bool _ordered
 
IndexList _subset_indices
 
const Table_table
 

Constructor & Destructor Documentation

◆ TableView() [1/2]

carta::TableView::TableView ( const Table table)

◆ TableView() [2/2]

carta::TableView::TableView ( const Table table,
const IndexList index_list,
bool  ordered = true 
)

Member Function Documentation

◆ Combine()

bool carta::TableView::Combine ( const TableView second)
Here is the call graph for this function:

◆ FillValues()

bool carta::TableView::FillValues ( const Column column,
CARTA::ColumnData &  column_data,
int64_t  start = -1,
int64_t  end = -1 
) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetTable()

const Table & carta::TableView::GetTable ( ) const
inline
Here is the caller graph for this function:

◆ Invert()

bool carta::TableView::Invert ( )
Here is the call graph for this function:

◆ NumericFilter()

bool carta::TableView::NumericFilter ( const Column column,
CARTA::ComparisonOperator  comparison_operator,
double  value,
double  secondary_value = 0.0 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ NumRows()

size_t carta::TableView::NumRows ( ) const
Here is the call graph for this function:

◆ Reset()

void carta::TableView::Reset ( )

◆ SortByColumn()

bool carta::TableView::SortByColumn ( const Column column,
bool  ascending = true 
)
Here is the call graph for this function:

◆ SortByIndex()

bool carta::TableView::SortByIndex ( )

◆ StringFilter()

bool carta::TableView::StringFilter ( const Column column,
std::string  search_string,
bool  case_insensitive = false 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Values()

template<class T >
std::vector< T > carta::TableView::Values ( const Column column,
int64_t  start = -1,
int64_t  end = -1 
) const

Member Data Documentation

◆ _is_subset

bool carta::TableView::_is_subset
protected

◆ _ordered

bool carta::TableView::_ordered
protected

◆ _subset_indices

IndexList carta::TableView::_subset_indices
protected

◆ _table

const Table& carta::TableView::_table
protected

The documentation for this class was generated from the following files: