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::StdRegions::IndexMapKey Class Reference

#include <IndexMapKey.h>

Classes

struct  opLess
 

Public Member Functions

 IndexMapKey (const StdRegions::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=eNoOrientation)
 
 IndexMapKey (const IndexMapKey &rhs, const StdRegions::IndexMapType indexmapType)
 
 IndexMapKey (const IndexMapKey &rhs)
 
virtual ~IndexMapKey ()
 
IndexMapType GetIndexMapType () const
 
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
 
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

Nektar::StdRegions::IndexMapKey::IndexMapKey ( const StdRegions::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 = eNoOrientation 
)

Definition at line 43 of file IndexMapKey.cpp.

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

Definition at line 61 of file IndexMapKey.cpp.

62  :
63  m_indexMapType (indexmapType),
64  m_shapeType(rhs.m_shapeType),
65  m_p (rhs.m_p),
66  m_q (rhs.m_q),
67  m_r (rhs.m_r),
68  m_entityID (rhs.m_entityID),
69  m_orientation (rhs.m_orientation)
70  {
71  }
LibUtilities::ShapeType m_shapeType
Definition: IndexMapKey.h:107
Nektar::StdRegions::IndexMapKey::IndexMapKey ( const IndexMapKey rhs)

Definition at line 73 of file IndexMapKey.cpp.

73  :
74  m_indexMapType (rhs.m_indexMapType),
75  m_shapeType(rhs.m_shapeType),
76  m_p (rhs.m_p),
77  m_q (rhs.m_q),
78  m_r (rhs.m_r),
79  m_entityID (rhs.m_entityID),
80  m_orientation (rhs.m_orientation)
81  {
82  }
LibUtilities::ShapeType m_shapeType
Definition: IndexMapKey.h:107
virtual Nektar::StdRegions::IndexMapKey::~IndexMapKey ( )
inlinevirtual

Definition at line 73 of file IndexMapKey.h.

74  {
75  }
Nektar::StdRegions::IndexMapKey::IndexMapKey ( )
private

Member Function Documentation

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

Definition at line 98 of file IndexMapKey.h.

References m_entityID.

Referenced by Nektar::StdRegions::StdExpansion::CreateIndexMap().

99  {
100  return m_entityID;
101  }
IndexMapType Nektar::StdRegions::IndexMapKey::GetIndexMapType ( ) const
inline

Definition at line 88 of file IndexMapKey.h.

References m_indexMapType.

Referenced by Nektar::StdRegions::StdExpansion::CreateIndexMap(), and Nektar::StdRegions::operator<<().

89  {
90  return m_indexMapType;
91  }
Orientation Nektar::StdRegions::IndexMapKey::GetIndexOrientation ( ) const
inline

Definition at line 93 of file IndexMapKey.h.

References m_orientation.

Referenced by Nektar::StdRegions::StdExpansion::CreateIndexMap().

94  {
95  return m_orientation;
96  }

Friends And Related Function Documentation

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

Definition at line 90 of file IndexMapKey.cpp.

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

Definition at line 159 of file IndexMapKey.cpp.

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

Member Data Documentation

unsigned short Nektar::StdRegions::IndexMapKey::m_entityID
protected
IndexMapType Nektar::StdRegions::IndexMapKey::m_indexMapType
protected
Orientation Nektar::StdRegions::IndexMapKey::m_orientation
protected
unsigned short Nektar::StdRegions::IndexMapKey::m_p
protected

Definition at line 109 of file IndexMapKey.h.

Referenced by Nektar::StdRegions::operator<(), and Nektar::StdRegions::operator==().

unsigned short Nektar::StdRegions::IndexMapKey::m_q
protected

Definition at line 110 of file IndexMapKey.h.

Referenced by Nektar::StdRegions::operator<(), and Nektar::StdRegions::operator==().

unsigned short Nektar::StdRegions::IndexMapKey::m_r
protected

Definition at line 111 of file IndexMapKey.h.

Referenced by Nektar::StdRegions::operator<(), and Nektar::StdRegions::operator==().

LibUtilities::ShapeType Nektar::StdRegions::IndexMapKey::m_shapeType
protected

Definition at line 107 of file IndexMapKey.h.

Referenced by Nektar::StdRegions::operator<(), and Nektar::StdRegions::operator==().