Chi-Tech
LogicalVolumeInterface.h
Go to the documentation of this file.
1#ifndef CHITECH_LOGICALVOLUMEINTERFACE_H
2#define CHITECH_LOGICALVOLUMEINTERFACE_H
3
5
6namespace chi_mesh
7{
8
9class LogicalVolume;
10
11/**Interface class to add a dependency on a logical volume. Two things need to
12* be done to use this interface. 1) Derive from it. 2) Add its parameters to
13* the child class. Now it will require a handle to logical volume in the input
14* language.*/
16{
17protected:
19
20 explicit LogicalVolumeInterface(const chi::InputParameters& params);
21
22 const LogicalVolume* GetLogicalVolume() const;
23
24private:
25 const std::shared_ptr<const LogicalVolume> logical_volume_;
26};
27
28}
29
30#endif // CHITECH_LOGICALVOLUMEINTERFACE_H
static chi::InputParameters GetInputParameters()
const LogicalVolume * GetLogicalVolume() const
LogicalVolumeInterface(const chi::InputParameters &params)
const std::shared_ptr< const LogicalVolume > logical_volume_