Gyoto
Public Member Functions | Protected Attributes | Private Types | Private Member Functions | Private Attributes | Friends
Gyoto::WorldlineIntegState Class Reference

Current state of a geodesic integration. More...

#include <GyotoWorldlineIntegState.h>

Inheritance diagram for Gyoto::WorldlineIntegState:
Gyoto::SmartPointee

List of all members.

Public Member Functions

 WorldlineIntegState (SmartPointer< Metric::Generic > gg, const double *coord, const double delta)
virtual int nextStep (Gyoto::Worldline *line, double *coord, double delta=0.)
double get_delta ()
void set_delta (double delta)
void setCoord (double coord[8])

Protected Attributes

double coord_ [8]
double coordnew_ [8]
double norm_
double normref_
double delta_
double h1_
double deltainit_

Private Types

typedef Gyoto::SmartPointer
< Gyoto::SmartPointee
Subcontractor_t (Gyoto::FactoryMessenger *)
 A subcontractor builds an object upon order from the Factory.

Private Member Functions

void incRefCount ()
 Increment the reference counter. Warning: Don't mess with the counter.
int decRefCount ()
 Decrement the reference counter and return current value. Warning: Don't mess with the counter.
int getRefCount ()
 Get the current number of references.

Private Attributes

SmartPointer< Metric::Genericgg_

Friends

class SmartPointer< WorldlineIntegState >

Detailed Description

Current state of a geodesic integration.


Member Typedef Documentation

typedef Gyoto::SmartPointer<Gyoto::SmartPointee> Gyoto::SmartPointee::Subcontractor_t(Gyoto::FactoryMessenger *)
inherited

A subcontractor builds an object upon order from the Factory.

Various classes need to provide a subcontractor to be able to instanciate themselves upon order from the Factory. A subcontractor is a function (often a static member function) which accepts a pointer to a FactoryMessenger as unique parameter, communicates with the Factory using this messenger to read an XML description of the object to build, and returns this objet. SmartPointee::Subcontractor_t* is just generic enough a typedef to cast to and from other subcontractor types: Astrobj::Subcontractor_t, Metric::Subcontractor_t, Spectrum::Subcontractor_t. A subcontractor needs to be registered using the relevant Register() function: Astrobj::Register(), Metric::Register(), Spectrum::Register().


Member Function Documentation

virtual int Gyoto::WorldlineIntegState::nextStep ( Gyoto::Worldline line,
double *  coord,
double  delta = 0. 
)
virtual
Parameters:
coord[8]on input: old position-velocity, on output: new position-velocity;
deltaintegrating step in proper time. Set to 0 to use default step, presumably adaptive.

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