Zone class. More...
#include <rndf.H>
Public Member Functions | |
| zone_t (rndf_t const *rndf_, unsigned id_) | |
| unsigned | id () const |
| Zone's ID. | |
| std::string const & | name () const |
| Zone's name. | |
| unsigned | num_points () const |
| Number of perimeter points in zone. | |
| waypoint_t const & | point (unsigned id_) const |
| Zone perimeter point. | |
| unsigned | num_spots () const |
| Number of parking spots in zone. | |
| spot_t const & | spot (unsigned id_) const |
| Zone parking spot. | |
| unsigned | num_entries () const |
| Number of entry waypoints in zone. | |
| waypoint_t const & | entry (unsigned i_) const |
| Entry waypoint. | |
| unsigned | num_exits () const |
| Number of exit waypoints in zone. | |
| waypoint_t const & | exit (unsigned i_) const |
| Exit waypoint. | |
Private Attributes | |
| rndf_t const * | m_rndf |
| Containing RNDF object. | |
| unsigned | m_id |
| Zone ID. | |
| std::string | m_name |
| Zone name. | |
| std::vector< spot_t > | m_spot |
| Parking spots. | |
| std::vector< unsigned > | m_entry |
| Entry waypoint IDs. | |
| std::vector< unsigned > | m_exit |
| Exit waypoint IDs. | |
Friends | |
| class | builder_t |
Zone class.
| waypoint_t const& cajun::rndf_t::zone_t::entry | ( | unsigned | i_ | ) | const [inline] |
Entry waypoint.
| i_ | Entry index (0 to num_entries() - 1) |
References m_entry, m_id, m_rndf, num_entries(), and cajun::rndf_t::waypoint().
| waypoint_t const& cajun::rndf_t::zone_t::exit | ( | unsigned | i_ | ) | const [inline] |
Exit waypoint.
| i_ | Exit index (0 to num_exits() - 1) |
References m_exit, m_id, m_rndf, num_exits(), and cajun::rndf_t::waypoint().
Referenced by cajun::rndf_t::determine_intersections().
| waypoint_t const& cajun::rndf_t::zone_t::point | ( | unsigned | id_ | ) | const [inline] |
Zone perimeter point.
| id_ | Perimeter waypoint id (1 to num_points()) |
References m_id, m_rndf, and cajun::rndf_t::waypoint().
| spot_t const& cajun::rndf_t::zone_t::spot | ( | unsigned | id_ | ) | const [inline] |
Zone parking spot.
| id_ | Spot id (1 to num_spots()) |
References m_spot, and num_spots().
1.6.1