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