LORENE
|
Vectorial bases (triads) with respect to which the tensorial components are defined. More...
#include <base_vect.h>
Public Member Functions | |
virtual | ~Base_vect () |
Destructor. More... | |
void | set_name (const char *name_i) |
Sets the basis name. More... | |
const char * | get_name () const |
Returns the basis name. More... | |
virtual int | identify () const =0 |
Returns a number to identify the sub-classe of Base_vect the object belongs to. More... | |
virtual void | sauve (FILE *) const |
Save in a file. More... | |
virtual bool | operator== (const Base_vect &) const =0 |
Comparison operator (egality) More... | |
bool | operator!= (const Base_vect &) const |
Comparison operator (difference) More... | |
virtual void | change_basis (Tenseur &) const =0 |
Change the basis in which the components of a tensor are expressed. More... | |
Static Public Member Functions | |
static Base_vect * | bvect_from_file (FILE *) |
Construction of a vectorial basis from a file (see sauve(FILE* ) ). More... | |
Protected Member Functions | |
Base_vect () | |
Standard constructor. More... | |
Base_vect (const char *name_i) | |
Standard constructor with name. More... | |
Base_vect (const Base_vect &) | |
Copy constructor. More... | |
Base_vect (FILE *) | |
Constructor from a file. More... | |
virtual ostream & | operator>> (ostream &) const =0 |
Operator >> More... | |
Protected Attributes | |
char | name [100] |
Name of the basis. More... | |
Private Member Functions | |
void | operator= (const Base_vect &) |
Assignement operator (not implemented). More... | |
Friends | |
ostream & | operator<< (ostream &, const Base_vect &) |
Display. More... | |
Vectorial bases (triads) with respect to which the tensorial components are defined.
()
Definition at line 105 of file base_vect.h.
|
protected |
|
explicitprotected |
|
protected |
|
explicitprotected |
Constructor from a file.
This constructor is protected because any Base_vect
construction from a file must be done via the function Base_vect::bvect_from_file
.
Definition at line 115 of file base_vect.C.
References name.
|
virtual |
Destructor.
Definition at line 126 of file base_vect.C.
|
static |
Construction of a vectorial basis from a file (see sauve(FILE* )
).
Definition at line 87 of file base_vect_from_file.C.
References Lorene::fread_be().
|
pure virtual |
Change the basis in which the components of a tensor are expressed.
Implemented in Lorene::Base_vect_spher, and Lorene::Base_vect_cart.
const char * Lorene::Base_vect::get_name | ( | ) | const |
|
pure virtual |
Returns a number to identify the sub-classe of Base_vect
the object belongs to.
Implemented in Lorene::Base_vect_spher, and Lorene::Base_vect_cart.
bool Lorene::Base_vect::operator!= | ( | const Base_vect & | bi | ) | const |
Comparison operator (difference)
Definition at line 177 of file base_vect.C.
|
private |
Assignement operator (not implemented).
|
pure virtual |
Comparison operator (egality)
Implemented in Lorene::Base_vect_spher, and Lorene::Base_vect_cart.
|
protectedpure virtual |
Operator >>
Implemented in Lorene::Base_vect_spher, and Lorene::Base_vect_cart.
|
virtual |
Save in a file.
Reimplemented in Lorene::Base_vect_spher, and Lorene::Base_vect_cart.
Definition at line 153 of file base_vect.C.
References Lorene::fwrite_be(), identify(), and name.
void Lorene::Base_vect::set_name | ( | const char * | name_i | ) |
|
friend |
Display.
Definition at line 165 of file base_vect.C.
|
protected |
Name of the basis.
Definition at line 110 of file base_vect.h.