FEI Version of the Day
Public Member Functions
fei::ConnectivityBlock Class Reference

#include <fei_ConnectivityBlock.hpp>

List of all members.

Public Member Functions

 ConnectivityBlock (int blockID, fei::Pattern *pattern, int numConnectivities)
 ConnectivityBlock (int blockID, fei::Pattern *rowpattern, fei::Pattern *colpattern, int numConnectivities)
 ConnectivityBlock (int numRowIDs, const int *rowIDs, const int *rowOffsets, bool offsets_are_lengths=false)
 ConnectivityBlock (int fieldID, int numRowIDs, const int *rowIDs, const int *rowOffsets, bool offsets_are_lengths=false)
virtual ~ConnectivityBlock ()
int getBlockID () const
const fei::PatterngetRowPattern () const
fei::PatterngetRowPattern ()
const fei::PatterngetColPattern () const
fei::PatterngetColPattern ()
const std::map< int, int > & getConnectivityIDs () const
std::map< int, int > & getConnectivityIDs ()
std::vector< int > & getConnectivityOffsets ()
std::vector< int > & getRowConnectivities ()
std::vector< int > & getColConnectivities ()
const int * getRowConnectivity (int ID) const
const int * getColConnectivity (int ID) const
int * getRowConnectivity (int ID)
int * getColConnectivity (int ID)
bool isSymmetric () const
void setIsDiagonal (bool flag)
bool isDiagonal () const
bool haveFieldID ()
int fieldID ()

Detailed Description

class to hold attributes of a connectivity-block (for example, an element-block). This class can handle connectivities for any kind of mesh-objects, not just elements, though elements are of course the most common.

Definition at line 26 of file fei_ConnectivityBlock.hpp.


Constructor & Destructor Documentation

fei::ConnectivityBlock::ConnectivityBlock ( int  blockID,
fei::Pattern pattern,
int  numConnectivities 
)

constructor

Definition at line 22 of file fei_ConnectivityBlock.cpp.

fei::ConnectivityBlock::ConnectivityBlock ( int  blockID,
fei::Pattern rowpattern,
fei::Pattern colpattern,
int  numConnectivities 
)

constructor

Definition at line 42 of file fei_ConnectivityBlock.cpp.

fei::ConnectivityBlock::ConnectivityBlock ( int  numRowIDs,
const int *  rowIDs,
const int *  rowOffsets,
bool  offsets_are_lengths = false 
)

constructor

Definition at line 63 of file fei_ConnectivityBlock.cpp.

fei::ConnectivityBlock::ConnectivityBlock ( int  fieldID,
int  numRowIDs,
const int *  rowIDs,
const int *  rowOffsets,
bool  offsets_are_lengths = false 
)

constructor

Definition at line 116 of file fei_ConnectivityBlock.cpp.

fei::ConnectivityBlock::~ConnectivityBlock ( ) [virtual]

destructor

Definition at line 170 of file fei_ConnectivityBlock.cpp.


Member Function Documentation

int fei::ConnectivityBlock::getBlockID ( ) const [inline]

get block-identifier

Definition at line 53 of file fei_ConnectivityBlock.hpp.

const fei::Pattern* fei::ConnectivityBlock::getRowPattern ( ) const [inline]

get pattern that defines the layout of dofs in the row-dimension for block's contributions

Definition at line 57 of file fei_ConnectivityBlock.hpp.

fei::Pattern* fei::ConnectivityBlock::getRowPattern ( ) [inline]

get pattern that defines the layout of dofs in the row-dimension for block's contributions

Definition at line 61 of file fei_ConnectivityBlock.hpp.

const fei::Pattern* fei::ConnectivityBlock::getColPattern ( ) const [inline]

get pattern that defines the layout of dofs in the column-dimension for block's contributions. probably null if this block is made up of symmetric contributions.

Definition at line 68 of file fei_ConnectivityBlock.hpp.

fei::Pattern* fei::ConnectivityBlock::getColPattern ( ) [inline]

get pattern that defines the layout of dofs in the column-dimension for block's contributions. probably null if this block is made up of symmetric contributions.

Definition at line 73 of file fei_ConnectivityBlock.hpp.

const std::map<int,int>& fei::ConnectivityBlock::getConnectivityIDs ( ) const [inline]

get map of connectivity-ids with associated offsets

Definition at line 79 of file fei_ConnectivityBlock.hpp.

std::map<int,int>& fei::ConnectivityBlock::getConnectivityIDs ( ) [inline]

get map of connectivity-ids with associated offsets

Definition at line 83 of file fei_ConnectivityBlock.hpp.

std::vector<int>& fei::ConnectivityBlock::getConnectivityOffsets ( ) [inline]

get vector of connectivity-offsets. Only available if this object was constructed using constructor 3 or 4. Power users only.

Definition at line 88 of file fei_ConnectivityBlock.hpp.

std::vector<int>& fei::ConnectivityBlock::getRowConnectivities ( ) [inline]

get array of row-connectivities

Definition at line 92 of file fei_ConnectivityBlock.hpp.

std::vector<int>& fei::ConnectivityBlock::getColConnectivities ( ) [inline]

get array of column-connectivities

Definition at line 96 of file fei_ConnectivityBlock.hpp.

const int * fei::ConnectivityBlock::getRowConnectivity ( int  ID) const

get row-connectivity for a specified ID

Definition at line 175 of file fei_ConnectivityBlock.cpp.

const int * fei::ConnectivityBlock::getColConnectivity ( int  ID) const

get column-connectivity for a specified ID

Definition at line 203 of file fei_ConnectivityBlock.cpp.

int * fei::ConnectivityBlock::getRowConnectivity ( int  ID)

get row-connectivity for a specified ID

Definition at line 189 of file fei_ConnectivityBlock.cpp.

int * fei::ConnectivityBlock::getColConnectivity ( int  ID)

get column-connectivity for a specified ID

Definition at line 217 of file fei_ConnectivityBlock.cpp.

bool fei::ConnectivityBlock::isSymmetric ( ) const [inline]

query whether block is symmetric

Definition at line 109 of file fei_ConnectivityBlock.hpp.

void fei::ConnectivityBlock::setIsDiagonal ( bool  flag) [inline]

implementation detail for power-users

Definition at line 112 of file fei_ConnectivityBlock.hpp.

bool fei::ConnectivityBlock::isDiagonal ( ) const [inline]

implementation detail for power-users

Definition at line 114 of file fei_ConnectivityBlock.hpp.

bool fei::ConnectivityBlock::haveFieldID ( ) [inline]

query whether block has a field-id

Definition at line 117 of file fei_ConnectivityBlock.hpp.

int fei::ConnectivityBlock::fieldID ( ) [inline]

return block's field-id

Definition at line 121 of file fei_ConnectivityBlock.hpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends