https://mooseframework.inl.gov
VectorTag.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #include "VectorTag.h"
11 
13  : _id(Moose::INVALID_TAG_ID),
14  _type_id(Moose::INVALID_TAG_TYPE_ID),
15  _name(""),
16  _type(Moose::VECTOR_TAG_ANY)
17 {
18 }
19 
21  const TagTypeID type_id,
22  const TagName name,
23  const Moose::VectorTagType type)
24  : _id(id), _type_id(type_id), _name(name), _type(type)
25 {
26 }
27 
28 bool
29 VectorTag::operator==(const VectorTag & other) const
30 {
31  return _id == other._id && _type_id == other._type_id && _name == other._name &&
32  _type == other._type;
33 }
std::string name(const ElemQuality q)
unsigned int TagTypeID
Definition: MooseTypes.h:211
const TagTypeID INVALID_TAG_TYPE_ID
Definition: MooseTypes.C:24
unsigned int TagID
Definition: MooseTypes.h:210
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
bool operator==(const VectorTag &other) const
Definition: VectorTag.C:29
VectorTag()
Definition: VectorTag.C:12
VectorTagType
Definition: MooseTypes.h:978
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
MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to add...
Storage for all of the information pretaining to a vector tag.
Definition: VectorTag.h:17