Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)

Public Types | Public Member Functions | Public Attributes
concepts::AdaptiveControlTag Struct Reference

Tag information which is used in AdaptiveControl. More...

#include <space.hh>

Inheritance diagram for concepts::AdaptiveControlTag:
Inheritance graph
[legend]

List of all members.

Public Types

enum  tagInfo {
  NO_TAG = 0, MEMBER = 1, PASSIVE = 2, VLD_IDX = 4,
  VLD_P = 8
}
 Enumeration of the bit values in data_. More...

Public Member Functions

void activate ()
 AdaptiveControlTag (uchar t=0)
 Constructor.
void deactivate ()
bool idxValid () const
 Checks for a valid index.
void invalidateIdx ()
void invalidateP ()
bool isActive () const
 Checks activity.
bool isMember () const
 Checks member of the space.
bool isPassive () const
 Checks activity.
uchar operator= (const uchar &t)
 Assignement operator.
bool pValid () const
 Checks for a valid polynomial degree.
void takeIn ()
 Takes into the space.
void takeOut ()
 Takes out of the space.
void validateIdx ()
void validateP ()

Public Attributes

uchar data_
 Control information.

Detailed Description

Tag information which is used in AdaptiveControl.

Author:
Philipp Frauenfelder, 2001

Definition at line 87 of file space.hh.


Member Enumeration Documentation

Enumeration of the bit values in data_.

This makes the handling of the bits in the data_ easier: to check

  • for 'member of the space':
    (data_ & MEMBER) != 0
  • for 'active':
    (data_ & PASSIVE) == 0

or to change

  • to 'passive':
    data_ |= PASSIVE;
  • to 'active':
    data_ &= ~PASSIVE;
Enumerator:
NO_TAG 
MEMBER 
PASSIVE 
VLD_IDX 
VLD_P 

Definition at line 101 of file space.hh.


Constructor & Destructor Documentation

concepts::AdaptiveControlTag::AdaptiveControlTag ( uchar  t = 0) [inline]

Constructor.

Definition at line 115 of file space.hh.


Member Function Documentation

void concepts::AdaptiveControlTag::activate ( ) [inline]

Definition at line 139 of file space.hh.

void concepts::AdaptiveControlTag::deactivate ( ) [inline]

Definition at line 140 of file space.hh.

bool concepts::AdaptiveControlTag::idxValid ( ) const [inline]

Checks for a valid index.

Returns:
True if the index is valid

Definition at line 145 of file space.hh.

void concepts::AdaptiveControlTag::invalidateIdx ( ) [inline]

Definition at line 147 of file space.hh.

void concepts::AdaptiveControlTag::invalidateP ( ) [inline]

Definition at line 154 of file space.hh.

bool concepts::AdaptiveControlTag::isActive ( ) const [inline]

Checks activity.

Returns:
True if 'active'

Definition at line 132 of file space.hh.

bool concepts::AdaptiveControlTag::isMember ( ) const [inline]

Checks member of the space.

Returns:
True if 'member of the space'

Definition at line 123 of file space.hh.

bool concepts::AdaptiveControlTag::isPassive ( ) const [inline]

Checks activity.

Note: isPassive() == !isActive().

Returns:
True if 'passive'
Deprecated:
: user !isActive()

Definition at line 138 of file space.hh.

uchar concepts::AdaptiveControlTag::operator= ( const uchar t) [inline]

Assignement operator.

Definition at line 118 of file space.hh.

bool concepts::AdaptiveControlTag::pValid ( ) const [inline]

Checks for a valid polynomial degree.

Returns:
True if the polynomial degree is valid

Definition at line 152 of file space.hh.

void concepts::AdaptiveControlTag::takeIn ( ) [inline]

Takes into the space.

Definition at line 125 of file space.hh.

void concepts::AdaptiveControlTag::takeOut ( ) [inline]

Takes out of the space.

Definition at line 127 of file space.hh.

void concepts::AdaptiveControlTag::validateIdx ( ) [inline]

Definition at line 146 of file space.hh.

void concepts::AdaptiveControlTag::validateP ( ) [inline]

Definition at line 153 of file space.hh.


Member Data Documentation

Control information.

The information stored in the tag has to be viewed as a bit field containing the following information:
bit 0: member of the space (1), not member(0)
bit 1: passive(1), active(0) (eg. for enforcing boundary conditions)
bit 2: valid index, ie. this index is already used for assembling, useful for enforcing continuity of the solution
bit 3: valid p (for high order methods)

Definition at line 112 of file space.hh.


The documentation for this struct was generated from the following file:

Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)