Lorene::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 90 of file coord.h.


Constructor & Destructor Documentation

Lorene::Coord::Coord (  ) 

Default constructor.

Definition at line 83 of file coord.C.

Lorene::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 86 of file coord.C.

Lorene::Coord::Coord ( const Coord  )  [private]

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

Lorene::Coord::~Coord (  ) 

Destructor.

Definition at line 95 of file coord.C.

References c.


Member Function Documentation

void Lorene::Coord::del_t (  )  const

Logical destructor (deletes the Mtbl member *c ).

Definition at line 128 of file coord.C.

References c.

void Lorene::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 119 of file coord.C.

References c, met_fait, and mp.

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

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

void Lorene::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 137 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* Lorene::Coord::c [mutable]

The coordinate values at each grid point.

Definition at line 97 of file coord.h.

Function to compute the coordinate.

Mapping on which the Coord is defined.

Definition at line 95 of file coord.h.


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

Generated on 7 Dec 2019 for LORENE by  doxygen 1.6.1