# cee::ug::DataNodeSetItem

class `DataNodeSetItem`

  This class identifies a node within an UnstructGrid model and is used as an item in a DataNodeSet.

  A node is uniquely identified within a UnstructGrid DataSource by three numbers:

  - Geometry id: id of the corresponding DataGeometry as returned by DataGeometry::id()
  - Part id: id of the corresponding DataPart of the DataGeometry as returned by DataPart::partId()
  - Node index: index of the node in the DataNodes of the DataPart

  See also

  DataNodeSet

  Public Functions

  `DataNodeSetItem`()

    Constructs an empty item.

  `DataNodeSetItem`(int geometryId, int partId, size_t nodeIndex)

    Constructs a set item with the given data.

  `DataNodeSetItem`(const DataNodeSetItem &other)

    Constructs an item as a copy of other.

  const DataNodeSetItem &`operator=`(const DataNodeSetItem &other)

    Assigns other to this item and returns a reference to this item.

  bool `operator==`(const DataNodeSetItem &rhs) const

    Returns true if this set item is equal to the given rhs item.

  bool `operator!=`(const DataNodeSetItem &rhs) const

    Returns true if this set item is not equal to the given rhs item.

  bool `operator<`(const DataNodeSetItem &other) const

    Returns true if this item is less than the passed item other.

  bool `operator>`(const DataNodeSetItem &other) const

    Returns true if this item is larger than the passed item other.

  int `geometryId`() const

    Returns the geometry id of this set item.

    See also

    DataGeometry::id

  void `setGeometryId`(int geometryId)

    Sets the geometry id of this set item.

    This id must correspond to the DataGeometry::id() of the geometry of the node

    See also

    DataGeometry::id

  int `partId`() const

    Returns the part id of this set item.

    See also

    DataPart::partId()

  void `setPartId`(int partId)

    Sets the part id of this set item.

    This id must correspond to the DataPart::partId() of the part of the node

    See also

    DataPart::partId()

  size_t `nodeIndex`() const

    Returns the node index or the set item.

  void `setNodeIndex`(size_t nodeIndex)

    Sets the node index of the set item.

    The index must correspond to the index of the node in the DataNodes object identified by the geometry and part id.

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your multilingual generative AI assistant for documentation. Ask me anything about HOOPS Envision for Desktop in your own language, or choose a sample question below to start a conversation:

What is HOOPS Envision for Desktop?
What are the latest release notes for HOOPS Envision for Desktop?
How do I start evaluating HOOPS Envision for Desktop?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...