Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEElementTable Class Reference

#include <GNEElementTable.h>

Inheritance diagram for GNEElementTable:
[legend]
Collaboration diagram for GNEElementTable:
[legend]

Data Structures

class  ColumnHeader
 row header More...
 
class  Row
 table row More...
 

Public Member Functions

void disableTable ()
 Disable table.
 
void enableTable ()
 Enable table.
 
ColumnHeadergetColumnHeader () const
 get column header
 
std::string getValue (const size_t rowIndex, const size_t columnIndex) const
 get value
 
 GNEElementTable (GNEElementList *elementList, const GNETagProperties *tagProperties, GNEElementList::Options options)
 constructor
 
bool isValid () const
 check if the current values of the table are valid
 
void resizeTable (const size_t numRows)
 resize table
 
void updateRow (const size_t index, GNEAttributeCarrier *AC)
 update row
 
 ~GNEElementTable ()
 destructor
 

Protected Attributes

ColumnHeadermyColumnHeader = nullptr
 column header
 
GNEElementListmyElementList = nullptr
 pointer to the parent element list
 
GNEElementList::Options myOptions = GNEElementList::Options::NONE
 GNEElementList options.
 
std::vector< Row * > myRows
 rows
 
FXVerticalFrame * myRowsFrame = nullptr
 vertical frame for rows
 
FXScrollWindow * myScrollWindow = nullptr
 scrollWindow for rows
 

Private Member Functions

 GNEElementTable (const GNEElementTable &)=delete
 Invalidated duplicate constructor.
 
GNEElementTableoperator= (const GNEElementTable &)=delete
 Invalidated assignment operator.
 

Detailed Description

Definition at line 35 of file GNEElementTable.h.

Constructor & Destructor Documentation

◆ GNEElementTable() [1/2]

GNEElementTable::GNEElementTable ( GNEElementList elementList,
const GNETagProperties tagProperties,
GNEElementList::Options  options 
)

◆ ~GNEElementTable()

GNEElementTable::~GNEElementTable ( )

destructor

Definition at line 337 of file GNEElementTable.cpp.

◆ GNEElementTable() [2/2]

GNEElementTable::GNEElementTable ( const GNEElementTable )
privatedelete

Invalidated duplicate constructor.

Member Function Documentation

◆ disableTable()

void GNEElementTable::disableTable ( )

Disable table.

Definition at line 359 of file GNEElementTable.cpp.

References myRows.

◆ enableTable()

void GNEElementTable::enableTable ( )

Enable table.

Definition at line 348 of file GNEElementTable.cpp.

References myRows.

◆ getColumnHeader()

GNEElementTable::ColumnHeader * GNEElementTable::getColumnHeader ( ) const

get column header

Definition at line 342 of file GNEElementTable.cpp.

References myColumnHeader.

Referenced by GNETemplateElementList< elementDialogType, elementType, GNEChange_Type >::getSortTuples().

Here is the caller graph for this function:

◆ getValue()

std::string GNEElementTable::getValue ( const size_t  rowIndex,
const size_t  columnIndex 
) const

get value

Definition at line 407 of file GNEElementTable.cpp.

References myRows.

◆ isValid()

bool GNEElementTable::isValid ( ) const

check if the current values of the table are valid

Definition at line 370 of file GNEElementTable.cpp.

References myRows.

Referenced by GNEElementList::isListValid().

Here is the caller graph for this function:

◆ operator=()

GNEElementTable & GNEElementTable::operator= ( const GNEElementTable )
privatedelete

Invalidated assignment operator.

◆ resizeTable()

void GNEElementTable::resizeTable ( const size_t  numRows)

resize table

Definition at line 382 of file GNEElementTable.cpp.

References myRows.

Referenced by GNETemplateElementList< elementDialogType, elementType, GNEChange_Type >::updateList().

Here is the caller graph for this function:

◆ updateRow()

void GNEElementTable::updateRow ( const size_t  index,
GNEAttributeCarrier AC 
)

update row

Definition at line 392 of file GNEElementTable.cpp.

References myRows.

Referenced by GNETemplateElementList< elementDialogType, elementType, GNEChange_Type >::updateList().

Here is the caller graph for this function:

Field Documentation

◆ myColumnHeader

ColumnHeader* GNEElementTable::myColumnHeader = nullptr
protected

column header

Definition at line 194 of file GNEElementTable.h.

Referenced by getColumnHeader(), and GNEElementTable().

◆ myElementList

GNEElementList* GNEElementTable::myElementList = nullptr
protected

pointer to the parent element list

Definition at line 188 of file GNEElementTable.h.

◆ myOptions

GNEElementList::Options GNEElementTable::myOptions = GNEElementList::Options::NONE
protected

GNEElementList options.

Definition at line 191 of file GNEElementTable.h.

Referenced by GNEElementTable::Row::Row().

◆ myRows

std::vector<Row*> GNEElementTable::myRows
protected

rows

Definition at line 203 of file GNEElementTable.h.

Referenced by disableTable(), enableTable(), getValue(), isValid(), resizeTable(), and updateRow().

◆ myRowsFrame

FXVerticalFrame* GNEElementTable::myRowsFrame = nullptr
protected

vertical frame for rows

Definition at line 200 of file GNEElementTable.h.

Referenced by GNEElementTable(), and GNEElementTable::Row::Row().

◆ myScrollWindow

FXScrollWindow* GNEElementTable::myScrollWindow = nullptr
protected

scrollWindow for rows

Definition at line 197 of file GNEElementTable.h.

Referenced by GNEElementTable().


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