TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Roue Class Reference

Roue class used in Champ_Inc_Base. More...

#include <Roue.h>

Public Member Functions

const DoubleTab & valeurs () const
 Returns the value array of the Roue.
DoubleTab & valeurs ()
 Returns the value array of the Roue.
 Roue ()
 Default constructor. Builds a wheel with a single slot at time t=0.
 Roue (const Roue &)
 Copy constructor. Copies the time, values, and values of future wheels.
 ~Roue ()
 Destructor.
void dimensionner (int nb_val)
 Resizes (1D) the values of the Roue and its future wheels.
void dimensionner (int nb_val, int nb_comp)
 Resizes (2D) the values of the Roue and its future wheels.
int nb_cases () const
 Returns the number of slots in the Roue.
int fixer_nb_cases (int)
 Changes the number of slots in the Roue.
void ajouter_case (int n=1)
 Adds n slots to the Roue.
void supprimer_case (int n=1)
 Removes n slots from the Roue.
double temps () const
 Returns the time value of the Roue.
double changer_temps (const double t)
 Changes the time of the Roue.
const Rouefutur (int i=1) const
 Returns the Roue corresponding to the i-th future slot.
Rouefutur (int i=1)
 Returns the Roue corresponding to the i-th future slot.
const Rouepasse (int i=1) const
 Returns the Roue corresponding to the i-th past slot.
Rouepasse (int i=1)
 Returns the Roue corresponding to the i-th past slot.
Roueoperator= (const Roue &)
 Assignment operator for a Roue. Copies the time, values, number of slots, and future slot values.
void avancer (Roue_ptr &ptr)
void reculer (Roue_ptr &ptr)

Detailed Description

Roue class used in Champ_Inc_Base.

Manages the number of time values for which the field must remain in memory.

See also
Champ_Inc

Definition at line 85 of file Roue.h.

Constructor & Destructor Documentation

◆ Roue() [1/2]

Roue::Roue ( )

Default constructor. Builds a wheel with a single slot at time t=0.

Definition at line 98 of file Roue.cpp.

◆ Roue() [2/2]

Roue::Roue ( const Roue & roue)

Copy constructor. Copies the time, values, and values of future wheels.

Parameters
roueThe Roue to copy.

Definition at line 107 of file Roue.cpp.

◆ ~Roue()

Roue::~Roue ( )

Destructor.

Definition at line 121 of file Roue.cpp.

Member Function Documentation

◆ ajouter_case()

void Roue::ajouter_case ( int n = 1)

Adds n slots to the Roue.

Parameters
nNumber of slots to add.

Definition at line 254 of file Roue.cpp.

◆ avancer()

void Roue::avancer ( Roue_ptr & ptr)
inline

Definition at line 106 of file Roue.h.

◆ changer_temps()

double Roue::changer_temps ( const double t)
inline

Changes the time of the Roue.

Parameters
tthe new time value
Returns
(double) the new time value

Definition at line 180 of file Roue.h.

◆ dimensionner() [1/2]

void Roue::dimensionner ( int nb_val)

Resizes (1D) the values of the Roue and its future wheels.

Parameters
nb_valNumber of values.

Definition at line 205 of file Roue.cpp.

◆ dimensionner() [2/2]

void Roue::dimensionner ( int nb_val,
int nb_comp )

Resizes (2D) the values of the Roue and its future wheels.

Parameters
nb_valFirst dimension of the values.
nb_compSecond dimension (number of components) of the values.

Definition at line 221 of file Roue.cpp.

◆ fixer_nb_cases()

int Roue::fixer_nb_cases ( int nb_case)

Changes the number of slots in the Roue.

Parameters
nb_caseThe new number of slots.
Returns
The new number of slots.

Definition at line 237 of file Roue.cpp.

◆ futur() [1/2]

Roue & Roue::futur ( int i = 1)

Returns the Roue corresponding to the i-th future slot.

Parameters
iIndex of the future slot.
Returns
Reference to the i-th future Roue.

Definition at line 152 of file Roue.cpp.

◆ futur() [2/2]

const Roue & Roue::futur ( int i = 1) const

Returns the Roue corresponding to the i-th future slot.

Parameters
iIndex of the future slot.
Returns
Reference to the i-th future Roue.

Definition at line 136 of file Roue.cpp.

◆ nb_cases()

int Roue::nb_cases ( ) const
inline

Returns the number of slots in the Roue.

Returns
(int) the number of slots in the Roue

Definition at line 188 of file Roue.h.

◆ operator=()

Roue & Roue::operator= ( const Roue & roue)

Assignment operator for a Roue. Copies the time, values, number of slots, and future slot values.

Parameters
roueThe Roue to copy.
Returns
Reference to the modified Roue.

Definition at line 324 of file Roue.cpp.

◆ passe() [1/2]

Roue & Roue::passe ( int i = 1)

Returns the Roue corresponding to the i-th past slot.

Parameters
iIndex of the past slot.
Returns
Reference to the i-th past Roue.

Definition at line 184 of file Roue.cpp.

◆ passe() [2/2]

const Roue & Roue::passe ( int i = 1) const

Returns the Roue corresponding to the i-th past slot.

Parameters
iIndex of the past slot.
Returns
Reference to the i-th past Roue.

Definition at line 168 of file Roue.cpp.

◆ reculer()

void Roue::reculer ( Roue_ptr & ptr)
inline

Definition at line 110 of file Roue.h.

◆ supprimer_case()

void Roue::supprimer_case ( int n = 1)

Removes n slots from the Roue.

Parameters
nNumber of slots to remove.

Definition at line 278 of file Roue.cpp.

◆ temps()

double Roue::temps ( ) const
inline

Returns the time value of the Roue.

Returns
(double) the time

Definition at line 169 of file Roue.h.

◆ valeurs() [1/2]

DoubleTab & Roue::valeurs ( )
inline

Returns the value array of the Roue.

Returns
(const DoubleTab&) reference to the value array

Definition at line 159 of file Roue.h.

◆ valeurs() [2/2]

const DoubleTab & Roue::valeurs ( ) const
inline

Returns the value array of the Roue.

Returns
(const DoubleTab&) const reference to the value array

Definition at line 149 of file Roue.h.


The documentation for this class was generated from the following files:
  • /home/docs/trust-code/src/Kernel/Utilitaires/Roue.h
  • /home/docs/trust-code/src/Kernel/Utilitaires/Roue.cpp