MoReFEM
|
The class in charge of managing Comp23 behaviour. More...
#include <Comp23.hpp>
Public Types | |
using | const_shared_ptr = std::shared_ptr<const ComponentManager> |
Shared smart pointer. | |
Public Member Functions | |
Comp23 () | |
Constructor. | |
bool | IsActive (std::size_t i) const |
Advanced::ComponentNS::index_type | Nactive () const |
Returns the number of active components. | |
std::string | AsString () const |
Return as a string the components available, separated by a comma (e.g. "x, y"). | |
Advanced::ComponentNS::index_type | ActiveComponent (Advanced::ComponentNS::index_type i) const |
Return the position of the i -th active component in the bitset (in C numbering). | |
Static Public Member Functions | |
static const std::string & | Name () |
Return the name of the component. | |
static const std::bitset< 3 > & | IsActivated () |
Bitset which specifies which component is active or not. | |
Private Attributes | |
std::bitset< 3 > | is_activated_ |
Which component are activated. | |
The class in charge of managing Comp23 behaviour.
|
static |
Return the name of the component.
This name will for instance what will be expected in the input data file to set the properties of the displacement.
|
static |
Bitset which specifies which component is active or not.
|
inherited |
Returns whether the i -th component is active.
[in] | i | Index of the component: 0 for x, 1 for y, 2 for z. |
|
inherited |
Return the position of the i -th active component in the bitset (in C numbering).
For instance, if bitset = 101 (and remember bitsets are read from the right to the left!):
[in] | i | Index of the active component to consider; should be in [0, Nactive_component[. |
|
privateinherited |
Which component are activated.
BEWARE: a bitset is read from the right to the left... So "100" means z component is active, not x one.