mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/*/expression_model_store] Remove virtual symbol and unknownSymbol methods
This commit is contained in:
committed by
Léa Saviot
parent
b665e841ad
commit
07af06aaad
@@ -11,8 +11,6 @@ namespace Graph {
|
||||
class CartesianFunctionStore : public Shared::FunctionStore {
|
||||
public:
|
||||
Shared::ExpiringPointer<Shared::CartesianFunction> modelForRecord(Ion::Storage::Record record) const { return Shared::ExpiringPointer<Shared::CartesianFunction>(static_cast<Shared::CartesianFunction *>(privateModelForRecord(record))); }
|
||||
CodePoint symbol() const override { return Shared::CartesianFunction::Symbol(); }
|
||||
CodePoint unknownSymbol() const override { return UCodePointUnknownX; }
|
||||
private:
|
||||
Ion::Storage::Record::ErrorStatus addEmptyModel() override;
|
||||
const char * modelExtension() const override { return Ion::Storage::funcExtension; }
|
||||
|
||||
@@ -12,8 +12,6 @@ namespace Sequence {
|
||||
class SequenceStore : public Shared::FunctionStore {
|
||||
public:
|
||||
using Shared::FunctionStore::FunctionStore;
|
||||
CodePoint symbol() const override { return Sequence::Symbol(); }
|
||||
CodePoint unknownSymbol() const override { return UCodePointUnknownN; }
|
||||
/* Sequence Store hold all its Sequences in an array. The Sequence pointers
|
||||
* return by modelForRecord are therefore non-expirable. We choose to return
|
||||
* Sequence * instead of ExpiringPointer<Sequence>. */
|
||||
|
||||
@@ -14,8 +14,6 @@ class ExpressionModelStore {
|
||||
// TODO find better name (once we remove ExpressionModelStore?)
|
||||
public:
|
||||
ExpressionModelStore();
|
||||
virtual CodePoint symbol() const { return 0; }
|
||||
virtual CodePoint unknownSymbol() const { return 0; }
|
||||
|
||||
// Getters
|
||||
// By default, the number of models is not bounded
|
||||
|
||||
Reference in New Issue
Block a user