6 namespace datastructure {
12 template <
typename E,
size_t X,
size_t Y = 1,
size_t Z = 1>
15 array<array<array<Element<E>*, Z>, Y>, X> data;
18 for (
const auto& x : data) {
19 for (
const auto& y : x) {
38 virtual const pair<string, string> getDataStructureRepresentation() const override final {
39 unordered_set<const Element<E>*> nodes;
40 for (
const auto& x : data) {
41 for (
const auto& y : x) {
42 for (
const auto& z : y) {
49 return Element<E>::generateJSON(nodes);
This is the superclass of all data structure types in BRIDGES.
Definition: DataStructure.h:74
Currently unused class, ignore.
Definition: ElementArray.h:13
const Element< E > * getValue(size_t x, size_t y=0, size_t z=0) const
Definition: ElementArray.h:27
virtual const string getDStype() const override
Definition: ElementArray.h:34
Element< E > * getValue(size_t x, size_t y=0, size_t z=0)
Definition: ElementArray.h:24
ElementArray()
Definition: ElementArray.h:17
void setValue(Element< E > *el, size_t x, size_t y=0, size_t z=0)
Definition: ElementArray.h:30
This is the fundamental building block for all data structures in BRIDGES.
Definition: Element.h:51
Support for drawing Bar charts.
Definition: alltypes.h:4