|
FEDEM Model Database
R8.0
Source code of the FEDEM model database
|
Class for grouping of elements. More...
#include <FFlGroup.H>


Public Member Functions | |
| FFlGroup (int id, const std::string &groupName="New group") | |
| virtual | ~FFlGroup () |
| bool | resolveElemRefs (std::vector< FFlElementBase * > &possibleReferences, bool suppressErrmsg=false) |
| void | addElement (FFlElementBase *elementRef, bool sortOnInsert=false) |
| void | addElement (int elementID, bool sortOnInsert=false) |
| void | swapElement (int oldElmID, const std::vector< int > &newElmID) |
| bool | removeElement (int elementID) |
| bool | removeElement (FFlElementBase *element) |
| bool | hasElement (int elementID) const |
| void | sortElements (bool removeDuplicates=false) |
| size_t | size () const |
| GroupElemVec::const_iterator | begin () const |
| GroupElemVec::const_iterator | end () const |
| FFlGroup * | clone () const |
| void | calculateChecksum (FFaCheckSum *cs, int csMask) const |
| FFL_TYPE_INFO (FFlGroup) | |
Public Member Functions inherited from FFlNamedPartBase | |
| const std::string & | getName () const |
| void | setName (const std::string &groupName) |
| void | addVisibilityStatus (int val) |
| int | getVisibilityStatus () const |
| void | resetVisibilityStatus () |
Public Member Functions inherited from FFlPartBase | |
| virtual | ~FFlPartBase ()=default |
| virtual FFlTypeInfoSpec * | getTypeInfoSpec () const =0 |
| int | getID () const |
| void | setID (int newID) |
| unsigned char | getRefCount () const |
| unsigned char | ref () |
| bool | unref () |
Static Public Member Functions | |
| static void | init () |
Protected Member Functions | |
| bool | remove (const GroupElemRef &elmRef) |
Protected Member Functions inherited from FFlNamedPartBase | |
| FFlNamedPartBase (int ID) | |
| FFlNamedPartBase (const FFlNamedPartBase &obj) | |
| FFlNamedPartBase & | operator= (const FFlNamedPartBase &)=delete |
| void | checksum (FFaCheckSum *cs, int csMask) const |
Protected Member Functions inherited from FFlPartBase | |
| FFlPartBase (int ID) | |
| FFlPartBase (const FFlPartBase &)=default | |
| FFlPartBase & | operator= (const FFlPartBase &)=delete |
| void | checksum (FFaCheckSum *cs, int csMask=0) const |
Private Attributes | |
| GroupElemVec | myElements |
| bool | iAmSorted |
Additional Inherited Members | |
Public Types inherited from FFlNamedPartBase | |
| enum | { FFL_USED = 0x0001 , FFL_USED_MASK = 0x000f , FFL_HAS_VIS_ELM = 0x0010 , FFL_HAS_VIS_ELM_MASK = 0x00f0 , FFL_HAS_HIDDEN_ELM = 0x0100 , FFL_HAS_HIDDEN_ELM_MASK = 0x0f00 } |
Class for grouping of elements.
| FFlGroup::FFlGroup | ( | int | id, |
| const std::string & | groupName = "New group" |
||
| ) |
Constructor. Creates an empty group width id id and name groupName
|
inlinevirtual |
| void FFlGroup::addElement | ( | FFlElementBase * | anElement, |
| bool | sortOnInsert = false |
||
| ) |
Adds an element to the group.
| void FFlGroup::addElement | ( | int | anElementID, |
| bool | sortOnInsert = false |
||
| ) |
Adds an element to the group.
|
inline |
| void FFlGroup::calculateChecksum | ( | FFaCheckSum * | cs, |
| int | csMask | ||
| ) | const |
|
inline |
|
inline |
| FFlGroup::FFL_TYPE_INFO | ( | FFlGroup | ) |
| bool FFlGroup::hasElement | ( | int | elementID | ) | const |
|
static |
|
protected |
Removes an element from the group.
|
inline |
|
inline |
| bool FFlGroup::resolveElemRefs | ( | std::vector< FFlElementBase * > & | possibleReferences, |
| bool | suppressErrmsg = false |
||
| ) |
Resolves the element references. Uses the possibleReferences range for resolving.
|
inline |
| void FFlGroup::sortElements | ( | bool | removeDuplicates = false | ) |
| void FFlGroup::swapElement | ( | int | oldElmID, |
| const std::vector< int > & | newElmID | ||
| ) |
Replaces one element by a list of new elements.
|
private |
|
private |