Celeritas 0.6.0-dev.115+3b60a5fd
Loading...
Searching...
No Matches
Public Member Functions | List of all members
celeritas::orangeinp::ProtoInterface Class Referenceabstract

Construct a universe as part of an ORANGE geometry. More...

#include <ProtoInterface.hh>

Inheritance diagram for celeritas::orangeinp::ProtoInterface:
Inheritance graph
[legend]

Public Types

Type aliases
using SPConstObject = std::shared_ptr< ObjectInterface const >
 
using SPConstProto = std::shared_ptr< ProtoInterface const >
 
using VecProto = std::vector< ProtoInterface const * >
 
using ProtoBuilder = detail::ProtoBuilder
 

Public Member Functions

virtual std::string_view label () const =0
 Short unique name of this object.
 
virtual SPConstObject interior () const =0
 Get the boundary of this universe as an object.
 
virtual VecProto daughters () const =0
 Get a non-owning set of all daughters referenced by this proto.
 
virtual void build (ProtoBuilder &) const =0
 Construct a universe input from this object.
 
virtual void output (JsonPimpl *) const =0
 Write the proto to a JSON object.
 

Protected Member Functions

 CELER_DEFAULT_COPY_MOVE (ProtoInterface)
 

Detailed Description

Construct a universe as part of an ORANGE geometry.

Each Proto (for proto-universe) will result in a unique UniverseId and can be placed into multiple other universes. Each universe has:

The graph of Proto daughters must be acyclic.

Constructor & Destructor Documentation

◆ ProtoInterface()

celeritas::orangeinp::ProtoInterface::ProtoInterface ( )
protecteddefault

Allow construction and assignment only through subclasses

◆ ~ProtoInterface()

celeritas::orangeinp::ProtoInterface::~ProtoInterface ( )
protecteddefault

Allow construction and assignment only through subclasses

Member Function Documentation

◆ build()

virtual void celeritas::orangeinp::ProtoInterface::build ( ProtoBuilder &  ) const
pure virtual

Construct a universe input from this object.

Implemented in celeritas::orangeinp::UnitProto.

◆ CELER_DEFAULT_COPY_MOVE()

celeritas::orangeinp::ProtoInterface::CELER_DEFAULT_COPY_MOVE ( ProtoInterface  )
protected

Allow construction and assignment only through subclasses

◆ daughters()

virtual VecProto celeritas::orangeinp::ProtoInterface::daughters ( ) const
pure virtual

Get a non-owning set of all daughters referenced by this proto.

Implemented in celeritas::orangeinp::UnitProto.

◆ interior()

virtual SPConstObject celeritas::orangeinp::ProtoInterface::interior ( ) const
pure virtual

Get the boundary of this universe as an object.

Implemented in celeritas::orangeinp::UnitProto.

◆ label()

virtual std::string_view celeritas::orangeinp::ProtoInterface::label ( ) const
pure virtual

Short unique name of this object.

Implemented in celeritas::orangeinp::UnitProto.

◆ output()

virtual void celeritas::orangeinp::ProtoInterface::output ( JsonPimpl ) const
pure virtual

Write the proto to a JSON object.

Implemented in celeritas::orangeinp::UnitProto.


The documentation for this class was generated from the following file: