cajun::rndf_t::zone_t Class Reference

Zone class. More...

#include <rndf.H>

List of all members.

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_tm_spot
 Parking spots.
std::vector< unsigned > m_entry
 Entry waypoint IDs.
std::vector< unsigned > m_exit
 Exit waypoint IDs.

Friends

class builder_t

Detailed Description

Zone class.


Member Function Documentation

waypoint_t const& cajun::rndf_t::zone_t::entry ( unsigned  i_  )  const [inline]

Entry waypoint.

Parameters:
i_ Entry index (0 to num_entries() - 1)
Returns:
Entry waypoint

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.

Parameters:
i_ Exit index (0 to num_exits() - 1)
Returns:
Exit waypoint

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.

Parameters:
id_ Perimeter waypoint id (1 to num_points())
Returns:
Perimeter waypoint

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.

Parameters:
id_ Spot id (1 to num_spots())
Returns:
Parking spot

References m_spot, and num_spots().


The documentation for this class was generated from the following file:

Generated on Fri Apr 9 10:45:13 2010 for MDF/RNDF Library by  doxygen 1.6.1