AMCAX Kernel 1.0.0.0
AMCAX::STEP::RepItem Class Reference

Class representing a representation item. More...

#include <step/repitem/RepItem.hpp>

Public Types

using RepItemUnion = std::variant< std::monostate, CartesianPointRepItem, DescriptiveRepItem, MeasureRepItem, ValueRepItem >
 

Public Member Functions

AMCAX_API RepItem ()
 Default constructor.
 
AMCAX_API RepItem (const RepItem &other)
 Copy constructor. More...
 
AMCAX_API RepItem (RepItem &&other) noexcept
 Move constructor. More...
 
AMCAX_API RepItemoperator= (const RepItem &other)
 Copy assignment operator. More...
 
AMCAX_API RepItemoperator= (RepItem &&other) noexcept
 Move assignment operator. More...
 
AMCAX_API RepItem (const RepItemUnion &item)
 Construct with a RepItem object. More...
 
AMCAX_API RepItem (const CartesianPointRepItem &item)
 Construct with a CartesianPointRepItem object. More...
 
AMCAX_API RepItem (const DescriptiveRepItem &item)
 Construct with a DescriptiveRepItem object. More...
 
AMCAX_API RepItem (const MeasureRepItem &item)
 Construct with a MeasureRepItem object. More...
 
AMCAX_API RepItem (const ValueRepItem &item)
 Construct with a ValueRepItem object. More...
 
AMCAX_API RepItemoperator= (const RepItemUnion &item)
 Assign a RepItem object. More...
 
virtual AMCAX_API ~RepItem ()
 Destructor.
 
AMCAX_API RepItemType Type () const
 Get the type of the representation item. More...
 
AMCAX_API std::string GetName () const
 
AMCAX_API RepItemSetName (const std::string &name)
 
AMCAX_API const RepItemUnion & GetItem () const
 Get the representation item. More...
 
AMCAX_API RepItemSetItem (const RepItemUnion &item)
 Get the representation item. More...
 
AMCAX_API bool operator== (const RepItem &other) const
 If the repitem same as the other repitem. More...
 
AMCAX_API bool operator!= (const RepItem &other) const
 If the repitem is not the same as the other repitem. More...
 
AMCAX_API bool operator< (const RepItem &other) const
 If the repitem is less than the other repitem. More...
 
AMCAX_API bool operator> (const RepItem &other) const
 If the repitem is greater than the other repitem. More...
 
AMCAX_API bool operator<= (const RepItem &other) const
 If the repitem is less than or equal to the other repitem. More...
 
AMCAX_API bool operator>= (const RepItem &other) const
 If the repitem is greater than or equal to the other repitem. More...
 
AMCAX_API operator const RepItemUnion & () const
 
AMCAX_API operator RepItemUnion & ()
 

Detailed Description

Class representing a representation item.

Constructor & Destructor Documentation

◆ RepItem() [1/7]

AMCAX_API AMCAX::STEP::RepItem::RepItem ( const RepItem other)

Copy constructor.

Parameters
otherThe other RepItem object

◆ RepItem() [2/7]

AMCAX_API AMCAX::STEP::RepItem::RepItem ( RepItem &&  other)
noexcept

Move constructor.

Parameters
otherThe other RepItem object

◆ RepItem() [3/7]

AMCAX_API AMCAX::STEP::RepItem::RepItem ( const RepItemUnion &  item)

Construct with a RepItem object.

Parameters
itemThe RepItemUnion object

◆ RepItem() [4/7]

AMCAX_API AMCAX::STEP::RepItem::RepItem ( const CartesianPointRepItem item)

Construct with a CartesianPointRepItem object.

Parameters
itemThe CartesianPointRepItem object

◆ RepItem() [5/7]

AMCAX_API AMCAX::STEP::RepItem::RepItem ( const DescriptiveRepItem item)

Construct with a DescriptiveRepItem object.

Parameters
itemThe DescriptiveRepItem object

◆ RepItem() [6/7]

AMCAX_API AMCAX::STEP::RepItem::RepItem ( const MeasureRepItem item)

Construct with a MeasureRepItem object.

Parameters
itemThe MeasureRepItem object

◆ RepItem() [7/7]

AMCAX_API AMCAX::STEP::RepItem::RepItem ( const ValueRepItem item)

Construct with a ValueRepItem object.

Parameters
itemThe ValueRepItem object

Member Function Documentation

◆ GetItem()

AMCAX_API const RepItemUnion & AMCAX::STEP::RepItem::GetItem ( ) const

Get the representation item.

Returns
The representation item

◆ operator!=()

AMCAX_API bool AMCAX::STEP::RepItem::operator!= ( const RepItem other) const

If the repitem is not the same as the other repitem.

Parameters
otherThe other repitem
Returns
True if the repitem is not the same as the other repitem, false otherwise

◆ operator<()

AMCAX_API bool AMCAX::STEP::RepItem::operator< ( const RepItem other) const

If the repitem is less than the other repitem.

Parameters
otherThe other repitem
Returns
True if the repitem is less than the other repitem, false otherwise

◆ operator<=()

AMCAX_API bool AMCAX::STEP::RepItem::operator<= ( const RepItem other) const

If the repitem is less than or equal to the other repitem.

Parameters
otherThe other repitem
Returns
True if the repitem is less than or equal to the other repitem, false otherwise

◆ operator=() [1/3]

AMCAX_API RepItem & AMCAX::STEP::RepItem::operator= ( const RepItem other)

Copy assignment operator.

Parameters
otherThe other RepItem object
Returns
The reference to the current RepItem object

◆ operator=() [2/3]

AMCAX_API RepItem & AMCAX::STEP::RepItem::operator= ( const RepItemUnion &  item)

Assign a RepItem object.

Parameters
itemThe RepItemUnion object
Returns
The reference to the current RepItem object

◆ operator=() [3/3]

AMCAX_API RepItem & AMCAX::STEP::RepItem::operator= ( RepItem &&  other)
noexcept

Move assignment operator.

Parameters
otherThe other RepItem object
Returns
The reference to the current RepItem object

◆ operator==()

AMCAX_API bool AMCAX::STEP::RepItem::operator== ( const RepItem other) const

If the repitem same as the other repitem.

Parameters
otherThe other repitem
Returns
True if the repitem is the same as the other repitem, false otherwise

◆ operator>()

AMCAX_API bool AMCAX::STEP::RepItem::operator> ( const RepItem other) const

If the repitem is greater than the other repitem.

Parameters
otherThe other repitem
Returns
True if the repitem is greater than the other repitem, false otherwise

◆ operator>=()

AMCAX_API bool AMCAX::STEP::RepItem::operator>= ( const RepItem other) const

If the repitem is greater than or equal to the other repitem.

Parameters
otherThe other repitem
Returns
True if the repitem is greater than or equal to the other repitem, false otherwise

◆ SetItem()

AMCAX_API RepItem & AMCAX::STEP::RepItem::SetItem ( const RepItemUnion &  item)

Get the representation item.

Parameters
itemThe representation item
Returns
The representation item

◆ Type()

AMCAX_API RepItemType AMCAX::STEP::RepItem::Type ( ) const

Get the type of the representation item.

Returns
The type of the representation item

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