COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Classes | Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
covise::SammConv Class Reference

#include <SammConv.h>

Collaboration diagram for covise::SammConv:
Collaboration graph
[legend]

Classes

struct  ConvertSAMM
 

Public Types

enum  { MAXPARTS = 8 }
 

Public Member Functions

virtual ~SammConv ()
 Destructor : virtual in case we derive objects. More...
 
 SammConv ()
 Default constructor: create conversion tables. More...
 
int * convertSamm (StarModelFile::CellTabEntry *&cellTab, StarModelFile::SammTabEntry *sammTab, StarModelFile::CellTypeEntry *cellType, int &numElem, int mxtb, void(*dumpFunct)(const char *))
 

Private Types

enum  { UNUSED = 5 }
 

Private Member Functions

 SammConv (const SammConv &)
 Copy-Constructor: NOT IMPLEMENTED. More...
 
SammConvoperator= (const SammConv &)
 Assignment operator: NOT IMPLEMENTED. More...
 
void createSammConv (const ConvertSAMM &base, const char *code, int i0, int i1, int i2, int i3, int i4, int i5, int i6, int i7)
 

Private Attributes

ConvertSAMMd_convSAMM
 

Static Private Attributes

static const ConvertSAMM s_samm0
 
static const ConvertSAMM s_samm1
 
static const ConvertSAMM s_samm2
 
static const ConvertSAMM s_samm2a
 
static const ConvertSAMM s_samm3
 
static const ConvertSAMM s_samm8dummy
 
static const ConvertSAMM s_samm4
 
static const ConvertSAMM s_samm5
 
static const ConvertSAMM s_samm8 [4096]
 
static const float DEGEN_RATIO = 1.1f
 

Member Enumeration Documentation

anonymous enum
Enumerator
MAXPARTS 
anonymous enum
private
Enumerator
UNUSED 

Constructor & Destructor Documentation

SammConv::SammConv ( const SammConv )
private

Copy-Constructor: NOT IMPLEMENTED.

–— Prevent auto-generated functions by assert -——

Copy-Constructor: NOT IMPLEMENTED

SammConv::~SammConv ( )
virtual

Destructor : virtual in case we derive objects.

--— Never forget the Destructor !! ----—

SammConv::SammConv ( )

Default constructor: create conversion tables.

Default constructor: create translation table.

Dummy: normal cell

Create SAMM-1 cells

Create SAMM-2 cells

Create SAMM-3 cells

Create SAMM-4 cells

Create SAMM-5 Cells

763

743

764

Create SAMM-8 Cells: not used, just a dummy...

Member Function Documentation

int * SammConv::convertSamm ( StarModelFile::CellTabEntry *&  cellTab,
StarModelFile::SammTabEntry sammTab,
StarModelFile::CellTypeEntry cellType,
int &  numElem,
int  mxtb,
void(*)(const char *)  dumpFunct 
)

discard empties

Convert all elements

void SammConv::createSammConv ( const ConvertSAMM base,
const char *  code,
int  i0,
int  i1,
int  i2,
int  i3,
int  i4,
int  i5,
int  i6,
int  i7 
)
private

check indices

check that none of the 'excluded' indices is used

SammConv & SammConv::operator= ( const SammConv )
private

Assignment operator: NOT IMPLEMENTED.

Member Data Documentation

ConvertSAMM* covise::SammConv::d_convSAMM
private
const float SammConv::DEGEN_RATIO = 1.1f
staticprivate
const SammConv::ConvertSAMM SammConv::s_samm0
staticprivate
Initial value:
=
{
1,
{ { 0, 1, 2, 3, 4, 5, 6, 7 } },
0
}
const SammConv::ConvertSAMM SammConv::s_samm1
staticprivate
Initial value:
=
{
8,
{
{ 1, 5, 6, 2, s0, s0, s0, s0 },
{ 5, s0, 1, 1, s1, s1, s1, s1 },
{ 1, 5, 4, 0, s1, s1, s1, s1 },
{ 2, s0, s1, s1, 1, 1, 1, 1 },
{ s0, s2, 2, 2, s1, s1, s1, s1 },
{ 1, s2, 0, 0, s1, s1, s1, s1 },
{ 1, 2, s2, s2, s1, s1, s1, s1 },
{ 1, 2, 3, 0, s2, s2, s2, s2 }
},
1
}
const SammConv::ConvertSAMM SammConv::s_samm2
staticprivate
Initial value:
=
{
3,
{ { 1, 2, s2, s2, 5, 6, s3, s3 },
{ 1, s2, s1, s1, 5, s3, s0, s0 },
{ 1, s1, 0, 0, 5, s0, 4, 4 } },
2
}
const SammConv::ConvertSAMM SammConv::s_samm2a
staticprivate
Initial value:
=
{
3,
{ { 1, 2, s0, s0, 5, 6, s1, s1 },
{ 1, s0, s3, s3, 5, s1, s2, s2 },
{ 1, s3, 0, 0, 5, s2, 4, 4 } },
2
}
const SammConv::ConvertSAMM SammConv::s_samm3
staticprivate
Initial value:
=
{
6,
{ { 1, 2, s0, s0, s1, s1, s1, s1 },
{ 1, s0, s4, s4, s1, s1, s1, s1 },
{
0, 1, s4, s4, s1, s1, s1, s1
},
{ 1, s1, 0, 0, s2, s2, s2, s2 },
{
4, 5, 1, 0, s2, s2, s2, s2
},
{ 0, s1, s4, s4, 4, s2, s3, s3 } },
3
}
const SammConv::ConvertSAMM SammConv::s_samm4
staticprivate
Initial value:
=
{
5,
{ { s1, s4, s3, s2, 1, 1, 1, 1 },
{ 5, s2, s3, s3, 1, 1, 1, 1 },
{ s1, s0, s5, s4, 1, 1, 1, 1 },
{ s1, 2, s0, s0, 1, 1, 1, 1 },
{ s4, s5, 0, 0, 1, 1, 1, 1 } },
4
}
const SammConv::ConvertSAMM SammConv::s_samm5
staticprivate
Initial value:
=
{
3,
{ { 5, s3, s2, 1, s4, s4, s4, s4 },
{ 1, s2, s0, s0, s4, s4, s4, s4 },
{ 1, s2, s1, 0, s0, s0, s0, s0 } },
5
}
const SammConv::ConvertSAMM SammConv::s_samm8
staticprivate
const SammConv::ConvertSAMM SammConv::s_samm8dummy
staticprivate
Initial value:
= {
5,
{ { s1, s1, s1, s1, s1, s1, s1, s1 },
{ s1, s1, s1, s1, s1, s1, s1, s1 },
{ s1, s1, s1, s1, s1, s1, s1, s1 },
{ s1, s1, s1, s1, s1, s1, s1, s1 },
{ s1, s1, s1, s1, s1, s1, s1, s1 } },
8
}

The documentation for this class was generated from the following files: