MD::Table

Search for usage in LXR

MD::Table< Trait > Class Template Referencefinal

#include <doc.h>

Inheritance diagram for MD::Table< Trait >:

Public Types

enum  Alignment { AlignLeft , AlignRight , AlignCenter }
 
using ColumnsAlignments = typename Trait::template Vector<Alignment>
 
using Rows = typename Trait::template Vector<TableRowSharedPointer>
 
using TableRowSharedPointer = std::shared_ptr<TableRow<Trait>>
 

Public Member Functions

 Table ()=default
 
 ~Table () override=default
 
void appendRow (TableRowSharedPointer r)
 
std::shared_ptr< Item< Trait > > clone (Document< Trait > *doc=nullptr) const override
 
Alignment columnAlignment (int idx) const
 
int columnsCount () const
 
bool isEmpty () const
 
const Rowsrows () const
 
void setColumnAlignment (int idx, Alignment a)
 
ItemType type () const override
 
- Public Member Functions inherited from MD::Item< Trait >
 ~Item () override=default
 
- Public Member Functions inherited from MD::WithPosition
 WithPosition ()=default
 
 WithPosition (long long int startColumn, long long int startLine, long long int endColumn, long long int endLine)
 
virtual ~WithPosition ()=default
 
void applyPositions (const WithPosition &other)
 
long long int endColumn () const
 
long long int endLine () const
 
void setEndColumn (long long int c)
 
void setEndLine (long long int l)
 
void setStartColumn (long long int c)
 
void setStartLine (long long int l)
 
long long int startColumn () const
 
long long int startLine () const
 

Additional Inherited Members

- Protected Member Functions inherited from MD::Item< Trait >
 Item ()=default
 

Detailed Description

template<class Trait>
class MD::Table< Trait >

Table.

Definition at line 1563 of file doc.h.

Member Typedef Documentation

◆ ColumnsAlignments

template<class Trait >
using MD::Table< Trait >::ColumnsAlignments = typename Trait::template Vector<Alignment>

Type of list alignments.

Definition at line 1620 of file doc.h.

◆ Rows

template<class Trait >
using MD::Table< Trait >::Rows = typename Trait::template Vector<TableRowSharedPointer>

Type of list of rows.

Definition at line 1595 of file doc.h.

◆ TableRowSharedPointer

template<class Trait >
using MD::Table< Trait >::TableRowSharedPointer = std::shared_ptr<TableRow<Trait>>

Type of a smart pointer to table row.

Definition at line 1593 of file doc.h.

Member Enumeration Documentation

◆ Alignment

template<class Trait >
enum MD::Table::Alignment

Alignment.

Enumerator
AlignLeft 

Left.

AlignRight 

Right.

AlignCenter 

Center.

Definition at line 1610 of file doc.h.

Constructor & Destructor Documentation

◆ Table()

template<class Trait >
MD::Table< Trait >::Table ( )
default

◆ ~Table()

template<class Trait >
MD::Table< Trait >::~Table ( )
overridedefault

Member Function Documentation

◆ appendRow()

template<class Trait >
void MD::Table< Trait >::appendRow ( TableRowSharedPointer r)
inline

Append row.

Definition at line 1604 of file doc.h.

◆ clone()

template<class Trait >
std::shared_ptr< Item< Trait > > MD::Table< Trait >::clone ( Document< Trait > * doc = nullptr) const
inlineoverridevirtual

Clone this table.

Implements MD::Item< Trait >.

Definition at line 1570 of file doc.h.

◆ columnAlignment()

template<class Trait >
Alignment MD::Table< Trait >::columnAlignment ( int idx) const
inline
Returns
Alignment of the given column.

Definition at line 1623 of file doc.h.

◆ columnsCount()

template<class Trait >
int MD::Table< Trait >::columnsCount ( ) const
inline
Returns
Count of columns.

Definition at line 1639 of file doc.h.

◆ isEmpty()

template<class Trait >
bool MD::Table< Trait >::isEmpty ( ) const
inline
Returns
Is this table empty?

Definition at line 1645 of file doc.h.

◆ rows()

template<class Trait >
const Rows & MD::Table< Trait >::rows ( ) const
inline
Returns
List of rows.

Definition at line 1598 of file doc.h.

◆ setColumnAlignment()

template<class Trait >
void MD::Table< Trait >::setColumnAlignment ( int idx,
Alignment a )
inline

Set alignment of the given column.

Definition at line 1629 of file doc.h.

◆ type()

template<class Trait >
ItemType MD::Table< Trait >::type ( ) const
inlineoverridevirtual
Returns
Type of the item.

Implements MD::Item< Trait >.

Definition at line 1587 of file doc.h.


The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Nov 6 2024 12:12:28 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.