Nektar++
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 55 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 40 of file IndexMapKey.cpp.

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

◆ IndexMapKey() [2/4]

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

Definition at line 50 of file IndexMapKey.cpp.

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

◆ IndexMapKey() [3/4]

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

Definition at line 58 of file IndexMapKey.cpp.

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

◆ ~IndexMapKey()

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

Definition at line 70 of file IndexMapKey.h.

71 {
72 }

◆ IndexMapKey() [4/4]

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

Member Function Documentation

◆ GetIndexEntity()

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

Definition at line 99 of file IndexMapKey.h.

100 {
101 return m_entityID;
102 }

References m_entityID.

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

◆ GetIndexMapType()

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

Definition at line 89 of file IndexMapKey.h.

90 {
91 return m_indexMapType;
92 }

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 94 of file IndexMapKey.h.

95 {
96 return m_orientation;
97 }

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 71 of file IndexMapKey.cpp.

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

◆ operator==

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

Definition at line 144 of file IndexMapKey.cpp.

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

◆ 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 113 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 115 of file IndexMapKey.h.

Referenced by GetIndexOrientation().

◆ m_p

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

Definition at line 109 of file IndexMapKey.h.

◆ m_q

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

Definition at line 110 of file IndexMapKey.h.

◆ m_r

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

Definition at line 111 of file IndexMapKey.h.

◆ m_shapeType

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

Definition at line 107 of file IndexMapKey.h.