https://mooseframework.inl.gov
Public Member Functions | Public Attributes | List of all members
VectorTag Class Reference

Storage for all of the information pretaining to a vector tag. More...

#include <VectorTag.h>

Public Member Functions

 VectorTag ()
 
 VectorTag (const TagID id, const unsigned int type_index, const TagName name, const Moose::VectorTagType type)
 
bool operator== (const VectorTag &other) const
 

Public Attributes

TagID _id
 The id associated with the vector tag. More...
 
TagTypeID _type_id
 The index for this tag into a vector that contains tags of only its type ordered by ID. More...
 
TagName _name
 The name of the vector tag. More...
 
Moose::VectorTagType _type
 The type of the vector tag. More...
 

Detailed Description

Storage for all of the information pretaining to a vector tag.

Definition at line 17 of file VectorTag.h.

Constructor & Destructor Documentation

◆ VectorTag() [1/2]

VectorTag::VectorTag ( )

Definition at line 12 of file VectorTag.C.

15  _name(""),
17 {
18 }
const TagTypeID INVALID_TAG_TYPE_ID
Definition: MooseTypes.C:24
TagID _id
The id associated with the vector tag.
Definition: VectorTag.h:30
TagTypeID _type_id
The index for this tag into a vector that contains tags of only its type ordered by ID...
Definition: VectorTag.h:47
TagName _name
The name of the vector tag.
Definition: VectorTag.h:50
const TagID INVALID_TAG_ID
Definition: MooseTypes.C:23
Moose::VectorTagType _type
The type of the vector tag.
Definition: VectorTag.h:53

◆ VectorTag() [2/2]

VectorTag::VectorTag ( const TagID  id,
const unsigned int  type_index,
const TagName  name,
const Moose::VectorTagType  type 
)

Definition at line 20 of file VectorTag.C.

24  : _id(id), _type_id(type_id), _name(name), _type(type)
25 {
26 }
TagID _id
The id associated with the vector tag.
Definition: VectorTag.h:30
TagTypeID _type_id
The index for this tag into a vector that contains tags of only its type ordered by ID...
Definition: VectorTag.h:47
TagName _name
The name of the vector tag.
Definition: VectorTag.h:50
Moose::VectorTagType _type
The type of the vector tag.
Definition: VectorTag.h:53

Member Function Documentation

◆ operator==()

bool VectorTag::operator== ( const VectorTag other) const

Definition at line 29 of file VectorTag.C.

30 {
31  return _id == other._id && _type_id == other._type_id && _name == other._name &&
32  _type == other._type;
33 }
TagID _id
The id associated with the vector tag.
Definition: VectorTag.h:30
TagTypeID _type_id
The index for this tag into a vector that contains tags of only its type ordered by ID...
Definition: VectorTag.h:47
TagName _name
The name of the vector tag.
Definition: VectorTag.h:50
Moose::VectorTagType _type
The type of the vector tag.
Definition: VectorTag.h:53

Member Data Documentation

◆ _id

TagID VectorTag::_id

The id associated with the vector tag.

Definition at line 30 of file VectorTag.h.

Referenced by Assembly::addResidual(), Assembly::addResidualLower(), Assembly::addResidualNeighbor(), Assembly::addResidualScalar(), and operator==().

◆ _name

TagName VectorTag::_name

The name of the vector tag.

Definition at line 50 of file VectorTag.h.

Referenced by operator==().

◆ _type

Moose::VectorTagType VectorTag::_type

◆ _type_id

TagTypeID VectorTag::_type_id

The index for this tag into a vector that contains tags of only its type ordered by ID.

This is specifically meant for indexing into the result of SubProblem::getVectorTags(type), where type is not VECTOR_TAG_ANY

Example:

| _id | _type_id | _type |

| 0 | 0 | VECTOR_TAG_RESIDUAL | | 1 | 1 | VECTOR_TAG_RESIDUAL | | 2 | 0 | VECTOR_TAG_SOLUTION | | 3 | 2 | VECTOR_TAG_RESIDUAL | | 4 | 1 | VECTOR_TAG_SOLUTION |

Definition at line 47 of file VectorTag.h.

Referenced by Assembly::addCachedResidualDirectly(), Assembly::addResidual(), Assembly::addResidualLower(), Assembly::addResidualNeighbor(), Assembly::addResidualScalar(), Assembly::cacheResidual(), Assembly::cacheResidualNodes(), Assembly::clearCachedResiduals(), operator==(), TaggingInterface::prepareVectorTagLower(), TaggingInterface::prepareVectorTagNeighbor(), Assembly::setResidual(), and Assembly::setResidualNeighbor().


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