Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

Location Class Reference

#include <location.h>

Inheritance diagram for Location:

Inheritance graph
[legend]
Collaboration diagram for Location:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Location (double x, double y, double z)
virtual void setLocation (double x, double y, double z)
virtual void getLocation (double *x, double *y, double *z)
virtual void update_location ()

Protected Attributes

double X
double Y
double Z

Constructor & Destructor Documentation

Location::Location double  x,
double  y,
double  z
[inline]
 

Definition at line 46 of file location.h.

References X, Y, and Z.

00046                                                {
00047                 X = x;
00048                 Y = y;
00049                 Z = z;
00050         }


Member Function Documentation

virtual void Location::getLocation double *  x,
double *  y,
double *  z
[inline, virtual]
 

Definition at line 56 of file location.h.

References update_location(), X, Y, and Z.

00056                                                                   {
00057                 update_location();
00058                 *x = X;
00059                 *y = Y;
00060                 *z = Z;
00061         }

Here is the call graph for this function:

virtual void Location::setLocation double  x,
double  y,
double  z
[inline, virtual]
 

Definition at line 51 of file location.h.

References X, Y, and Z.

00051                                                                {
00052                 X = x;
00053                 Y = y;
00054                 Z = z;
00055         }

virtual void Location::update_location  )  [inline, virtual]
 

Definition at line 62 of file location.h.

Referenced by getLocation().

00062 {}


Member Data Documentation

double Location::X [protected]
 

Definition at line 65 of file location.h.

Referenced by getLocation(), Location(), and setLocation().

double Location::Y [protected]
 

Definition at line 65 of file location.h.

Referenced by getLocation(), Location(), and setLocation().

double Location::Z [protected]
 

Definition at line 65 of file location.h.

Referenced by getLocation(), Location(), and setLocation().


The documentation for this class was generated from the following file:
Generated on Tue Apr 20 12:56:31 2004 for NS2.26SourcesOriginal by doxygen 1.3.3