21 #ifndef ophidian_SITES_H
22 #define ophidian_SITES_H
24 #include <vector_property.h>
25 #include <entity_system.h>
26 #include "../geometry/geometry.h"
35 using point = geometry::point<double>;
56 std::string
name(entity_system::entity site)
const {
57 return m_names[m_system.
lookup(site)];
67 return m_dimensions[m_system.
lookup(site)];
75 std::pair< std::vector<std::string>::const_iterator, std::vector<std::string>::const_iterator >
names()
const {
76 return std::make_pair(m_names.begin(), m_names.end());
84 std::pair< std::vector<point>::const_iterator, std::vector<point>::const_iterator >
dimensions()
const {
85 return std::make_pair(m_dimensions.
begin(), m_dimensions.
end());
94 void name(entity_system::entity site, std::string
name);
108 #endif //ophidian_SITES_H
point dimensions(entity_system::entity site) const
Dimensions getter.
Definition: sites.h:66
std::pair< std::vector< std::string >::const_iterator, std::vector< std::string >::const_iterator > names() const
Name iterator getter.
Definition: sites.h:75
sites(entity_system::entity_system &system)
Constructor.
Definition: sites.cpp:26
std::vector< T >::const_iterator begin() const
Begin iterator.
Definition: vector_property.h:137
std::string name(entity_system::entity site) const
Name getter.
Definition: sites.h:56
std::vector< T >::const_iterator end() const
End iterator.
Definition: vector_property.h:146
Sites class.
Definition: sites.h:34
std::pair< std::vector< point >::const_iterator, std::vector< point >::const_iterator > dimensions() const
Dimensions iterator getter.
Definition: sites.h:84
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