Skip to main content

IColumn

IColumn

Non-templated base interface for all column types. More…

#include <IColumn.h>

Inherited by Column< T >

Public Functions

Name
virtual ~IColumn() =default
IColumn(IColumn const & ) =delete
IColumn & operator=(IColumn const & ) =delete
IColumn(IColumn && ) =delete
IColumn & operator=(IColumn && ) =delete
virtual std::string getName() const =0
Gets the name of this column.
virtual std::type_info const & getType() const =0
Gets the type information for this column.
virtual void materialize(TableView * table) =0
Triggers computation of the column data without exposing the type.
virtual std::string getSourceDependency() const =0
Gets the source dependency for this column.
virtual std::vector< std::string > getDependencies() const =0
Gets the column dependencies for this column.
virtual bool isMaterialized() const =0
Checks if the column data has been materialized.
virtual void clearCache() =0
Clears the cached data, forcing recomputation on next access.
virtual EntityIdStructure getEntityIdStructure() const =0
Gets the EntityID structure type for this column.
virtual ColumnEntityIds getColumnEntityIds() const =0
Gets all EntityIDs for this column using the high-level variant approach.
virtual std::vector< EntityId > getCellEntityIds(size_t row_index) const =0
Convenience method to get EntityIDs for a specific row.
virtual bool hasEntityIds() const
Checks if this column provides EntityID information.

Protected Functions

Name
IColumn() =default

Detailed Description

class IColumn;

Non-templated base interface for all column types.

This interface provides type erasure for the TableView system, allowing it to manage columns of different types polymorphically. The actual typed operations are handled by the templated Column class.

Public Functions Documentation

function ~IColumn

virtual ~IColumn() =default

function IColumn

IColumn(
    IColumn const & 
) =delete

function operator=

IColumn & operator=(
    IColumn const & 
) =delete

function IColumn

IColumn(
    IColumn && 
) =delete

function operator=

IColumn & operator=(
    IColumn && 
) =delete

function getName

virtual std::string getName() const =0

Gets the name of this column.

Return: The column name.

Reimplemented by: Column::getName

function getType

virtual std::type_info const & getType() const =0

Gets the type information for this column.

Return: The std::type_info for the column’s data type.

Reimplemented by: Column::getType

function materialize

virtual void materialize(
    TableView * table
) =0

Triggers computation of the column data without exposing the type.

Parameters:

  • table Pointer to the TableView that owns this column.

Reimplemented by: Column::materialize

This method is used by the TableView to materialize columns during dependency resolution without needing to know the specific type.

function getSourceDependency

virtual std::string getSourceDependency() const =0

Gets the source dependency for this column.

Return: The name of the required data source.

Reimplemented by: Column::getSourceDependency

function getDependencies

virtual std::vector< std::string > getDependencies() const =0

Gets the column dependencies for this column.

Return: Vector of column names this column depends on.

Reimplemented by: Column::getDependencies

function isMaterialized

virtual bool isMaterialized() const =0

Checks if the column data has been materialized.

Return: True if data is cached, false otherwise.

Reimplemented by: Column::isMaterialized

function clearCache

virtual void clearCache() =0

Clears the cached data, forcing recomputation on next access.

Reimplemented by: Column::clearCache

function getEntityIdStructure

virtual EntityIdStructure getEntityIdStructure() const =0

Gets the EntityID structure type for this column.

Return: The EntityID structure type for this column.

Reimplemented by: Column::getEntityIdStructure

This indicates whether the column provides no EntityIDs, simple EntityIDs (one per row), complex EntityIDs (multiple per row), or shared EntityIDs (references to shared collections).

function getColumnEntityIds

virtual ColumnEntityIds getColumnEntityIds() const =0

Gets all EntityIDs for this column using the high-level variant approach.

Return: ColumnEntityIds variant containing the EntityIDs for this column.

Reimplemented by: Column::getColumnEntityIds

The returned variant contains one of:

  • std::monostate: No EntityIDs available
  • std::vector: One EntityID per row (simple)
  • std::vector<std::vector>: Multiple EntityIDs per row (complex)
  • std::vector: Shared EntityID collections

function getCellEntityIds

virtual std::vector< EntityId > getCellEntityIds(
    size_t row_index
) const =0

Convenience method to get EntityIDs for a specific row.

Parameters:

  • row_index The row index to get EntityIDs for.

Return: Vector of EntityIDs for the specified row. Empty if not available.

Reimplemented by: Column::getCellEntityIds

This method works across all EntityID structures and always returns a vector of EntityIDs for the specified row. For shared structures, it dereferences the shared pointer. For simple structures, it returns a single-element vector.

function hasEntityIds

inline virtual bool hasEntityIds() const

Checks if this column provides EntityID information.

Return: True if EntityIDs are available, false otherwise.

This is a convenience method that checks if getEntityIdStructure() != None.

Protected Functions Documentation

function IColumn

IColumn() =default

Updated on 2026-11-13 at 20:25:40 +0000