FEDEM Solver
R8.0
Source code of the dynamics solver
|
Abstract interface class for list view items. More...
#include <FFaViewItem.H>
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... | |
Static Private Member Functions | |
static bool | stringCompare (const std::string &s1, const std::string &s2) |
Binary comparison of two strings. More... | |
static int | stringCompare3w (const std::string &s1, const std::string &s2) |
Three-way lexicographical comparison of two strings. More... | |
Abstract interface class for list view items.
It also contains some static helpers for sorting view items. The description sorting is case insensitive.
|
default |
Default constructor.
|
delete |
Disable default copy constructor.
|
inlinevirtual |
Empty destructor.
|
static |
Binary comparison of description strings (implementation of less).
Returns true if i1's description precedes i2's. Case insensitive. If strings are equal, sort on id.
|
static |
Three-way lexicographical comparison of description strings.
Three-way lexicographical comparison of i1 and i2's descriptions.
|
static |
Binary comparison of user IDs (implementation of less).
Returns true if i1's id precedes i2's.
|
static |
Three-way lexicographical comparison of user IDs.
Three way comparison of i1 and i2's ids.
|
inlinevirtual |
Returns the sub-assembly ID path of this item.
|
pure virtual |
Returns the base ID of this item.
|
pure virtual |
Returns the description of this item.
|
pure virtual |
Returns the user ID of this item.
|
pure virtual |
Returns the name of this item.
|
delete |
Disable default assignment operator.
|
staticprivate |
Binary comparison of two strings.
|
staticprivate |
Three-way lexicographical comparison of two strings.