Line data Source code
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 16 22041 : AttribRayTracingStudy::initFrom(const MooseObject * obj) 17 : { 18 22041 : const RayTracingObject * rto = dynamic_cast<const RayTracingObject *>(obj); 19 22041 : if (rto) 20 8431 : _val = &rto->study(); 21 22041 : } 22 : 23 : bool 24 360526 : AttribRayTracingStudy::isMatch(const Attribute & other) const 25 : { 26 360526 : auto a = dynamic_cast<const AttribRayTracingStudy *>(&other); 27 360526 : return a && (a->_val == _val); 28 : } 29 : 30 : bool 31 134027 : AttribRayTracingStudy::isEqual(const Attribute & other) const 32 : { 33 134027 : return isMatch(other); 34 : }