Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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.

: m_indexMapType(indexmapType),
m_shapeType(shapeType),
m_p(p),
m_q(q),
m_r(r),
m_entityID(entityID),
m_orientation(orientation)
{
}
Nektar::StdRegions::IndexMapKey::IndexMapKey ( const IndexMapKey rhs,
const StdRegions::IndexMapType  indexmapType 
)

Definition at line 61 of file IndexMapKey.cpp.

:
m_indexMapType (indexmapType),
m_shapeType(rhs.m_shapeType),
m_p (rhs.m_p),
m_q (rhs.m_q),
m_r (rhs.m_r),
m_entityID (rhs.m_entityID),
m_orientation (rhs.m_orientation)
{
}
Nektar::StdRegions::IndexMapKey::IndexMapKey ( const IndexMapKey rhs)

Definition at line 73 of file IndexMapKey.cpp.

:
m_indexMapType (rhs.m_indexMapType),
m_shapeType(rhs.m_shapeType),
m_p (rhs.m_p),
m_q (rhs.m_q),
m_r (rhs.m_r),
m_entityID (rhs.m_entityID),
m_orientation (rhs.m_orientation)
{
}
virtual Nektar::StdRegions::IndexMapKey::~IndexMapKey ( )
inlinevirtual

Definition at line 73 of file IndexMapKey.h.

{
}
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().

{
return m_entityID;
}
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<<().

{
}
Orientation Nektar::StdRegions::IndexMapKey::GetIndexOrientation ( ) const
inline

Definition at line 93 of file IndexMapKey.h.

References m_orientation.

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

{
return m_orientation;
}

Friends And Related Function Documentation

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

Definition at line 90 of file IndexMapKey.cpp.

{
if(lhs.m_indexMapType < rhs.m_indexMapType)
{
return true;
}
if(lhs.m_indexMapType > rhs.m_indexMapType)
{
return false;
}
if(lhs.m_shapeType < rhs.m_shapeType)
{
return true;
}
if(lhs.m_shapeType > rhs.m_shapeType)
{
return false;
}
if(lhs.m_p < rhs.m_p)
{
return true;
}
if(lhs.m_p > rhs.m_p)
{
return false;
}
if(lhs.m_q < rhs.m_q)
{
return true;
}
if(lhs.m_q > rhs.m_q)
{
return false;
}
if(lhs.m_r < rhs.m_r)
{
return true;
}
if(lhs.m_r > rhs.m_r)
{
return false;
}
if(lhs.m_entityID < rhs.m_entityID)
{
return true;
}
if(lhs.m_entityID > rhs.m_entityID)
{
return false;
}
if(lhs.m_orientation < rhs.m_orientation)
{
return true;
}
if(lhs.m_orientation > rhs.m_orientation)
{
return false;
}
return false;
}
bool operator== ( const IndexMapKey lhs,
const IndexMapKey rhs 
)
friend

Definition at line 159 of file IndexMapKey.cpp.

{
if(lhs.m_indexMapType != rhs.m_indexMapType)
{
return false;
}
if(lhs.m_shapeType != rhs.m_shapeType)
{
return false;
}
if(lhs.m_p != rhs.m_p)
{
return false;
}
if(lhs.m_q != rhs.m_q)
{
return false;
}
if(lhs.m_r != rhs.m_r)
{
return false;
}
if(lhs.m_entityID != rhs.m_entityID)
{
return false;
}
if(lhs.m_orientation != rhs.m_orientation)
{
return false;
}
return true;
}
bool opLess::operator() ( const IndexMapKey lhs,
const IndexMapKey rhs 
) const
friend

Member Data Documentation

unsigned short Nektar::StdRegions::IndexMapKey::m_entityID
protected

Definition at line 113 of file IndexMapKey.h.

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

IndexMapType Nektar::StdRegions::IndexMapKey::m_indexMapType
protected

Definition at line 105 of file IndexMapKey.h.

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

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

Definition at line 115 of file IndexMapKey.h.

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

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==().