Implementation of an algebraic space. More...
#include <core/alien/data/Space.h>
Classes | |
| class | Internal |
| Internal structure of Space object. More... | |
Public Member Functions | |
| Space () | |
| Constructor. | |
| Space (Arccore::Integer size) | |
| Anonymous constructor. The space have no name. | |
| Space (Arccore::Integer size, Arccore::String name) | |
| Full constructor. | |
| Space (const Space &s) | |
| Copy constructor. | |
| Space (Space &&s) | |
| Rvalue constructor. | |
| ~Space () | |
| Free resources. | |
| Space & | operator= (const Space &src) |
| Equal operator. | |
| Space & | operator= (Space &&src) |
| Rvalue equal operator. | |
| bool | operator== (const ISpace &space) const |
| Comparison operator. | |
| bool | operator!= (const ISpace &space) const |
| Comparison operator. | |
| Arccore::Integer | size () const |
| Get space size. | |
| const Arccore::String & | name () const |
| Get space name. | |
| void | setField (Arccore::String label, const Arccore::UniqueArray< Arccore::Integer > &indices) |
| Set label on matrix entries. | |
| Arccore::Integer | nbField () const |
| Get the number of fields. | |
| Arccore::String | fieldLabel (Arccore::Integer i) const |
| Get the label of the i-th field. | |
| const Arccore::UniqueArray< Arccore::Integer > & | field (Arccore::Integer i) const |
| Get indices associated to the i-th field \para[in] i The requested field. | |
| const Arccore::UniqueArray< Arccore::Integer > & | field (Arccore::String label) const |
| Get the indices associated to a label. | |
| std::shared_ptr< ISpace > | clone () const |
| Clone this object. | |
| Public Member Functions inherited from Alien::ISpace | |
| virtual | ~ISpace () |
| Free resources. | |
Additional Inherited Members | |
| Protected Member Functions inherited from Alien::ISpace | |
| ISpace () | |
| Constructor. | |
Implementation of an algebraic space.
An algebraic space is composed of a name and size, on which can be added some labels over some elements on this space. The purpose is to be able to differentiate different spaces which have the same size, although operations between elements on those spaces should not be permitted. It is close to the algebraic definition of a space
| Alien::Space::Space | ( | ) |
Constructor.
Definition at line 149 of file Space.cc.
References Space().
Referenced by operator=(), operator=(), Space(), Space(), Space(), and Space().
| Alien::Space::Space | ( | Arccore::Integer | size | ) |
| Alien::Space::Space | ( | Arccore::Integer | size, |
| Arccore::String | name ) |
Full constructor.
References Alien::ISpace::ISpace(), name(), operator!=(), operator=(), operator==(), size(), and Space().
| Alien::Space::Space | ( | const Space & | s | ) |
Copy constructor.
| [in] | s | The space to copy |
Definition at line 170 of file Space.cc.
References Alien::ISpace::ISpace(), and Space().
| Alien::Space::Space | ( | Space && | s | ) |
|
virtual |
Clone this object.
Implements Alien::ISpace.
Definition at line 289 of file Space.cc.
Referenced by field().
|
virtual |
Get indices associated to the i-th field \para[in] i The requested field.
Implements Alien::ISpace.
|
virtual |
Get the indices associated to a label.
| [in] | label | The requested label |
Implements Alien::ISpace.
References clone().
|
virtual |
Get the label of the i-th field.
| [in] | i | The requested field |
Implements Alien::ISpace.
|
virtual |
Get space name.
Implements Alien::ISpace.
Definition at line 236 of file Space.cc.
Referenced by operator==(), and Space().
|
virtual |
Get the number of fields.
Implements Alien::ISpace.
Definition at line 253 of file Space.cc.
Referenced by setField().
|
virtual |
Comparison operator.
| [in] | Space related functions. | The space to compare to |
Implements Alien::ISpace.
Definition at line 227 of file Space.cc.
References Alien::ISpace::ISpace(), and operator==().
Referenced by Space().
|
virtual |
Comparison operator.
| [in] | Space related functions. | The space to compare to |
Implements Alien::ISpace.
Definition at line 219 of file Space.cc.
References Alien::ISpace::ISpace(), Alien::ISpace::name(), name(), Alien::ISpace::size(), and size().
Referenced by operator!=(), and Space().
|
virtual |
Set label on matrix entries.
| [in] | label | The name of the label |
| [in] | indices | The indices to which label is set |
Implements Alien::ISpace.
References nbField().
|
virtual |
Get space size.
Implements Alien::ISpace.
Definition at line 211 of file Space.cc.
Referenced by operator==(), Space(), and Space().