code::SpaceTimeRef Struct Reference

List of all members.

Detailed Description

A four-dimensional entity that represents a particular location at a particular point of time.

Every descendant of DataType is associated with a SpaceTimeRef.

Author:
Lakshman
See also:
DataType
Version:
Author
lakshman
Date
2009/06/02 20:17:38
RCSfile
code_SpaceTimeRef.h,v


Public Member Functions

 SpaceTimeRef ()
 The default constructor exists only to facilitate use of the standard containers.
 SpaceTimeRef (const Location &, const Time &)
 Build a SpaceTimeRef from a Location and a Time.
SpaceTimeRef operator+ (const Displacement &) const
 Add a displacement.
SpaceTimeRef operator- (const Displacement &) const
 Subtract a displacement.
SpaceTimeRef operator+ (const TimeInterval &) const
 Add a TimeInterval.
SpaceTimeRef operator- (const TimeInterval &) const
 Subtract a TimeInterval.

Public Attributes

Location location
 Spatial part of the SpaceTimeRef.
Time time
 Temporal part of the SpaceTimeRef.

Friends

std::ostream & operator<< (std::ostream &, const SpaceTimeRef &)
 Print a nicely formatted string representation of this SpaceTimeRef.


Constructor & Destructor Documentation

code::SpaceTimeRef::SpaceTimeRef (  )  [inline]

The default constructor exists only to facilitate use of the standard containers.

It should not be used otherwise.

code::SpaceTimeRef::SpaceTimeRef ( const Location ,
const Time  
)

Build a SpaceTimeRef from a Location and a Time.


Member Function Documentation

SpaceTimeRef code::SpaceTimeRef::operator+ ( const TimeInterval  )  const

Add a TimeInterval.

Location stays the same.

SpaceTimeRef code::SpaceTimeRef::operator+ ( const Displacement  )  const

Add a displacement.

Time stays the same.

SpaceTimeRef code::SpaceTimeRef::operator- ( const TimeInterval  )  const

Subtract a TimeInterval.

Location stays the same.

SpaceTimeRef code::SpaceTimeRef::operator- ( const Displacement  )  const

Subtract a displacement.

Time stays the same.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const SpaceTimeRef  
) [friend]

Print a nicely formatted string representation of this SpaceTimeRef.


Member Data Documentation

Location code::SpaceTimeRef::location

Spatial part of the SpaceTimeRef.

Time code::SpaceTimeRef::time

Temporal part of the SpaceTimeRef.


Generated on Fri May 4 13:40:12 2012 for WDSS-IIw2 by  doxygen 1.4.7