FEDEM Model Database  R8.0
Source code of the FEDEM model database
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | List of all members
FFlGroup Class Reference

Class for grouping of elements. More...

#include <FFlGroup.H>

Inheritance diagram for FFlGroup:
Inheritance graph
[legend]
Collaboration diagram for FFlGroup:
Collaboration graph
[legend]

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
}
 

Detailed Description

Class for grouping of elements.

Constructor & Destructor Documentation

◆ FFlGroup()

FFlGroup::FFlGroup ( int  id,
const std::string &  groupName = "New group" 
)

Constructor. Creates an empty group width id id and name groupName

◆ ~FFlGroup()

virtual FFlGroup::~FFlGroup ( )
inlinevirtual

Member Function Documentation

◆ addElement() [1/2]

void FFlGroup::addElement ( FFlElementBase *  anElement,
bool  sortOnInsert = false 
)

Adds an element to the group.

◆ addElement() [2/2]

void FFlGroup::addElement ( int  anElementID,
bool  sortOnInsert = false 
)

Adds an element to the group.

◆ begin()

GroupElemVec::const_iterator FFlGroup::begin ( ) const
inline

◆ calculateChecksum()

void FFlGroup::calculateChecksum ( FFaCheckSum *  cs,
int  csMask 
) const

◆ clone()

FFlGroup* FFlGroup::clone ( ) const
inline

◆ end()

GroupElemVec::const_iterator FFlGroup::end ( ) const
inline

◆ FFL_TYPE_INFO()

FFlGroup::FFL_TYPE_INFO ( FFlGroup  )

◆ hasElement()

bool FFlGroup::hasElement ( int  elementID) const

◆ init()

void FFlGroup::init ( )
static

◆ remove()

bool FFlGroup::remove ( const GroupElemRef &  elmRef)
protected

Removes an element from the group.

◆ removeElement() [1/2]

bool FFlGroup::removeElement ( FFlElementBase *  element)
inline

◆ removeElement() [2/2]

bool FFlGroup::removeElement ( int  elementID)
inline

◆ resolveElemRefs()

bool FFlGroup::resolveElemRefs ( std::vector< FFlElementBase * > &  possibleReferences,
bool  suppressErrmsg = false 
)

Resolves the element references. Uses the possibleReferences range for resolving.

◆ size()

size_t FFlGroup::size ( ) const
inline

◆ sortElements()

void FFlGroup::sortElements ( bool  removeDuplicates = false)

◆ swapElement()

void FFlGroup::swapElement ( int  oldElmID,
const std::vector< int > &  newElmID 
)

Replaces one element by a list of new elements.

Member Data Documentation

◆ iAmSorted

bool FFlGroup::iAmSorted
private

◆ myElements

GroupElemVec FFlGroup::myElements
private

The documentation for this class was generated from the following files: