COOPY » Guide
version 0.6.5
|
#include <PolySheet.h>
Public Member Functions | |
PolySheet () | |
PolySheet (DataSheet *sheet, bool owned) | |
PolySheet (const PolySheet &alt) | |
const PolySheet & | operator= (const PolySheet &alt) |
virtual | ~PolySheet () |
void | setSchema (SheetSchema *schema, bool owned) |
virtual SheetSchema * | getSchema () const |
void | clear () |
void | clearSheet () |
void | clearSchema () |
bool | isValid () const |
virtual int | width () const |
virtual int | height () const |
virtual std::string | cellString (int x, int y) const |
virtual std::string | cellString (int x, int y, bool &escaped) const |
virtual bool | cellString (int x, int y, const std::string &str) |
sets the contents of cell in column x, row y to a specified string value | |
virtual bool | cellString (int x, int y, const std::string &str, bool escaped) |
sets the contents of cell in column x, row y to a specified string value, or to NULL if "escaped" is set. | |
virtual SheetCell | cellSummary (int x, int y) const |
virtual bool | cellSummary (int x, int y, const SheetCell &c) |
sets the contents of cell in column x, row y to a specified value. | |
std::string | encode (const SheetStyle &style) const |
Render table as serialized text, using the specified style. | |
virtual bool | deleteColumn (const ColumnRef &column) |
virtual ColumnRef | insertColumn (const ColumnRef &base) |
virtual ColumnRef | insertColumn (const ColumnRef &base, const ColumnInfo &info) |
virtual bool | modifyColumn (const ColumnRef &base, const ColumnInfo &info) |
virtual ColumnRef | moveColumn (const ColumnRef &src, const ColumnRef &base) |
virtual bool | deleteRow (const RowRef &src) |
virtual bool | deleteRows (const RowRef &first, const RowRef &last) |
virtual RowRef | insertRow (const RowRef &base) |
virtual RowRef | moveRow (const RowRef &src, const RowRef &base) |
virtual bool | copyData (const DataSheet &src) |
virtual bool | canWrite () |
virtual bool | canResize () |
virtual bool | resize (int w, int h) |
virtual Poly< SheetRow > | insertRow () |
virtual Poly< SheetRow > | insertRowOrdered (const RowRef &base) |
virtual bool | applySchema (const SheetSchema &ss) |
virtual bool | applyRowCache (const RowCache &cache, int row, SheetCell *result) |
virtual bool | deleteData (int start=0) |
virtual bool | hasDimension () const |
virtual bool | forceWidth (int width) |
virtual bool | forceHeight (int height) |
virtual bool | hasExternalColumnNames () const |
virtual std::string | getDescription () const |
virtual std::vector< std::string > | getNestedDescription () const |
virtual std::string | getHash (bool cache) const |
virtual std::string | getRawHash () const |
virtual DataSheet & | tail () |
virtual const DataSheet & | tail_const () const |
virtual const DataSheet & | dataTail () const |
virtual bool | isSequential () const |
virtual DataSheet * | getNestedSheet (int x, int y) |
bool | setRowOffset (int dh) |
virtual bool | hasRowOffset () const |
bool | setRowOffset () |
bool | createHeaders () |
bool | hideHeaders () |
virtual Poly< Appearance > | getCellAppearance (int x, int y) |
virtual Poly< Appearance > | getRowAppearance (int y) |
virtual Poly< Appearance > | getColAppearance (int x) |
virtual bool | hasSheetName () const |
virtual bool | addedHeader () |
bool | mustHaveSchema () |
void | forbidSchema () |
virtual bool | setPool (Pool *pool) |
virtual Pool * | getPool () const |
virtual void | setMeta (SheetSchema *hint) |
virtual void | setMeta () |
virtual SheetSchema * | getMeta () const |
virtual bool | beginTransaction () |
virtual bool | rollbackTransaction () |
virtual bool | endTransaction () |
virtual void * | getDatabase () const |
virtual coopy::cmp::Compare * | getComparisonMethod () |
virtual bool | canEscape () const |
virtual SheetCell | getCell (int x, int y) const |
virtual bool | setCell (int x, int y, const SheetCell &c) |
set contents of cell in column x, row y | |
std::string | toString () const |
Render table as serialized text, using a default style. | |
virtual bool | clearCache () |
Remove any cached values if used, e.g. | |
virtual std::string | desc () const |
int | addReference () |
int | removeReference () |
int | getReferenceCount () |
Static Public Member Functions | |
static std::string | encodeCell (const SheetCell &str, const SheetStyle &style) |
Encode a cell value as text using a specified style. |
Definition at line 13 of file PolySheet.h.
coopy::store::PolySheet::PolySheet | ( | ) | [inline] |
Definition at line 22 of file PolySheet.h.
coopy::store::PolySheet::PolySheet | ( | DataSheet * | sheet, |
bool | owned | ||
) | [inline] |
Definition at line 31 of file PolySheet.h.
References coopy::store::RefCount::addReference().
coopy::store::PolySheet::PolySheet | ( | const PolySheet & | alt | ) | [inline] |
Definition at line 41 of file PolySheet.h.
References coopy::store::RefCount::addReference().
virtual coopy::store::PolySheet::~PolySheet | ( | ) | [inline, virtual] |
Definition at line 73 of file PolySheet.h.
References clear().
virtual bool coopy::store::PolySheet::addedHeader | ( | ) | [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 451 of file PolySheet.h.
References coopy::store::DataSheet::addedHeader(), and COOPY_ASSERT.
Referenced by coopy::store::TextBook::copy().
int coopy::store::RefCount::addReference | ( | ) | [inline, inherited] |
Definition at line 30 of file RefCount.h.
Referenced by coopy::store::PolyBook::attach(), coopy::fold::FoldedCell::FoldedCell(), coopy::fold::FoldedCell::getOrCreateSheet(), coopy::store::PolyBook::operator=(), coopy::store::PolyValue::operator=(), operator=(), coopy::fold::FoldedCell::operator=(), coopy::store::PolyBook::PolyBook(), PolySheet(), coopy::store::PolyValue::PolyValue(), setSchema(), and coopy::store::PolyBook::take().
virtual bool coopy::store::PolySheet::applyRowCache | ( | const RowCache & | cache, |
int | row, | ||
SheetCell * | result | ||
) | [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 284 of file PolySheet.h.
References coopy::store::DataSheet::applyRowCache(), and COOPY_ASSERT.
virtual bool coopy::store::PolySheet::applySchema | ( | const SheetSchema & | ss | ) | [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 279 of file PolySheet.h.
References coopy::store::DataSheet::applySchema(), and COOPY_ASSERT.
virtual bool coopy::store::PolySheet::beginTransaction | ( | ) | [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 489 of file PolySheet.h.
References coopy::store::DataSheet::beginTransaction(), and COOPY_ASSERT.
Referenced by coopy::store::TextBook::copy().
virtual bool coopy::store::DataSheet::canEscape | ( | ) | const [inline, virtual, inherited] |
Definition at line 139 of file DataSheet.h.
virtual bool coopy::store::PolySheet::canResize | ( | ) | [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 255 of file PolySheet.h.
References coopy::store::DataSheet::canResize(), and COOPY_ASSERT.
virtual bool coopy::store::PolySheet::canWrite | ( | ) | [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 250 of file PolySheet.h.
References coopy::store::DataSheet::canWrite(), and COOPY_ASSERT.
virtual std::string coopy::store::PolySheet::cellString | ( | int | x, |
int | y, | ||
bool & | escaped | ||
) | const [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 139 of file PolySheet.h.
References coopy::store::DataSheet::cellString(), and COOPY_ASSERT.
virtual bool coopy::store::PolySheet::cellString | ( | int | x, |
int | y, | ||
const std::string & | str | ||
) | [inline, virtual] |
sets the contents of cell in column x, row y to a specified string value
Reimplemented from coopy::store::DataSheet.
Definition at line 144 of file PolySheet.h.
References coopy::store::DataSheet::cellString(), and COOPY_ASSERT.
virtual bool coopy::store::PolySheet::cellString | ( | int | x, |
int | y, | ||
const std::string & | str, | ||
bool | escaped | ||
) | [inline, virtual] |
sets the contents of cell in column x, row y to a specified string value, or to NULL if "escaped" is set.
Reimplemented from coopy::store::DataSheet.
Definition at line 149 of file PolySheet.h.
References coopy::store::DataSheet::cellString(), and COOPY_ASSERT.
virtual std::string coopy::store::PolySheet::cellString | ( | int | x, |
int | y | ||
) | const [inline, virtual] |
Implements coopy::store::DataSheet.
Definition at line 134 of file PolySheet.h.
References coopy::store::DataSheet::cellString(), and COOPY_ASSERT.
Referenced by coopy::app::Diff::apply(), coopy::cmp::PatchParser::applyHiliteBook(), coopy::cmp::SheetPatcher::changeRow(), createHeaders(), coopy::cmp::MergeOutputNovel::declareLink(), coopy::fold::FoldTool::fold(), coopy::cmp::MergeOutputNovel::formatSheet(), main(), coopy::cmp::SheetPatcher::markChanges(), coopy::cmp::BookCompare::resolve(), coopy::fold::FoldTool::unfold(), and coopy::cmp::SheetPatcher::updateSheet().
virtual SheetCell coopy::store::PolySheet::cellSummary | ( | int | x, |
int | y | ||
) | const [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 154 of file PolySheet.h.
References coopy::store::DataSheet::cellSummary(), and COOPY_ASSERT.
Referenced by coopy::cmp::PatchParser::applyHiliteBook(), coopy::cmp::SheetPatcher::changeRow(), coopy::cmp::BookCompare::create(), coopy::cmp::MergeOutputNovel::declareLink(), coopy::store::TextBook::equals(), coopy::fold::FoldTool::fold(), link_cell(), coopy::store::PoolImpl::load(), main(), coopy::cmp::SheetPatcher::markChanges(), and coopy::cmp::BookCompare::resolve().
virtual bool coopy::store::PolySheet::cellSummary | ( | int | x, |
int | y, | ||
const SheetCell & | c | ||
) | [inline, virtual] |
sets the contents of cell in column x, row y to a specified value.
Reimplemented from coopy::store::DataSheet.
Definition at line 159 of file PolySheet.h.
References coopy::store::DataSheet::cellSummary(), and COOPY_ASSERT.
void coopy::store::PolySheet::clear | ( | ) | [inline] |
Definition at line 92 of file PolySheet.h.
References clearSchema(), and clearSheet().
Referenced by operator=(), coopy::cmp::MergeOutputRowOps::setSheet(), and ~PolySheet().
virtual bool coopy::store::DataSheet::clearCache | ( | ) | [inline, virtual, inherited] |
Remove any cached values if used, e.g.
in proxies for remote tables.
Reimplemented in coopy::store::remotesql::RemoteSqlSheet, and coopy::store::sqlite::SqliteSheet.
Definition at line 191 of file DataSheet.h.
void coopy::store::PolySheet::clearSchema | ( | ) | [inline] |
Definition at line 109 of file PolySheet.h.
References coopy::store::RefCount::removeReference().
Referenced by clear(), and setSchema().
void coopy::store::PolySheet::clearSheet | ( | ) | [inline] |
Definition at line 98 of file PolySheet.h.
References coopy::store::RefCount::removeReference().
Referenced by clear().
virtual bool coopy::store::PolySheet::copyData | ( | const DataSheet & | src | ) | [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 245 of file PolySheet.h.
References COOPY_ASSERT, and coopy::store::DataSheet::copyData().
bool coopy::store::PolySheet::createHeaders | ( | ) | [inline] |
Definition at line 403 of file PolySheet.h.
References cellString(), coopy::store::SheetSchema::getColumnCount(), coopy::store::SheetSchema::getColumnInfo(), coopy::store::ColumnInfo::getName(), getSchema(), hasExternalColumnNames(), insertRow(), coopy::store::SheetSchema::setHeaderHeight(), and setRowOffset().
Referenced by coopy::fold::FoldTool::fold().
virtual const DataSheet& coopy::store::PolySheet::dataTail | ( | ) | const [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 361 of file PolySheet.h.
References COOPY_ASSERT, and coopy::store::DataSheet::dataTail().
Referenced by coopy::cmp::Patcher::getSheet().
virtual bool coopy::store::PolySheet::deleteColumn | ( | const ColumnRef & | column | ) | [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 173 of file PolySheet.h.
References COOPY_ASSERT, coopy::store::SheetSchema::deleteColumn(), coopy::store::DataSheet::deleteColumn(), getSchema(), and coopy::store::SheetSchema::isShadow().
Referenced by coopy::cmp::SheetPatcher::changeColumn(), coopy::cmp::SheetPatcher::changeName(), and coopy::fold::FoldTool::fold().
virtual bool coopy::store::PolySheet::deleteData | ( | int | start = 0 | ) | [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 289 of file PolySheet.h.
References COOPY_ASSERT, and coopy::store::DataSheet::deleteData().
Referenced by coopy::cmp::SheetPatcher::changeColumn(), coopy::store::TextBook::copy(), coopy::cmp::MergeOutputFilter::emitPreamble(), and coopy::store::PoolImpl::save().
virtual bool coopy::store::PolySheet::deleteRow | ( | const RowRef & | src | ) | [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 222 of file PolySheet.h.
References COOPY_ASSERT, coopy::store::DataSheet::deleteRow(), and coopy::store::RowRef::delta().
Referenced by coopy::cmp::SheetPatcher::changeRow().
virtual bool coopy::store::PolySheet::deleteRows | ( | const RowRef & | first, |
const RowRef & | last | ||
) | [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 227 of file PolySheet.h.
References COOPY_ASSERT, coopy::store::DataSheet::deleteRows(), and coopy::store::RowRef::delta().
Referenced by coopy::app::Diff::apply(), and coopy::cmp::SheetPatcher::updateSheet().
virtual std::string coopy::store::DataSheet::desc | ( | ) | const [inline, virtual, inherited] |
Definition at line 303 of file DataSheet.h.
References coopy::store::DataSheet::getNestedDescription().
Referenced by coopy::cmp::SheetPatcher::changeRow(), coopy::store::TextBook::copy(), and coopy::store::DataSheet::getHash().
std::string coopy::store::PolySheet::encode | ( | const SheetStyle & | style | ) | const [inline] |
Render table as serialized text, using the specified style.
Reimplemented from coopy::store::DataSheet.
Definition at line 164 of file PolySheet.h.
References COOPY_ASSERT, and coopy::store::DataSheet::encode().
std::string DataSheet::encodeCell | ( | const SheetCell & | str, |
const SheetStyle & | style | ||
) | [static, inherited] |
Encode a cell value as text using a specified style.
Definition at line 70 of file DataSheet.cpp.
References coopy::store::SheetCell::escaped, coopy::store::SheetStyle::getDelimiter(), coopy::store::SheetStyle::getNullToken(), coopy::store::SheetStyle::haveNullToken(), coopy::store::SheetStyle::quoteCollidingText(), coopy::store::SheetStyle::shouldTrimEnd(), and coopy::store::SheetCell::text.
Referenced by coopy::store::DataSheet::encode().
virtual bool coopy::store::PolySheet::endTransaction | ( | ) | [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 499 of file PolySheet.h.
References COOPY_ASSERT, and coopy::store::DataSheet::endTransaction().
Referenced by coopy::store::TextBook::copy().
void coopy::store::PolySheet::forbidSchema | ( | ) | [inline] |
Definition at line 458 of file PolySheet.h.
Referenced by coopy::cmp::Patcher::getSheet().
virtual bool coopy::store::PolySheet::forceHeight | ( | int | height | ) | [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 304 of file PolySheet.h.
References COOPY_ASSERT, and coopy::store::DataSheet::forceHeight().
virtual bool coopy::store::PolySheet::forceWidth | ( | int | width | ) | [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 299 of file PolySheet.h.
References COOPY_ASSERT, and coopy::store::DataSheet::forceWidth().
Referenced by coopy::store::TextBook::copy().
virtual SheetCell coopy::store::DataSheet::getCell | ( | int | x, |
int | y | ||
) | const [inline, virtual, inherited] |
Definition at line 148 of file DataSheet.h.
References coopy::store::DataSheet::cellSummary().
Referenced by coopy::store::DataSheet::copyData().
virtual Poly<Appearance> coopy::store::PolySheet::getCellAppearance | ( | int | x, |
int | y | ||
) | [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 431 of file PolySheet.h.
References COOPY_ASSERT, and coopy::store::DataSheet::getCellAppearance().
Referenced by coopy::cmp::MergeOutputNovel::declareLink(), coopy::cmp::SheetPatcher::markChanges(), and coopy::cmp::SheetPatcher::updateSheet().
virtual Poly<Appearance> coopy::store::PolySheet::getColAppearance | ( | int | x | ) | [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 441 of file PolySheet.h.
References COOPY_ASSERT, and coopy::store::DataSheet::getColAppearance().
Referenced by coopy::cmp::SheetPatcher::changeColumn().
virtual coopy::cmp::Compare* coopy::store::PolySheet::getComparisonMethod | ( | ) | [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 509 of file PolySheet.h.
References COOPY_ASSERT, and coopy::store::DataSheet::getComparisonMethod().
virtual void* coopy::store::PolySheet::getDatabase | ( | ) | const [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 504 of file PolySheet.h.
References COOPY_ASSERT, and coopy::store::DataSheet::getDatabase().
virtual std::string coopy::store::PolySheet::getDescription | ( | ) | const [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 316 of file PolySheet.h.
Referenced by getNestedDescription().
virtual std::string coopy::store::PolySheet::getHash | ( | bool | cache | ) | const [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 328 of file PolySheet.h.
References COOPY_ASSERT, and coopy::store::DataSheet::getHash().
virtual SheetSchema* coopy::store::PolySheet::getMeta | ( | ) | const [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 484 of file PolySheet.h.
References COOPY_ASSERT, and coopy::store::DataSheet::getMeta().
virtual std::vector<std::string> coopy::store::PolySheet::getNestedDescription | ( | ) | const [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 320 of file PolySheet.h.
References COOPY_ASSERT, getDescription(), and coopy::store::DataSheet::getNestedDescription().
virtual DataSheet* coopy::store::PolySheet::getNestedSheet | ( | int | x, |
int | y | ||
) | [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 371 of file PolySheet.h.
References COOPY_ASSERT, and coopy::store::DataSheet::getNestedSheet().
virtual Pool* coopy::store::PolySheet::getPool | ( | ) | const [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 467 of file PolySheet.h.
References COOPY_ASSERT, and coopy::store::DataSheet::getPool().
virtual std::string coopy::store::PolySheet::getRawHash | ( | ) | const [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 337 of file PolySheet.h.
References COOPY_ASSERT, and coopy::store::DataSheet::getRawHash().
int coopy::store::RefCount::getReferenceCount | ( | ) | [inline, inherited] |
Definition at line 40 of file RefCount.h.
virtual Poly<Appearance> coopy::store::PolySheet::getRowAppearance | ( | int | y | ) | [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 436 of file PolySheet.h.
References COOPY_ASSERT, and coopy::store::DataSheet::getRowAppearance().
Referenced by coopy::cmp::SheetPatcher::changeRow(), coopy::cmp::MergeOutputNovel::declareLink(), and coopy::cmp::SheetPatcher::updateSheet().
virtual SheetSchema* coopy::store::PolySheet::getSchema | ( | ) | const [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 86 of file PolySheet.h.
References coopy::store::DataSheet::getSchema().
Referenced by coopy::app::Diff::apply(), coopy::store::TextBook::copy(), createHeaders(), deleteColumn(), coopy::store::TextBook::equals(), hideHeaders(), insertColumn(), moveColumn(), mustHaveSchema(), renderJsonBook(), coopy::cmp::BookCompare::resolve(), setMeta(), and setRowOffset().
virtual bool coopy::store::PolySheet::hasDimension | ( | ) | const [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 294 of file PolySheet.h.
References COOPY_ASSERT, and coopy::store::DataSheet::hasDimension().
Referenced by coopy::store::TextBook::copy().
virtual bool coopy::store::PolySheet::hasExternalColumnNames | ( | ) | const [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 309 of file PolySheet.h.
References COOPY_ASSERT, and coopy::store::DataSheet::hasExternalColumnNames().
Referenced by coopy::store::TextBook::copy(), createHeaders(), and hideHeaders().
virtual bool coopy::store::PolySheet::hasRowOffset | ( | ) | const [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 381 of file PolySheet.h.
References coopy::store::DataSheet::hasRowOffset().
virtual bool coopy::store::PolySheet::hasSheetName | ( | ) | const [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 446 of file PolySheet.h.
References COOPY_ASSERT, and coopy::store::DataSheet::hasSheetName().
virtual int coopy::store::PolySheet::height | ( | ) | const [inline, virtual] |
Implements coopy::store::DataSheet.
Definition at line 129 of file PolySheet.h.
References coopy::store::DataSheet::height().
Referenced by coopy::store::json::JsonBook::addSheet(), coopy::app::Diff::apply(), coopy::cmp::PatchParser::applyHiliteBook(), coopy::cmp::SheetPatcher::changeRow(), coopy::store::TextBook::copy(), coopy::cmp::BookCompare::create(), coopy::cmp::MergeOutputNovel::declareLink(), coopy::store::TextBook::equals(), coopy::fold::FoldTool::fold(), coopy::cmp::MergeOutputNovel::formatSheet(), coopy::store::PoolImpl::load(), main(), coopy::cmp::BookCompare::resolve(), coopy::fold::FoldTool::unfold(), and coopy::cmp::SheetPatcher::updateSheet().
bool coopy::store::PolySheet::hideHeaders | ( | ) | [inline] |
Definition at line 420 of file PolySheet.h.
References getSchema(), hasExternalColumnNames(), and setRowOffset().
Referenced by coopy::cmp::SheetCompare::compare(), coopy::cmp::MergeOutputNovel::declareLink(), coopy::store::TextBook::equals(), coopy::fold::FoldTool::fold(), coopy::cmp::MergeOutputNovel::formatSheet(), main(), and coopy::cmp::BookCompare::resolve().
Reimplemented from coopy::store::DataSheet.
Definition at line 187 of file PolySheet.h.
References COOPY_ASSERT, coopy::store::ColumnRef::getIndex(), getSchema(), coopy::store::SheetSchema::insertColumn(), coopy::store::DataSheet::insertColumn(), coopy::store::SheetSchema::isShadow(), and coopy::store::ColumnRef::isValid().
Referenced by coopy::cmp::SheetPatcher::changeColumn(), coopy::cmp::MergeOutputNovel::formatSheet(), main(), coopy::fold::FoldTool::unfold(), and coopy::cmp::SheetPatcher::updateSheet().
ColumnRef PolySheet::insertColumn | ( | const ColumnRef & | base, |
const ColumnInfo & | info | ||
) | [virtual] |
Implements coopy::store::DataSheet.
Definition at line 65 of file PolySheet.cpp.
References COOPY_ASSERT, coopy::store::ColumnRef::getIndex(), coopy::store::SheetSchema::insertColumn(), coopy::store::DataSheet::insertColumn(), coopy::store::SheetSchema::isShadow(), and coopy::store::ColumnRef::isValid().
Reimplemented from coopy::store::DataSheet.
Definition at line 234 of file PolySheet.h.
References COOPY_ASSERT, coopy::store::RowRef::delta(), and coopy::store::DataSheet::insertRow().
Referenced by coopy::cmp::SheetPatcher::changeRow(), coopy::store::TextBook::copy(), main(), coopy::store::PoolImpl::save(), and coopy::cmp::SheetPatcher::updateSheet().
Reimplemented from coopy::store::DataSheet.
Definition at line 265 of file PolySheet.h.
References COOPY_ASSERT, and coopy::store::DataSheet::insertRow().
Referenced by createHeaders().
virtual Poly<SheetRow> coopy::store::PolySheet::insertRowOrdered | ( | const RowRef & | base | ) | [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 272 of file PolySheet.h.
References COOPY_ASSERT, coopy::store::RowRef::delta(), and coopy::store::DataSheet::insertRowOrdered().
Referenced by coopy::cmp::SheetPatcher::changeRow().
virtual bool coopy::store::PolySheet::isSequential | ( | ) | const [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 366 of file PolySheet.h.
References COOPY_ASSERT, and coopy::store::DataSheet::isSequential().
Referenced by coopy::cmp::SheetPatcher::changeRow().
bool coopy::store::PolySheet::isValid | ( | ) | const [inline] |
Definition at line 120 of file PolySheet.h.
Referenced by coopy::app::Diff::apply(), coopy::cmp::SheetPatcher::changeColumn(), coopy::cmp::SheetPatcher::changeRow(), coopy::cmp::BookCompare::compare(), coopy::store::TextBook::copy(), coopy::cmp::SheetPatcher::declareNames(), coopy::cmp::MergeOutputFilter::emitPreamble(), coopy::store::TextBook::equals(), coopy::fold::FoldTool::fold(), coopy::cmp::Patcher::getSheet(), coopy::cmp::SheetPatcher::handleConflicts(), main(), coopy::cmp::MergeOutputFilter::mergeAllDone(), coopy::store::socialcalc::SocialCalcTextBook::provideSheet(), coopy::store::ShortTextBook::provideSheet(), renderJsonBook(), coopy::cmp::BookCompare::resolve(), coopy::cmp::SheetPatcher::setNames(), coopy::cmp::SheetPatcher::setSheet(), coopy::fold::FoldTool::unfold(), and coopy::cmp::SheetPatcher::updateSheet().
bool PolySheet::modifyColumn | ( | const ColumnRef & | base, |
const ColumnInfo & | info | ||
) | [virtual] |
Implements coopy::store::DataSheet.
Definition at line 81 of file PolySheet.cpp.
References COOPY_ASSERT, coopy::store::SheetSchema::isShadow(), coopy::store::SheetSchema::modifyColumn(), and coopy::store::DataSheet::modifyColumn().
Referenced by coopy::fold::FoldTool::unfold().
virtual ColumnRef coopy::store::PolySheet::moveColumn | ( | const ColumnRef & | src, |
const ColumnRef & | base | ||
) | [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 208 of file PolySheet.h.
References COOPY_ASSERT, coopy::store::ColumnRef::getIndex(), getSchema(), coopy::store::SheetSchema::isShadow(), coopy::store::ColumnRef::isValid(), coopy::store::SheetSchema::moveColumn(), and coopy::store::DataSheet::moveColumn().
Referenced by main().
virtual RowRef coopy::store::PolySheet::moveRow | ( | const RowRef & | src, |
const RowRef & | base | ||
) | [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 240 of file PolySheet.h.
References COOPY_ASSERT, coopy::store::RowRef::delta(), and coopy::store::DataSheet::moveRow().
Referenced by coopy::cmp::SheetPatcher::changeRow().
bool PolySheet::mustHaveSchema | ( | ) |
Definition at line 6 of file PolySheet.cpp.
References coopy::store::SheetSchema::clone(), COOPY_ASSERT, getSchema(), setSchema(), and coopy::store::SchemaSniffer::suggestSchema().
Referenced by coopy::app::Diff::apply(), coopy::cmp::SheetPatcher::handleConflicts(), main(), renderJsonBook(), and coopy::cmp::BookCompare::resolve().
Definition at line 56 of file PolySheet.h.
References coopy::store::RefCount::addReference(), and clear().
int coopy::store::RefCount::removeReference | ( | ) | [inline, inherited] |
Definition at line 35 of file RefCount.h.
Referenced by coopy::store::PolyBook::clear(), coopy::store::PolyValue::clear(), clearSchema(), clearSheet(), and coopy::store::PolyBook::give().
virtual bool coopy::store::PolySheet::resize | ( | int | w, |
int | h | ||
) | [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 260 of file PolySheet.h.
References COOPY_ASSERT, and coopy::store::DataSheet::resize().
Referenced by coopy::fold::FoldTool::fold(), and coopy::cmp::SheetPatcher::setNames().
virtual bool coopy::store::PolySheet::rollbackTransaction | ( | ) | [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 494 of file PolySheet.h.
References COOPY_ASSERT, and coopy::store::DataSheet::rollbackTransaction().
virtual bool coopy::store::DataSheet::setCell | ( | int | x, |
int | y, | ||
const SheetCell & | c | ||
) | [inline, virtual, inherited] |
set contents of cell in column x, row y
Definition at line 157 of file DataSheet.h.
References coopy::store::DataSheet::cellSummary().
Referenced by coopy::store::DataSheet::applyRowCache(), and coopy::store::DataSheet::copyData().
virtual void coopy::store::PolySheet::setMeta | ( | SheetSchema * | hint | ) | [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 472 of file PolySheet.h.
References COOPY_ASSERT, and coopy::store::DataSheet::setMeta().
Referenced by coopy::cmp::SheetCompare::compare().
virtual void coopy::store::PolySheet::setMeta | ( | ) | [inline, virtual] |
Definition at line 477 of file PolySheet.h.
References coopy::store::SheetSchema::clone(), COOPY_ASSERT, and getSchema().
virtual bool coopy::store::PolySheet::setPool | ( | Pool * | pool | ) | [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 462 of file PolySheet.h.
References COOPY_ASSERT, and coopy::store::DataSheet::setPool().
bool coopy::store::PolySheet::setRowOffset | ( | int | dh | ) | [inline] |
Definition at line 376 of file PolySheet.h.
bool coopy::store::PolySheet::setRowOffset | ( | ) | [inline] |
Definition at line 388 of file PolySheet.h.
References COOPY_ASSERT, coopy::store::DataSheet::getSchema(), getSchema(), coopy::store::DataSheet::hasExternalColumnNames(), and coopy::store::SheetSchema::headerHeight().
Referenced by createHeaders(), and hideHeaders().
void coopy::store::PolySheet::setSchema | ( | SheetSchema * | schema, |
bool | owned | ||
) | [inline] |
Definition at line 77 of file PolySheet.h.
References coopy::store::RefCount::addReference(), and clearSchema().
Referenced by coopy::store::json::JsonBook::addSheet(), coopy::cmp::SheetCompare::compare(), coopy::store::TextBook::equals(), coopy::fold::FoldTool::fold(), mustHaveSchema(), and coopy::store::json::JsonBook::read().
virtual DataSheet& coopy::store::PolySheet::tail | ( | ) | [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 345 of file PolySheet.h.
References COOPY_ASSERT, and coopy::store::DataSheet::tail().
Referenced by coopy::store::TextBook::copy().
virtual const DataSheet& coopy::store::PolySheet::tail_const | ( | ) | const [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 353 of file PolySheet.h.
References COOPY_ASSERT, and coopy::store::DataSheet::tail_const().
Referenced by coopy::cmp::SheetPatcher::setNames().
std::string coopy::store::DataSheet::toString | ( | ) | const [inline, inherited] |
Render table as serialized text, using a default style.
Definition at line 173 of file DataSheet.h.
References coopy::store::DataSheet::encode().
Referenced by coopy::cmp::SheetPatcher::changeColumn(), main(), coopy::store::TextBook::toString(), and coopy::store::socialcalc::SocialCalcTextBook::write().
virtual int coopy::store::PolySheet::width | ( | ) | const [inline, virtual] |
Implements coopy::store::DataSheet.
Definition at line 124 of file PolySheet.h.
References coopy::store::DataSheet::width().
Referenced by coopy::store::json::JsonBook::addSheet(), coopy::app::Diff::apply(), coopy::cmp::PatchParser::applyHiliteBook(), coopy::cmp::SheetPatcher::changeColumn(), coopy::cmp::SheetPatcher::changeRow(), coopy::store::TextBook::copy(), coopy::cmp::BookCompare::create(), coopy::cmp::MergeOutputNovel::declareLink(), coopy::cmp::SheetPatcher::declareNames(), coopy::store::TextBook::equals(), coopy::fold::FoldTool::fold(), coopy::cmp::MergeOutputNovel::formatSheet(), main(), coopy::cmp::BookCompare::resolve(), coopy::cmp::SheetPatcher::setNames(), and coopy::cmp::SheetPatcher::updateSheet().