formula_tokens_store

Defined in header: <ixion/formula_tokens.hpp>

class formula_tokens_store

Storage for a series of formula tokens. The stored tokens are immutable once the store instance is created, as one store instance may be shared between multiple formula cells.

Public Functions

~formula_tokens_store()
formula_tokens_store(const formula_tokens_store&) = delete
formula_tokens_store &operator=(const formula_tokens_store&) = delete
size_t get_reference_count() const

Get the number of formula cells and other holders currently sharing this store.

const formula_tokens_t &get() const

Get the stored tokens.

Public Static Functions

static formula_tokens_store_ptr_t create()

Create a new store instance with no tokens.

static formula_tokens_store_ptr_t create(formula_tokens_t tokens)

Create a new store instance that stores the passed tokens.

Parameters:

tokens – tokens to store.