FEDEM Solver  R8.0
Source code of the dynamics solver
Public Member Functions | Static Public Member Functions | List of all members
FFaViewItem Class Referenceabstract

Abstract interface class for list view items. More...

#include <FFaViewItem.H>

Inheritance diagram for FFaViewItem:
Inheritance graph
[legend]

Public Member Functions

 FFaViewItem ()=default
 Default constructor. More...
 
 FFaViewItem (const FFaViewItem &)=delete
 Disable default copy constructor. More...
 
virtual ~FFaViewItem ()
 Empty destructor. More...
 
FFaViewItem & operator= (const FFaViewItem &)=delete
 Disable default assignment operator. More...
 
virtual char const * getItemName () const =0
 Returns the name of this item. More...
 
virtual std::string getItemDescr () const =0
 Returns the description of this item. More...
 
virtual int getItemID () const =0
 Returns the user ID of this item. More...
 
virtual int getItemBaseID () const =0
 Returns the base ID of this item. More...
 
virtual void getItemAssemblyPath (std::vector< int > &) const
 Returns the sub-assembly ID path of this item. More...
 

Static Public Member Functions

static bool compareDescr (FFaViewItem *i1, FFaViewItem *i2)
 Binary comparison of description strings (implementation of less). More...
 
static bool compareID (FFaViewItem *i1, FFaViewItem *i2)
 Binary comparison of user IDs (implementation of less). More...
 
static int compareDescr3w (FFaViewItem *i1, FFaViewItem *i2)
 Three-way lexicographical comparison of description strings. More...
 
static int compareID3w (FFaViewItem *i1, FFaViewItem *i2)
 Three-way lexicographical comparison of user IDs. More...
 

Detailed Description

Abstract interface class for list view items.

It also contains some static helpers for sorting view items. The description sorting is case insensitive.

Constructor & Destructor Documentation

◆ FFaViewItem() [1/2]

FFaViewItem::FFaViewItem ( )
default

Default constructor.

◆ FFaViewItem() [2/2]

FFaViewItem::FFaViewItem ( const FFaViewItem &  )
delete

Disable default copy constructor.

◆ ~FFaViewItem()

virtual FFaViewItem::~FFaViewItem ( )
inlinevirtual

Empty destructor.

Member Function Documentation

◆ compareDescr()

bool FFaViewItem::compareDescr ( FFaViewItem *  i1,
FFaViewItem *  i2 
)
static

Binary comparison of description strings (implementation of less).

Returns true if the description *i1 precedes that of *i2. Case insensitive comparison. If the strings are equal, the ID of the two objects are compared instead. If either i1 or i2 is NULL, return as if the NULL-pointer is first.

◆ compareDescr3w()

int FFaViewItem::compareDescr3w ( FFaViewItem *  i1,
FFaViewItem *  i2 
)
static

Three-way lexicographical comparison of description strings.

If either i1 or i2 is NULL, return as if the NULL-pointer is first.

◆ compareID()

bool FFaViewItem::compareID ( FFaViewItem *  i1,
FFaViewItem *  i2 
)
static

Binary comparison of user IDs (implementation of less).

Returns true if the ID of i1 precedes that of i2. If either i1 or i2 is NULL, return as if the NULL-pointer is first.

◆ compareID3w()

int FFaViewItem::compareID3w ( FFaViewItem *  i1,
FFaViewItem *  i2 
)
static

Three-way lexicographical comparison of user IDs.

If either i1 or i2 is NULL, return as if the NULL-pointer is first.

◆ getItemAssemblyPath()

virtual void FFaViewItem::getItemAssemblyPath ( std::vector< int > &  ) const
inlinevirtual

Returns the sub-assembly ID path of this item.

◆ getItemBaseID()

virtual int FFaViewItem::getItemBaseID ( ) const
pure virtual

Returns the base ID of this item.

◆ getItemDescr()

virtual std::string FFaViewItem::getItemDescr ( ) const
pure virtual

Returns the description of this item.

◆ getItemID()

virtual int FFaViewItem::getItemID ( ) const
pure virtual

Returns the user ID of this item.

◆ getItemName()

virtual char const* FFaViewItem::getItemName ( ) const
pure virtual

Returns the name of this item.

◆ operator=()

FFaViewItem& FFaViewItem::operator= ( const FFaViewItem &  )
delete

Disable default assignment operator.


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