Coord Class Reference
[Mapping grid -> physical space (spherical coordinates)]

Active physical coordinates and mapping derivatives. More...

#include <coord.h>

List of all members.

Public Member Functions

 Coord ()
 Default constructor.
 Coord (const Map *mp, Mtbl *(*construct)(const Map *))
 Constructor from a mapping and a method.
 ~Coord ()
 Destructor.
void set (const Map *mp, Mtbl *(*construct)(const Map *))
 Semi-constructor from a mapping and a method.
void fait () const
 Computes, at each point of the grid, the value of the coordinate or mapping derivative represented by the Coord .
void del_t () const
 Logical destructor (deletes the Mtbl member *c ).

Public Attributes

const Mapmp
 Mapping on which the Coord is defined.
Mtbl *(* met_fait )(const Map *)
 Function to compute the coordinate.
Mtblc
 The coordinate values at each grid point.

Private Member Functions

 Coord (const Coord &)
 Copy constructor (private and not implemented to make Coord a non-copyable class).
void operator= (const Coord &)
 Assignement operator (private and not implemented to make Coord a non-copyable class).

Friends

ostream & operator<< (ostream &, const Coord &)
 Display.

Detailed Description

Active physical coordinates and mapping derivatives.

()

Definition at line 86 of file coord.h.


Constructor & Destructor Documentation

Coord::Coord (  ) 

Default constructor.

Definition at line 76 of file coord.C.

Coord::Coord ( const Map mp,
Mtbl *(*)(const Map *)  construct 
)

Constructor from a mapping and a method.

Parameters:
mp [input] Mapping on which the Coord is defined
construct [input] Method to construct the Coord , i.e. to initialize the Mtbl which contains the value of the coordinate or mapping derivative represented by the Coord

Definition at line 79 of file coord.C.

Coord::Coord ( const Coord  )  [private]

Copy constructor (private and not implemented to make Coord a non-copyable class).

Coord::~Coord (  ) 

Destructor.

Definition at line 88 of file coord.C.

References c.


Member Function Documentation

void Coord::del_t (  )  const

Logical destructor (deletes the Mtbl member *c ).

Definition at line 121 of file coord.C.

References c.

void Coord::fait (  )  const

Computes, at each point of the grid, the value of the coordinate or mapping derivative represented by the Coord .

The result is stored in the Mtbl member *c .

Definition at line 112 of file coord.C.

References c, met_fait, and mp.

void Coord::operator= ( const Coord  )  [private]

Assignement operator (private and not implemented to make Coord a non-copyable class).

void Coord::set ( const Map mp,
Mtbl *(*)(const Map *)  construct 
)

Semi-constructor from a mapping and a method.

This function is intended to complete the construction started by the default constructor.

Parameters:
mp [input] Mapping on which the Coord is defined
construct [input] Method to construct the Coord , i.e. to initialize the Mtbl which contains the value of the coordinate or mapping derivative represented by the Coord

Definition at line 130 of file coord.C.

References met_fait, and mp.


Friends And Related Function Documentation

ostream& operator<< ( ostream &  ,
const Coord  
) [friend]

Display.


Member Data Documentation

Mtbl* Coord::c [mutable]

The coordinate values at each grid point.

Definition at line 93 of file coord.h.

Mtbl*(* Coord::met_fait)(const Map *)

Function to compute the coordinate.

const Map* Coord::mp

Mapping on which the Coord is defined.

Definition at line 91 of file coord.h.


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

Generated on 7 Oct 2014 for LORENE by  doxygen 1.6.1