a generic variable template: value + flag to know if the variable is set More...
#include <libmwaw_internal.hxx>
Public Member Functions | |
| Variable () | |
| constructor | |
| Variable (T def) | |
| constructor with a default value | |
| Variable (Variable const &orig) | |
| copy constructor | |
| Variable & | operator= (Variable const &orig) |
| copy operator | |
| Variable & | operator= (T val) |
| set a value | |
| void | insert (Variable const &orig) |
| update the current value if orig is set | |
| T const * | operator-> () const |
| operator* | |
| T * | operator-> () |
| operator* | |
| T const & | operator* () const |
| operator* | |
| T & | operator* () |
| operator* | |
| T const & | get () const |
| return the current value | |
| bool | isSet () const |
| return true if the variable is set | |
| void | setSet (bool newVal) |
| define if the variable is set | |
Protected Attributes | |
| T | m_data |
| the value | |
| bool | m_set |
| a flag to know if the variable is set or not | |
a generic variable template: value + flag to know if the variable is set
return the current value
Referenced by MWAWParagraph::addTabsTo(), MSWStruct::Font::cmp(), MSWStruct::Paragraph::getFont(), MSWStruct::Paragraph::getNumLines(), MSWTextStyles::getSectionFont(), MSWStruct::Font::insert(), MSWStruct::Table::insert(), MSWStruct::Paragraph::insert(), MSWStruct::Paragraph::inTable(), MSWStruct::operator<<(), operator<<(), MSWText::prepareTableLimits(), MSWStruct::Paragraph::print(), MSWStruct::Paragraph::read(), MSW1Parser::readParagraph(), MWParser::readParagraph(), HMWJText::readParagraph(), HMWKText::readParagraph(), MSK3Text::readParagraph(), CWText::readParagraph(), WNText::readParagraph(), NSText::readParagraphs(), LWText::readRulers(), MSWTextStyles::readSection(), MSWTextStyles::readStylesFont(), MSWText::sendTable(), MSWText::sendText(), NSText::setProperty(), MSWTextStyles::setProperty(), MSWStruct::Font::updateFontToFinalState(), CWTextInternal::Paragraph::updateListLevel(), and MORTextInternal::Paragraph::updateToFinalState().
update the current value if orig is set
Referenced by MSWStruct::Font::insert(), MSWStruct::Section::insert(), MWAWParagraph::insert(), MSWStruct::Table::insert(), MSWStruct::Table::Cell::insert(), MSWStruct::ParagraphInfo::insert(), and MSWStruct::Paragraph::insert().
return true if the variable is set
Referenced by MSWStruct::Paragraph::getFont(), MSWTextStyles::getSectionFont(), MSWTextStyles::getSectionParagraph(), MSWStruct::Font::insert(), MWAWParagraph::insert(), MSWStruct::Table::insert(), MSWStruct::Paragraph::insert(), MSWStruct::ParagraphInfo::isEmpty(), MSWStruct::operator<<(), MSWText::prepareFontProperties(), MSWText::prepareParagraphProperties(), MSWText::prepareTableLimits(), MSWStruct::Paragraph::print(), MSWStruct::Paragraph::read(), MSW1Parser::readParagraph(), MSWTextStyles::sendSection(), MSWText::sendTable(), MSWStruct::Font::updateFontToFinalState(), and MSWStruct::Paragraph::updateParagraphToFinalState().
| T const& Variable< T >::operator* | ( | ) | const [inline] |
operator*
| T& Variable< T >::operator* | ( | ) | [inline] |
operator*
| T const* Variable< T >::operator-> | ( | ) | const [inline] |
operator*
| T* Variable< T >::operator-> | ( | ) | [inline] |
operator*
copy operator
define if the variable is set
Referenced by MWAWParagraph::MWAWParagraph(), and MSWStruct::Paragraph::read().
a flag to know if the variable is set or not
Referenced by Variable< LineSpacingType >::insert(), Variable< LineSpacingType >::isSet(), Variable< LineSpacingType >::operator*(), Variable< LineSpacingType >::operator->(), Variable< LineSpacingType >::operator=(), and Variable< LineSpacingType >::setSet().