Class TextIndex

class TextIndex : public Reference::Able

Parses and manages a named set of indeces.

Public Functions

TextIndex(const std::string &named_range)

Construct from string of the form ‘name=[range]’.

void set_container(TextInterface::Parser*)

Set the interface to the container to which the named index applies.

void set_size_name(const std::string &name)

Set the name of the index dimension size in the container interface.

The default name of the size attribute is “n” + name

unsigned size() const

Get the number of indeces.

std::string get_index(unsigned i)

Get the index command for the specified index.

std::string get_current_index()

Get the index command for the current index.