LORENE

Active physical coordinates and mapping derivatives. More...

#include <coord.h>

Public Member Functions

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

Public Attributes

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

Private Member Functions

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

Friends

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

Detailed Description

Active physical coordinates and mapping derivatives.

()

Definition at line 90 of file coord.h.

Constructor & Destructor Documentation

◆ Coord() [1/3]

Lorene::Coord::Coord ( )

Default constructor.

Definition at line 83 of file coord.C.

◆ Coord() [2/3]

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.

◆ Coord() [3/3]

Lorene::Coord::Coord ( const Coord )
private

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

◆ ~Coord()

Lorene::Coord::~Coord ( )

Destructor.

Definition at line 95 of file coord.C.

References c.

Member Function Documentation

◆ del_t()

void Lorene::Coord::del_t ( ) const

Logical destructor (deletes the Mtbl member *c ).

Definition at line 128 of file coord.C.

References c.

◆ fait()

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.

◆ operator=()

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

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

◆ set()

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

◆ operator<<

ostream& operator<< ( ostream &  o,
const Coord ci 
)
friend

Display.

Definition at line 104 of file coord.C.

Member Data Documentation

◆ c

Mtbl* Lorene::Coord::c
mutable

The coordinate values at each grid point.

Definition at line 97 of file coord.h.

◆ met_fait

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

Function to compute the coordinate.

Definition at line 96 of file coord.h.

◆ mp

const Map* Lorene::Coord::mp

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: