wxMaxima
Loading...
Searching...
No Matches
Macros
CellImpl.h File Reference

Macros and types used only by cell implementations, not by cell users. More...

#include <memory>
Include dependency graph for CellImpl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DEFINE_CELL_TYPEINFO(type)
 
#define DEFINE_CELL_COPY(type)
 
#define DEFINE_CELL(type)
 

Detailed Description

Macros and types used only by cell implementations, not by cell users.

Macro Definition Documentation

◆ DEFINE_CELL

#define DEFINE_CELL (   type)
Value:
DEFINE_CELL_COPY(type) \
DEFINE_CELL_TYPEINFO(type) \

◆ DEFINE_CELL_COPY

#define DEFINE_CELL_COPY (   type)
Value:
std::unique_ptr<Cell> type::Copy(GroupCell *group) const \
{ \
return std::make_unique<type>(group, *this); \
} \
A cell grouping input (and, if there is one, also the output) cell to a foldable item.
Definition: GroupCell.h:74

◆ DEFINE_CELL_TYPEINFO

#define DEFINE_CELL_TYPEINFO (   type)
Value:
const CellTypeInfo &type::GetInfo() \
{ \
class type##TypeInfo final : public CellTypeInfo { \
public: \
/* cppcheck-suppress returnTempReference */ \
const wxString &GetName() const override { return S_(#type); } \
}; \
const type##TypeInfo static info; \
return info; \
} \
A class that carries information about the type of a cell.
Definition: Cell.h:93
virtual const wxString & GetName() const =0
The name of the cell type, e.g.