SideList Class Reference
Class to construct a list of sides having some common properties. More...
Public Member Functions | |
SideList (Mesh &ms) | |
Constructor using a Mesh instance. | |
~SideList () | |
Destructor. | |
void | selectCode (int code, int dof=1) |
Select sides having a given code for a given degree of freedom. More... | |
void | unselectCode (int code, int dof=1) |
Unselect sides having a given code for a given degree of freedom. More... | |
size_t | getNbSides () const |
Return number of selected sides. | |
void | top () |
Reset list of sides at its top position (Non constant version) | |
void | top () const |
Reset list of sides at its top position (Constant version) | |
Side * | get () |
Return pointer to current side and move to next one (Non constant version) | |
Side * | get () const |
Return pointer to current side and move to next one (Constant version) | |
Detailed Description
Class to construct a list of sides having some common properties.
This class enables choosing multiple selection criteria by using function select...
However, the intersection of these properties must be empty.
Member Function Documentation
void selectCode | ( | int | code, |
int | dof = 1 |
||
) |
Select sides having a given code for a given degree of freedom.
- Parameters
-
[in] code Code that sides share [in] dof Degree of Freedom label [Default: 1
]
void unselectCode | ( | int | code, |
int | dof = 1 |
||
) |
Unselect sides having a given code for a given degree of freedom.
- Parameters
-
[in] code Code of sides to exclude [in] dof Degree of Freedom label [Default: 1
]