CMS 3D CMS Logo

Public Member Functions | Protected Attributes

DDI::Material Class Reference

#include <Material.h>

List of all members.

Public Member Functions

double a () const
double & a ()
int addMaterial (const DDMaterial &m, double fm)
const
DDMaterial::FractionV::value_type & 
constituent (int i) const
DDMaterial::FractionV::value_type & constituent (int i)
double density () const
double & density ()
 Material (double z, double a, double d)
 Material (double d)
 Material ()
int noOfConsituents () const
int noOfConstituents () const
double & z ()
double z () const
virtual ~Material ()

Protected Attributes

double a_
DDMaterial::FractionV composites_
double density_
double z_

Detailed Description

Definition at line 12 of file Material.h.


Constructor & Destructor Documentation

DDI::Material::Material ( ) [inline]

Definition at line 15 of file Material.h.

{}
DDI::Material::Material ( double  z,
double  a,
double  d 
) [inline]

Definition at line 16 of file Material.h.

     : z_(z), a_(a), density_(d) { }
DDI::Material::Material ( double  d) [inline]

Definition at line 19 of file Material.h.

: z_(0), a_(0), density_(d) { }  
virtual DDI::Material::~Material ( ) [inline, virtual]

Definition at line 20 of file Material.h.

{}

Member Function Documentation

double DDI::Material::a ( ) const [inline]

Definition at line 23 of file Material.h.

References a_.

{ return a_; }
double& DDI::Material::a ( ) [inline]

Definition at line 27 of file Material.h.

References a_.

{ return a_; }
int DDI::Material::addMaterial ( const DDMaterial m,
double  fm 
) [inline]

Definition at line 31 of file Material.h.

References composites_, and noOfConstituents().

     { composites_.push_back(std::make_pair(m,fm));
       return noOfConstituents();
     }
const DDMaterial::FractionV::value_type& DDI::Material::constituent ( int  i) const [inline]

Definition at line 36 of file Material.h.

References composites_, and i.

     { return composites_[i]; }
DDMaterial::FractionV::value_type& DDI::Material::constituent ( int  i) [inline]

Definition at line 39 of file Material.h.

References composites_, and i.

     { return composites_[i]; }
double DDI::Material::density ( ) const [inline]

Definition at line 25 of file Material.h.

References density_.

{ return density_; }
double& DDI::Material::density ( ) [inline]

Definition at line 29 of file Material.h.

References density_.

{ return density_; }
int DDI::Material::noOfConsituents ( ) const
int DDI::Material::noOfConstituents ( ) const [inline]

Definition at line 42 of file Material.h.

References composites_.

Referenced by addMaterial().

{ return composites_.size(); } 
double& DDI::Material::z ( ) [inline]

Definition at line 28 of file Material.h.

References z_.

{ return z_; }
double DDI::Material::z ( ) const [inline]

Definition at line 24 of file Material.h.

References z_.

{ return z_; }

Member Data Documentation

double DDI::Material::a_ [protected]

Definition at line 45 of file Material.h.

Referenced by a().

Definition at line 46 of file Material.h.

Referenced by addMaterial(), constituent(), and noOfConstituents().

double DDI::Material::density_ [protected]

Definition at line 45 of file Material.h.

Referenced by density().

double DDI::Material::z_ [protected]

Definition at line 45 of file Material.h.

Referenced by z().