Nektar++
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Public Member Functions | Protected Attributes | Private Member Functions | Friends | List of all members
Nektar::LocalRegions::IndexMapKey Class Reference

#include <IndexMapKey.h>

Classes

struct  opLess
 

Public Member Functions

 IndexMapKey (const IndexMapType indexmapType, const LibUtilities::ShapeType shapeType, const unsigned short p, const unsigned short q, const unsigned short r, const unsigned short entityID=0, const StdRegions::Orientation orientation=StdRegions::eNoOrientation)
 
 IndexMapKey (const IndexMapKey &rhs, const IndexMapType indexmapType)
 
 IndexMapKey (const IndexMapKey &rhs)
 
virtual ~IndexMapKey ()
 
IndexMapType GetIndexMapType () const
 
StdRegions::Orientation GetIndexOrientation () const
 
int GetIndexEntity () const
 

Protected Attributes

IndexMapType m_indexMapType
 
LibUtilities::ShapeType m_shapeType
 
unsigned short m_p
 
unsigned short m_q
 
unsigned short m_r
 
unsigned short m_entityID
 
StdRegions::Orientation m_orientation
 

Private Member Functions

 IndexMapKey ()
 

Friends

bool operator< (const IndexMapKey &lhs, const IndexMapKey &rhs)
 
bool operator== (const IndexMapKey &lhs, const IndexMapKey &rhs)
 
bool opLess::operator() (const IndexMapKey &lhs, const IndexMapKey &rhs) const
 

Detailed Description

Definition at line 57 of file IndexMapKey.h.

Constructor & Destructor Documentation

◆ IndexMapKey() [1/4]

Nektar::LocalRegions::IndexMapKey::IndexMapKey ( const IndexMapType  indexmapType,
const LibUtilities::ShapeType  shapeType,
const unsigned short  p,
const unsigned short  q,
const unsigned short  r,
const unsigned short  entityID = 0,
const StdRegions::Orientation  orientation = StdRegions::eNoOrientation 
)

Definition at line 42 of file IndexMapKey.cpp.

47 : m_indexMapType(indexmapType), m_shapeType(shapeType), m_p(p), m_q(q),
48 m_r(r), m_entityID(entityID), m_orientation(orientation)
49{
50}
LibUtilities::ShapeType m_shapeType
Definition: IndexMapKey.h:109
StdRegions::Orientation m_orientation
Definition: IndexMapKey.h:117
std::vector< double > q(NPUPPER *NPUPPER)

◆ IndexMapKey() [2/4]

Nektar::LocalRegions::IndexMapKey::IndexMapKey ( const IndexMapKey rhs,
const IndexMapType  indexmapType 
)

Definition at line 52 of file IndexMapKey.cpp.

54 : m_indexMapType(indexmapType), m_shapeType(rhs.m_shapeType), m_p(rhs.m_p),
55 m_q(rhs.m_q), m_r(rhs.m_r), m_entityID(rhs.m_entityID),
56 m_orientation(rhs.m_orientation)
57{
58}

◆ IndexMapKey() [3/4]

Nektar::LocalRegions::IndexMapKey::IndexMapKey ( const IndexMapKey rhs)

Definition at line 60 of file IndexMapKey.cpp.

61 : m_indexMapType(rhs.m_indexMapType), m_shapeType(rhs.m_shapeType),
62 m_p(rhs.m_p), m_q(rhs.m_q), m_r(rhs.m_r), m_entityID(rhs.m_entityID),
63 m_orientation(rhs.m_orientation)
64{
65}

◆ ~IndexMapKey()

virtual Nektar::LocalRegions::IndexMapKey::~IndexMapKey ( )
inlinevirtual

Definition at line 72 of file IndexMapKey.h.

73 {
74 }

◆ IndexMapKey() [4/4]

Nektar::LocalRegions::IndexMapKey::IndexMapKey ( )
private

Member Function Documentation

◆ GetIndexEntity()

int Nektar::LocalRegions::IndexMapKey::GetIndexEntity ( ) const
inline

Definition at line 101 of file IndexMapKey.h.

102 {
103 return m_entityID;
104 }

References m_entityID.

Referenced by Nektar::LocalRegions::Expansion::CreateIndexMap().

◆ GetIndexMapType()

IndexMapType Nektar::LocalRegions::IndexMapKey::GetIndexMapType ( ) const
inline

Definition at line 91 of file IndexMapKey.h.

92 {
93 return m_indexMapType;
94 }

References m_indexMapType.

Referenced by Nektar::LocalRegions::Expansion::CreateIndexMap(), and Nektar::LocalRegions::operator<<().

◆ GetIndexOrientation()

StdRegions::Orientation Nektar::LocalRegions::IndexMapKey::GetIndexOrientation ( ) const
inline

Definition at line 96 of file IndexMapKey.h.

97 {
98 return m_orientation;
99 }

References m_orientation.

Referenced by Nektar::LocalRegions::Expansion::CreateIndexMap().

Friends And Related Function Documentation

◆ operator<

bool operator< ( const IndexMapKey lhs,
const IndexMapKey rhs 
)
friend

Definition at line 73 of file IndexMapKey.cpp.

74{
75 if (lhs.m_indexMapType < rhs.m_indexMapType)
76 {
77 return true;
78 }
79
80 if (lhs.m_indexMapType > rhs.m_indexMapType)
81 {
82 return false;
83 }
84
85 if (lhs.m_shapeType < rhs.m_shapeType)
86 {
87 return true;
88 }
89
90 if (lhs.m_shapeType > rhs.m_shapeType)
91 {
92 return false;
93 }
94
95 if (lhs.m_p < rhs.m_p)
96 {
97 return true;
98 }
99
100 if (lhs.m_p > rhs.m_p)
101 {
102 return false;
103 }
104
105 if (lhs.m_q < rhs.m_q)
106 {
107 return true;
108 }
109
110 if (lhs.m_q > rhs.m_q)
111 {
112 return false;
113 }
114
115 if (lhs.m_r < rhs.m_r)
116 {
117 return true;
118 }
119
120 if (lhs.m_r > rhs.m_r)
121 {
122 return false;
123 }
124
125 if (lhs.m_entityID < rhs.m_entityID)
126 {
127 return true;
128 }
129 if (lhs.m_entityID > rhs.m_entityID)
130 {
131 return false;
132 }
133
134 if (lhs.m_orientation < rhs.m_orientation)
135 {
136 return true;
137 }
138 if (lhs.m_orientation > rhs.m_orientation)
139 {
140 return false;
141 }
142
143 return false;
144}

◆ operator==

bool operator== ( const IndexMapKey lhs,
const IndexMapKey rhs 
)
friend

Definition at line 146 of file IndexMapKey.cpp.

147{
148 if (lhs.m_indexMapType != rhs.m_indexMapType)
149 {
150 return false;
151 }
152
153 if (lhs.m_shapeType != rhs.m_shapeType)
154 {
155 return false;
156 }
157
158 if (lhs.m_p != rhs.m_p)
159 {
160 return false;
161 }
162
163 if (lhs.m_q != rhs.m_q)
164 {
165 return false;
166 }
167
168 if (lhs.m_r != rhs.m_r)
169 {
170 return false;
171 }
172
173 if (lhs.m_entityID != rhs.m_entityID)
174 {
175 return false;
176 }
177
178 if (lhs.m_orientation != rhs.m_orientation)
179 {
180 return false;
181 }
182
183 return true;
184}

◆ opLess::operator()

bool opLess::operator() ( const IndexMapKey lhs,
const IndexMapKey rhs 
) const
friend

Member Data Documentation

◆ m_entityID

unsigned short Nektar::LocalRegions::IndexMapKey::m_entityID
protected

Definition at line 115 of file IndexMapKey.h.

Referenced by GetIndexEntity().

◆ m_indexMapType

IndexMapType Nektar::LocalRegions::IndexMapKey::m_indexMapType
protected

◆ m_orientation

StdRegions::Orientation Nektar::LocalRegions::IndexMapKey::m_orientation
protected

Definition at line 117 of file IndexMapKey.h.

Referenced by GetIndexOrientation().

◆ m_p

unsigned short Nektar::LocalRegions::IndexMapKey::m_p
protected

Definition at line 111 of file IndexMapKey.h.

◆ m_q

unsigned short Nektar::LocalRegions::IndexMapKey::m_q
protected

Definition at line 112 of file IndexMapKey.h.

◆ m_r

unsigned short Nektar::LocalRegions::IndexMapKey::m_r
protected

Definition at line 113 of file IndexMapKey.h.

◆ m_shapeType

LibUtilities::ShapeType Nektar::LocalRegions::IndexMapKey::m_shapeType
protected

Definition at line 109 of file IndexMapKey.h.