Column
Column
Templated column class that supports heterogeneous data types. More…
#include <Column.h>
Inherits from IColumn
Public Functions
| Name | |
|---|---|
| std::vector< T > const & | getValues(TableView * table) Gets the values of this column. |
| virtual void | materialize(TableView * table) override Triggers computation of the column data without exposing the type. |
| virtual std::string | getName() const override Gets the name of this column. |
| virtual std::type_info const & | getType() const override Gets the type information for this column. |
| virtual std::string | getSourceDependency() const override Gets the source dependency for this column. |
| virtual std::vector< std::string > | getDependencies() const override Gets the column dependencies for this column. |
| virtual bool | isMaterialized() const override Checks if the column data has been materialized. |
| virtual void | clearCache() override Clears the cached data, forcing recomputation on next access. |
| virtual EntityIdStructure | getEntityIdStructure() const override Gets the EntityID structure type for this column. |
| virtual ColumnEntityIds | getColumnEntityIds() const override Gets all EntityIDs for this column using the high-level variant approach. |
| virtual std::vector< EntityId > | getCellEntityIds(size_t row_index) const override Gets EntityIDs for a specific row in this column. |
Friends
| Name | |
|---|---|
| class | TableViewBuilder |
Additional inherited members
Public Functions inherited from IColumn
| Name | |
|---|---|
| virtual | ~IColumn() =default |
| IColumn(IColumn const & ) =delete | |
| IColumn & | operator=(IColumn const & ) =delete |
| IColumn(IColumn && ) =delete | |
| IColumn & | operator=(IColumn && ) =delete |
| virtual bool | hasEntityIds() const Checks if this column provides EntityID information. |
Protected Functions inherited from IColumn
| Name | |
|---|---|
| IColumn() =default |
Detailed Description
template <SupportedColumnType T>
class Column;Templated column class that supports heterogeneous data types.
This class inherits from IColumn to provide type erasure while maintaining type safety for the actual data storage and computation. It supports any type T that can be stored in a std::vector
Public Functions Documentation
function getValues
std::vector< T > const & getValues(
TableView * table
)Gets the values of this column.
Parameters:
- table Pointer to the TableView that owns this column.
Return: Reference to the column’s data vector.
This method returns a reference to the column’s data vector, triggering computation if the data is not yet materialized.
Each index in this vector corresponds to a row in the TableView, and the values are computed based on the current row selection.
function materialize
virtual void materialize(
TableView * table
) overrideTriggers computation of the column data without exposing the type.
Parameters:
- table Pointer to the TableView that owns this column.
Reimplements: IColumn::materialize
This method is used by the TableView to materialize columns during dependency resolution without needing to know the specific type.
function getName
inline virtual std::string getName() const overrideGets the name of this column.
Return: The column name.
Reimplements: IColumn::getName
function getType
inline virtual std::type_info const & getType() const overrideGets the type information for this column.
Return: The std::type_info for the column’s data type.
Reimplements: IColumn::getType
function getSourceDependency
virtual std::string getSourceDependency() const overrideGets the source dependency for this column.
Return: The name of the required data source.
Reimplements: IColumn::getSourceDependency
function getDependencies
virtual std::vector< std::string > getDependencies() const overrideGets the column dependencies for this column.
Return: Vector of column names this column depends on.
Reimplements: IColumn::getDependencies
function isMaterialized
virtual bool isMaterialized() const overrideChecks if the column data has been materialized.
Return: True if data is cached, false otherwise.
Reimplements: IColumn::isMaterialized
function clearCache
inline virtual void clearCache() overrideClears the cached data, forcing recomputation on next access.
Reimplements: IColumn::clearCache
function getEntityIdStructure
virtual EntityIdStructure getEntityIdStructure() const overrideGets the EntityID structure type for this column.
Return: The EntityID structure type for this column.
Reimplements: IColumn::getEntityIdStructure
function getColumnEntityIds
virtual ColumnEntityIds getColumnEntityIds() const overrideGets all EntityIDs for this column using the high-level variant approach.
Return: ColumnEntityIds variant containing the EntityIDs for this column.
Reimplements: IColumn::getColumnEntityIds
function getCellEntityIds
virtual std::vector< EntityId > getCellEntityIds(
size_t row_index
) const overrideGets EntityIDs for a specific row in this column.
Parameters:
- row_index The row index to get EntityIDs for.
Return: Vector of EntityIDs for the specified row. Empty if not available.
Reimplements: IColumn::getCellEntityIds
Friends
friend TableViewBuilder
friend class TableViewBuilder(
TableViewBuilder
);Updated on 2026-11-13 at 20:25:41 +0000