MIDSX 0.1
A x-ray transport code system for dosimetry
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
Material Class Reference

Class which represents a material. More...

#include <material.h>

Collaboration diagram for Material:

Public Member Functions

 Material (std::string name, DataAccessObject &dao)
 Constructor for the Material class.
 
const MaterialPropertiesgetProperties ()
 Returns the MaterialProperties object for the material.
 
const MaterialDatagetData ()
 Returns the MaterialData object for the material.
 

Private Attributes

std::string name_
 
DataAccessObjectdao_
 
MaterialProperties properties_
 
MaterialData data_
 

Detailed Description

Class which represents a material.

This class contains the properties and data for a material obtained and computed from the SQLite database.

Definition at line 19 of file material.h.

Constructor & Destructor Documentation

◆ Material()

Material::Material ( std::string name,
DataAccessObject & dao )

Constructor for the Material class.

Parameters
nameThe name of the material.
daoThe DataAccessObject to use to query the database.

Member Function Documentation

◆ getData()

const MaterialData & Material::getData ( )
inline

Returns the MaterialData object for the material.

Returns
The MaterialData object for the material.

Definition at line 41 of file material.h.

◆ getProperties()

const MaterialProperties & Material::getProperties ( )
inline

Returns the MaterialProperties object for the material.

Returns
The MaterialProperties object for the material.

Definition at line 34 of file material.h.

Member Data Documentation

◆ dao_

DataAccessObject& Material::dao_
private

Definition at line 44 of file material.h.

◆ data_

MaterialData Material::data_
private

Definition at line 46 of file material.h.

◆ name_

std::string Material::name_
private

Definition at line 43 of file material.h.

◆ properties_

MaterialProperties Material::properties_
private

Definition at line 45 of file material.h.


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