KADATH
|
Class for storing a list of tensorial components. More...
#include <list_comp.hpp>
Public Member Functions | |
List_comp (int nc, int val) | |
Standard constructor. More... | |
List_comp (const List_comp &) | |
Constructor by copy. More... | |
~List_comp () | |
Destructor. More... | |
Array< int > * | set (int i) |
Read/write of one particular component. More... | |
Array< int > * | operator() (int i) const |
Read/write of one particular component. More... | |
int | get_ncomp () const |
Returns the number of components. More... | |
Array< int > ** | get_pcomp () const |
Returns a pointer of the liste. More... | |
Protected Attributes | |
int | ncomp |
Number of stored components. More... | |
int | valence |
Number of indices for each component. More... | |
Array< int > ** | pcomp |
Array of pointers on each componenent. More... | |
Class for storing a list of tensorial components.
It simply consists of a list of integer Arrays. It is intended to be used when passing equations to a System_of_eqs
Definition at line 33 of file list_comp.hpp.
Kadath::List_comp::List_comp | ( | int | nc, |
int | val | ||
) |
Standard constructor.
nc | [input] number of components. |
val | [input] valence of the components. |
Definition at line 28 of file list_comp.cpp.
Kadath::List_comp::List_comp | ( | const List_comp & | so | ) |
Kadath::List_comp::~List_comp | ( | ) |
|
inline |
|
inline |
Array< int > * Kadath::List_comp::operator() | ( | int | i | ) | const |
Read/write of one particular component.
i | [input] which component. |
Definition at line 57 of file list_comp.cpp.
Array< int > * Kadath::List_comp::set | ( | int | i | ) |
Read/write of one particular component.
i | [input] which component. |
Definition at line 49 of file list_comp.cpp.
|
protected |
Number of stored components.
Definition at line 35 of file list_comp.hpp.
|
protected |
Array of pointers on each componenent.
Definition at line 37 of file list_comp.hpp.
|
protected |
Number of indices for each component.
Definition at line 36 of file list_comp.hpp.