FEDEM Solver  R8.0
Source code of the dynamics solver
Public Member Functions | Static Public Member Functions | Static Private 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...
 
FFaViewItemoperator= (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...
 

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 i1's description precedes i2's. Case insensitive. If strings are equal, sort on id.

◆ compareDescr3w()

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

Three-way lexicographical comparison of description strings.

Three-way lexicographical comparison of i1 and i2's descriptions.

◆ compareID()

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

Binary comparison of user IDs (implementation of less).

Returns true if i1's id precedes i2's.

◆ compareID3w()

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

Three-way lexicographical comparison of user IDs.

Three way comparison of i1 and i2's ids.

◆ 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.

◆ stringCompare()

bool FFaViewItem::stringCompare ( const std::string &  s1,
const std::string &  s2 
)
staticprivate

Binary comparison of two strings.

◆ stringCompare3w()

int FFaViewItem::stringCompare3w ( const std::string &  s1,
const std::string &  s2 
)
staticprivate

Three-way lexicographical comparison of two strings.


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