https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
28bool
29VectorTag::operator==(const VectorTag & other) const
30{
31 return _id == other._id && _type_id == other._type_id && _name == other._name &&
32 _type == other._type;
33}
unsigned int TagID
Definition MooseTypes.h:238
unsigned int TagTypeID
Definition MooseTypes.h:239
Storage for all of the information pretaining to a vector tag.
Definition VectorTag.h:18
TagID _id
The id associated with the vector tag.
Definition VectorTag.h:30
Moose::VectorTagType _type
The type of the vector tag.
Definition VectorTag.h:53
TagName _name
The name of the vector tag.
Definition VectorTag.h:50
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
MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to add...