ZoneData.hpp   ZoneData.hpp 
skipping to change at line 23 skipping to change at line 23
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U SA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U SA.
*/ */
#ifndef _ZONEDATA_HPP_ #ifndef _ZONEDATA_HPP_
#define _ZONEDATA_HPP_ #define _ZONEDATA_HPP_
#include <boost/intrusive_ptr.hpp>
// just for Vect3d. // just for Vect3d.
// Take any Vector class instead, if you want to use the star feature in a // Take any Vector class instead, if you want to use the star feature in a
// different context. // different context.
#include "VecMath.hpp" #include "VecMath.hpp"
#include "StelObjectType.hpp"
class StelObject; class StelObject;
namespace BigStarCatalogExtension namespace BigStarCatalogExtension
{ {
//! @struct ZoneData //! @struct ZoneData
//! A single triangle. The stars are arranged in triangular zones according to //! A single triangle. The stars are arranged in triangular zones according to
//! StelGeodesicGrid. Bright stars (Star1) are stored in zones with small l evel, //! StelGeodesicGrid. Bright stars (Star1) are stored in zones with small l evel,
//! whereas fainter stars (Star2,Star3) are stored in zones with highter le vel. //! whereas fainter stars (Star2,Star3) are stored in zones with highter le vel.
skipping to change at line 62 skipping to change at line 61
void *stars; void *stars;
}; };
//! @struct SpecialZoneData //! @struct SpecialZoneData
//! Wrapper struct around ZoneData. //! Wrapper struct around ZoneData.
//! @tparam Star either Star1, Star2 or Star3, depending on the brightness of //! @tparam Star either Star1, Star2 or Star3, depending on the brightness of
//! stars in this triangle //! stars in this triangle
template <class Star> template <class Star>
struct SpecialZoneData : public ZoneData struct SpecialZoneData : public ZoneData
{ {
boost::intrusive_ptr<StelObject> createStelObject(const Star *s) con st StelObjectP createStelObject(const Star *s) const
{ {
return s->createStelObject(*this); return s->createStelObject(*this);
} }
//! Get array of stars in this zone. //! Get array of stars in this zone.
Star *getStars(void) const Star *getStars(void) const
{ {
return reinterpret_cast<Star*>(stars); return reinterpret_cast<Star*>(stars);
} }
}; };
 End of changes. 3 change blocks. 
3 lines changed or deleted 2 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/