DataNodeSetItem.h
1 //##################################################################################################
2 //
3 // Ceetron Desktop Components
4 // Component: UnstructGrid
5 //
6 // --------------------------------------------------------------------------------------------
7 // Copyright (C) 2016, Ceetron AS
8 // This is UNPUBLISHED PROPRIETARY SOURCE CODE of Ceetron AS. The contents of this file may
9 // not be disclosed to third parties, copied or duplicated in any form, in whole or in part,
10 // without the prior written permission of Ceetron AS.
11 //##################################################################################################
12 
13 #pragma once
14 
15 #include "CeeUnstructGrid/Base.h"
16 
17 namespace cee {
18 namespace ug {
19 
20 //==================================================================================================
21 //
22 //
23 //
24 //==================================================================================================
25 class CEE_UG_EXPORT DataNodeSetItem
26 {
27 public:
29  DataNodeSetItem(int geometryId, int partId, size_t nodeIndex);
30  DataNodeSetItem(const DataNodeSetItem& other);
31 
32  const DataNodeSetItem& operator=(const DataNodeSetItem& other);
33  bool operator==(const DataNodeSetItem& rhs) const;
34  bool operator!=(const DataNodeSetItem& rhs) const;
35  bool operator<(const DataNodeSetItem& other) const;
36  bool operator>(const DataNodeSetItem& other) const;
37 
38  int geometryId() const;
39  void setGeometryId(int geometryId);
40 
41  int partId() const;
42  void setPartId(int partId);
43 
44  size_t nodeIndex() const;
45  void setNodeIndex(size_t nodeIndex);
46 
47 private:
48  int m_geometryId;
49  int m_partId;
50  size_t m_nodeIndex;
51 };
52 
53 } // namespace ug
54 } // namespace cee
Namespace cee contains all functionality and structures under the Core component. ...
Definition: AppComponent.cpp:26
bool operator!=(const PtrRef< T1 > &a, const PtrRef< T2 > &b)
Returns true if the internal pointers of refs a and b are different.
Definition: PtrRef.h:58
bool operator==(const PtrRef< T1 > &a, const PtrRef< T2 > &b)
Returns true if the internal pointers of refs a and b are equal.
Definition: PtrRef.h:57
This class identifies a node within an UnstructGrid model and is used as an item in a DataNodeSet...
Definition: DataNodeSetItem.h:25