Savarese Software Research
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

sava::spatial::PointTraits< P > Struct Template Reference

#include <Point.h>

List of all members.


Detailed Description

template<typename P>
struct sava::spatial::PointTraits< P >

PointTraits stores metadata about Point instances.

Author:
Daniel F. Savarese

Definition at line 42 of file Point.h.

Public Types

typedef P point_type
 The type of the point.
typedef point_type::coordinate_type coordinate_type
 The type of coordinates stored in the point.

Static Public Member Functions

static const coordinate_type max_coordinate ()
 Returns the maximum value a coordinate may assume.
static const coordinate_type min_coordinate ()
 Returns the minimum value a coordinate may assume.
static const unsigned int dimensions ()
 Returns the number of dimensions in the point.


Member Typedef Documentation

template<typename P>
typedef point_type::coordinate_type sava::spatial::PointTraits< P >::coordinate_type
 

The type of coordinates stored in the point.

Definition at line 51 of file Point.h.

template<typename P>
typedef P sava::spatial::PointTraits< P >::point_type
 

The type of the point.

Definition at line 46 of file Point.h.


Member Function Documentation

template<typename P>
static const unsigned int sava::spatial::PointTraits< P >::dimensions  )  [inline, static]
 

Returns the number of dimensions in the point.

Returns:
The number of dimensions in the point.

Definition at line 76 of file Point.h.

template<typename P>
static const coordinate_type sava::spatial::PointTraits< P >::max_coordinate  )  [inline, static]
 

Returns the maximum value a coordinate may assume.

Returns:
The maximum value a coordinate may assume.

Definition at line 58 of file Point.h.

template<typename P>
static const coordinate_type sava::spatial::PointTraits< P >::min_coordinate  )  [inline, static]
 

Returns the minimum value a coordinate may assume.

Returns:
The minimum value a coordinate may assume.

Definition at line 67 of file Point.h.


The documentation for this struct was generated from the following file:
Savarese Software Research
Copyright © 2003-2005 Savarese Software Research and Daniel F. Savarese. All rights reserved.