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 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.

50  : m_indexMapType(indexmapType),
51  m_shapeType(shapeType),
52  m_p(p),
53  m_q(q),
54  m_r(r),
55  m_entityID(entityID),
56  m_orientation(orientation)
57  {
58  }
LibUtilities::ShapeType m_shapeType
Definition: IndexMapKey.h:107
StdRegions::Orientation m_orientation
Definition: IndexMapKey.h:115

◆ IndexMapKey() [2/4]

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

Definition at line 60 of file IndexMapKey.cpp.

61  :
62  m_indexMapType (indexmapType),
63  m_shapeType(rhs.m_shapeType),
64  m_p (rhs.m_p),
65  m_q (rhs.m_q),
66  m_r (rhs.m_r),
67  m_entityID (rhs.m_entityID),
68  m_orientation (rhs.m_orientation)
69  {
70  }

◆ IndexMapKey() [3/4]

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

Definition at line 72 of file IndexMapKey.cpp.

72  :
73  m_indexMapType (rhs.m_indexMapType),
74  m_shapeType(rhs.m_shapeType),
75  m_p (rhs.m_p),
76  m_q (rhs.m_q),
77  m_r (rhs.m_r),
78  m_entityID (rhs.m_entityID),
79  m_orientation (rhs.m_orientation)
80  {
81  }

◆ ~IndexMapKey()

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

Definition at line 73 of file IndexMapKey.h.

74  {
75  }

◆ IndexMapKey() [4/4]

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

Member Function Documentation

◆ GetIndexEntity()

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

Definition at line 98 of file IndexMapKey.h.

99  {
100  return m_entityID;
101  }

References m_entityID.

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

◆ GetIndexMapType()

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

Definition at line 88 of file IndexMapKey.h.

89  {
90  return m_indexMapType;
91  }

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

94  {
95  return m_orientation;
96  }

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

90  {
91  if(lhs.m_indexMapType < rhs.m_indexMapType)
92  {
93  return true;
94  }
95 
96  if(lhs.m_indexMapType > rhs.m_indexMapType)
97  {
98  return false;
99  }
100 
101  if(lhs.m_shapeType < rhs.m_shapeType)
102  {
103  return true;
104  }
105  if(lhs.m_shapeType > rhs.m_shapeType)
106  {
107  return false;
108  }
109 
110  if(lhs.m_p < rhs.m_p)
111  {
112  return true;
113  }
114  if(lhs.m_p > rhs.m_p)
115  {
116  return false;
117  }
118 
119  if(lhs.m_q < rhs.m_q)
120  {
121  return true;
122  }
123  if(lhs.m_q > rhs.m_q)
124  {
125  return false;
126  }
127 
128  if(lhs.m_r < rhs.m_r)
129  {
130  return true;
131  }
132  if(lhs.m_r > rhs.m_r)
133  {
134  return false;
135  }
136 
137  if(lhs.m_entityID < rhs.m_entityID)
138  {
139  return true;
140  }
141  if(lhs.m_entityID > rhs.m_entityID)
142  {
143  return false;
144  }
145 
146  if(lhs.m_orientation < rhs.m_orientation)
147  {
148  return true;
149  }
150  if(lhs.m_orientation > rhs.m_orientation)
151  {
152  return false;
153  }
154 
155  return false;
156  }

◆ operator==

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

Definition at line 158 of file IndexMapKey.cpp.

159  {
160  if(lhs.m_indexMapType != rhs.m_indexMapType)
161  {
162  return false;
163  }
164 
165  if(lhs.m_shapeType != rhs.m_shapeType)
166  {
167  return false;
168  }
169 
170  if(lhs.m_p != rhs.m_p)
171  {
172  return false;
173  }
174 
175  if(lhs.m_q != rhs.m_q)
176  {
177  return false;
178  }
179 
180  if(lhs.m_r != rhs.m_r)
181  {
182  return false;
183  }
184 
185  if(lhs.m_entityID != rhs.m_entityID)
186  {
187  return false;
188  }
189 
190  if(lhs.m_orientation != rhs.m_orientation)
191  {
192  return false;
193  }
194 
195  return true;
196  }

◆ 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.