21 #ifndef OPHIDIAN_ABACUS_SUBROWS_H
22 #define OPHIDIAN_ABACUS_SUBROWS_H
24 #include <vector_property.h>
25 #include <placement.h>
26 #include "../subrows.h"
31 namespace legalization {
44 const std::vector<entity_system::entity> &
cells(entity_system::entity row) {
45 return m_cells[m_system.
lookup(row)];
47 bool insert_cell(entity_system::entity row, entity_system::entity cell,
double cell_width);
48 void remove_last_cell(entity_system::entity row,
double cell_width);
50 double capacity(entity_system::entity row) {
51 return m_capacity[m_system.
lookup(row)];
53 void capacity(entity_system::entity row,
double capacity);
62 #endif //OPHIDIAN_ABACUS_SUBROWS_H
Implementation of the vector property class.
Definition: vector_property.h:37
entity_system class.
Definition: entity_system.h:40
entity_index lookup(entity e) const
Gets the index of an entity.
Definition: entity_system.h:149
void register_property(property *property)
Registers property.
Definition: entity_system.cpp:61