G+Smo  23.12.0
Geometry + Simulation Modules
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
boxCorner Struct Reference

Detailed Description

Struct which represents a certain corner of a hyper-cube.

+ Inheritance diagram for boxCorner:

Public Member Functions

void getContainingSides (index_t dim, std::vector< boxSide > &sides) const
 returns a vector of sides containing the corner More...
 
boxCorneroperator++ ()
 set to next boxCorner
 
boxCorneroperator-- ()
 set to previous boxCorner
 
void parameters_into (index_t dim, gsVector< bool > &param) const
 returns a vector of parameters describing the position of the corner More...
 

Static Public Member Functions

static boxCorner getEnd (short_t dim)
 helper for iterating on corners of an n-dimensional box More...
 
static boxCorner getFirst (short_t)
 helper for iterating on corners of an n-dimensional box More...
 
static boxCorner getLast (short_t dim)
 helper for iterating on corners of an n-dimensional box More...
 

Public Attributes

index_t m_index
 Index of the corner. More...
 

Member Function Documentation

void getContainingSides ( index_t  dim,
std::vector< boxSide > &  sides 
) const
inline

returns a vector of sides containing the corner

Parameters
dimis the ambient dimension
sides
static boxCorner getEnd ( short_t  dim)
inlinestatic

helper for iterating on corners of an n-dimensional box

Parameters
dim
Returns
the (invalid) corners after the last one in dim-dimensional box
static boxCorner getFirst ( short_t  )
inlinestatic

helper for iterating on corners of an n-dimensional box

Returns
the first valid corners in an dim-dimensional box
static boxCorner getLast ( short_t  dim)
inlinestatic

helper for iterating on corners of an n-dimensional box

Parameters
dim
Returns
the last valid corners in an dim-dimensional box
void parameters_into ( index_t  dim,
gsVector< bool > &  param 
) const
inline

returns a vector of parameters describing the position of the corner

Parameters
dim
paramentry i is 1 if the corner is contained in box_face(i,1) and 0 if it is contained in box_face(i,0)

Member Data Documentation

index_t m_index

Index of the corner.

...stored as number, specified in boundary::corner