Blender  V2.93
Public Member Functions | Public Attributes | Protected Attributes | List of all members
blender::ed::spreadsheet::ColumnValues Class Referenceabstract

#include <spreadsheet_column_values.hh>

Inherited by blender::ed::spreadsheet::LambdaColumnValues< GetValueF >.

Public Member Functions

 ColumnValues (std::string name, const int size)
 
virtual ~ColumnValues ()=default
 
virtual void get_value (int index, CellValue &r_cell_value) const =0
 
StringRefNull name () const
 
int size () const
 

Public Attributes

float default_width = 0.0f
 

Protected Attributes

std::string name_
 
int size_
 

Detailed Description

This represents a column in a spreadsheet. It has a name and provides a value for all the cells in the column.

Definition at line 29 of file spreadsheet_column_values.hh.

Constructor & Destructor Documentation

◆ ColumnValues()

blender::ed::spreadsheet::ColumnValues::ColumnValues ( std::string  name,
const int  size 
)
inline

Definition at line 35 of file spreadsheet_column_values.hh.

◆ ~ColumnValues()

virtual blender::ed::spreadsheet::ColumnValues::~ColumnValues ( )
virtualdefault

Member Function Documentation

◆ get_value()

virtual void blender::ed::spreadsheet::ColumnValues::get_value ( int  index,
CellValue r_cell_value 
) const
pure virtual

◆ name()

StringRefNull blender::ed::spreadsheet::ColumnValues::name ( ) const
inline

Definition at line 43 of file spreadsheet_column_values.hh.

References name_.

Referenced by get_column_width().

◆ size()

int blender::ed::spreadsheet::ColumnValues::size ( ) const
inline

Definition at line 48 of file spreadsheet_column_values.hh.

References size_.

Member Data Documentation

◆ default_width

float blender::ed::spreadsheet::ColumnValues::default_width = 0.0f

Definition at line 54 of file spreadsheet_column_values.hh.

Referenced by get_column_width().

◆ name_

std::string blender::ed::spreadsheet::ColumnValues::name_
protected

Definition at line 31 of file spreadsheet_column_values.hh.

Referenced by name().

◆ size_

int blender::ed::spreadsheet::ColumnValues::size_
protected

Definition at line 32 of file spreadsheet_column_values.hh.

Referenced by size().


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