Rows class. More...
#include <rows.h>
Public Member Functions | |
rows (entity_system::entity_system &system) | |
Constructor. More... | |
entity_system::entity | site (entity_system::entity row) const |
Site getter. More... | |
unsigned | number_of_sites (entity_system::entity row) const |
Number of sites getter. More... | |
point | origin (entity_system::entity row) const |
Row origin getter. More... | |
std::pair< std::vector < entity_system::entity > ::const_iterator, std::vector < entity_system::entity > ::const_iterator > | sites () const |
Sites iterator getter. More... | |
std::pair< std::vector < unsigned >::const_iterator, std::vector< unsigned > ::const_iterator > | number_of_sites () const |
Number of sites iterator getter. More... | |
std::pair< std::vector< point > ::const_iterator, std::vector < point >::const_iterator > | origins () const |
Origins iterator getter. More... | |
void | site (entity_system::entity row, entity_system::entity site) |
Site setter. More... | |
void | number_of_sites (entity_system::entity row, unsigned number_of_sites) |
Number of sites setter. More... | |
void | origin (entity_system::entity row, point origin) |
Origin setter. More... | |
This class describes the properties of rows initialized by the floorplan module.
ophidian::floorplan::rows::rows | ( | entity_system::entity_system & | system | ) |
Rows object constructor. Register the rows properties to the rows system.
system | Rows entity system. |
|
inline |
Returns the number of sites in a row.
row | Row entity to get the number of sites. |
|
inline |
Returns the begin and end iterator of the row number of sites property.
void ophidian::floorplan::rows::number_of_sites | ( | entity_system::entity | row, |
unsigned | number_of_sites | ||
) |
Sets the number of sites of a row.
row | Row entity to set the number of sites. |
number_of_sites | Number of sites to set. |
|
inline |
Returns the origin of a row.
row | Row entity to get the origin. |
void ophidian::floorplan::rows::origin | ( | entity_system::entity | row, |
rows::point | origin | ||
) |
Sets the origin of a row.
row | Row entity to set the origin. |
origin | Origin to set. |
|
inline |
Returns the begin and end iterator of the row origins property.
|
inline |
Returns the site composing a row.
row | Row entity to get the site. |
void ophidian::floorplan::rows::site | ( | entity_system::entity | row, |
entity_system::entity | site | ||
) |
Sets the site of a row.
row | Row entity to set the site. |
site | Site entity to set. |
|
inline |
Returns the begin and end iterator of the row sites property.