Loading [MathJax]/extensions/tex2jax.js
ug4
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ug::AlgebraType Class Reference

class describing the type of an algebra More...

#include <algebra_type.h>

Public Types

enum  { VariableBlockSize = -1 }
 indicating variable block size More...
 
enum  Type { CPU = 0 , GPU = 1 }
 types of algebra More...
 

Public Member Functions

 AlgebraType ()
 empty constructor
 
 AlgebraType (const char *type)
 constructor for variable block size
 
 AlgebraType (const char *type, int blockSize)
 constructor for fix blocksize
 
 AlgebraType (Type type, int blockSize)
 constructor for fix blocksize
 
int blocksize () const
 returns the blocksize
 
int type () const
 returns the type
 

Protected Attributes

int m_blockSize
 
int m_type
 

Detailed Description

class describing the type of an algebra

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

indicating variable block size

Enumerator
VariableBlockSize 

◆ Type

types of algebra

Enumerator
CPU 
GPU 

Constructor & Destructor Documentation

◆ AlgebraType() [1/4]

ug::AlgebraType::AlgebraType ( )

empty constructor

◆ AlgebraType() [2/4]

ug::AlgebraType::AlgebraType ( Type  type,
int  blockSize 
)

constructor for fix blocksize

References UG_THROW, and VariableBlockSize.

◆ AlgebraType() [3/4]

ug::AlgebraType::AlgebraType ( const char *  type,
int  blockSize 
)

constructor for fix blocksize

References CPU, GPU, m_type, type(), UG_THROW, and VariableBlockSize.

◆ AlgebraType() [4/4]

ug::AlgebraType::AlgebraType ( const char *  type)

constructor for variable block size

References CPU, GPU, m_type, type(), and UG_THROW.

Member Function Documentation

◆ blocksize()

◆ type()

int ug::AlgebraType::type ( ) const
inline

returns the type

References m_type.

Referenced by AlgebraType(), AlgebraType(), ug::bridge::InitUG(), and ug::operator<<().

Member Data Documentation

◆ m_blockSize

int ug::AlgebraType::m_blockSize
protected

Referenced by blocksize().

◆ m_type

int ug::AlgebraType::m_type
protected

Referenced by AlgebraType(), AlgebraType(), and type().


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