https://mooseframework.inl.gov
RayTracingAttributes.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 "RayTracingAttributes.h"
11 
12 // Local includes
13 #include "RayTracingObject.h"
14 
15 void
17 {
18  const RayTracingObject * rto = dynamic_cast<const RayTracingObject *>(obj);
19  if (rto)
20  _val = &rto->study();
21 }
22 
23 bool
25 {
26  auto a = dynamic_cast<const AttribRayTracingStudy *>(&other);
27  return a && (a->_val == _val);
28 }
29 
30 bool
32 {
33  return isMatch(other);
34 }
virtual bool isMatch(const Attribute &other) const override
Attribute for the RayTracingStudy a RayTracingObject is associated with.
Base class for a MooseObject used in ray tracing.
virtual void initFrom(const MooseObject *obj) override
virtual bool isEqual(const Attribute &other) const override
RayTracingStudy & study()
The RayTracingStudy associated with this object.
const RayTracingStudy * _val