The Gnome Chemistry Utils  0.12.13
Public Member Functions | Protected Attributes | List of all members
gcu::CrystalCleavage Class Reference

#include <gcu/crystalcleavage.h>

Public Member Functions

 CrystalCleavage (CrystalCleavage &ccCleavage)
int & Planes ()
int & h ()
int & k ()
int & l ()
CrystalCleavageoperator= (CrystalCleavage &ccCleavage)
bool operator== (CrystalCleavage &ccCleavage)
xmlNodePtr Save (xmlDocPtr xml) const
bool Load (xmlNodePtr node)

Protected Attributes

int m_nh
int m_nk
int m_nl
int m_nPlanes

Detailed Description

Represents cleavages of a cystal along a plane defined by its Miller indices. A defined number of planes are removed by each cleavage. These are those for which the value hx + ky + lz are the greatest. To remove planes frome the other side of the crystal, change the sign of the three Miller indices.

Definition at line 40 of file crystalcleavage.h.

Constructor & Destructor Documentation

gcu::CrystalCleavage::CrystalCleavage ( CrystalCleavage ccCleavage)
Parameters
ccCleavage,:the cleavage instance to copy.

The copy constructor.

Member Function Documentation

int& gcu::CrystalCleavage::h ( )
inline
Returns
the Miller's h index of the cleavage plane.

Definition at line 65 of file crystalcleavage.h.

References m_nh.

int& gcu::CrystalCleavage::k ( )
inline
Returns
the Miller's k index of the cleavage plane.

Definition at line 69 of file crystalcleavage.h.

References m_nk.

int& gcu::CrystalCleavage::l ( )
inline
Returns
the Miller's l index of the cleavage plane.

Definition at line 73 of file crystalcleavage.h.

References m_nl.

bool gcu::CrystalCleavage::Load ( xmlNodePtr  node)
Parameters
node,:a pointer to the xmlNode containing the serialized cleavage.

Used to load an CrystalCleavage instance in memory. The CrystalCleavage must already exist.

Returns
true on succes, false otherwise.
CrystalCleavage& gcu::CrystalCleavage::operator= ( CrystalCleavage ccCleavage)
Parameters
ccCleavage,:the cleavage to copy.
Returns
a CrystalCleavage identical to ccCleavage.
bool gcu::CrystalCleavage::operator== ( CrystalCleavage ccCleavage)
Parameters
ccCleavage,:a CrystalCleavage instance.
Returns
true if the two cleavages have the same Miller indices and false otherwise.
int& gcu::CrystalCleavage::Planes ( )
inline
Returns
the number of planes cleaved.

Definition at line 61 of file crystalcleavage.h.

References m_nPlanes.

xmlNodePtr gcu::CrystalCleavage::Save ( xmlDocPtr  xml) const
Parameters
xml,:the xmlDoc used to save the document.

Used to save the cleavage to the xmlDoc. Each serializable Object should implement this virtual method.

Returns
the xmlNode containing the serialized cleavage.

Member Data Documentation

int gcu::CrystalCleavage::m_nh
protected

Miller's h index.

Definition at line 104 of file crystalcleavage.h.

Referenced by h().

int gcu::CrystalCleavage::m_nk
protected

Miller's k index.

Definition at line 108 of file crystalcleavage.h.

Referenced by k().

int gcu::CrystalCleavage::m_nl
protected

Miller's l index.

Definition at line 112 of file crystalcleavage.h.

Referenced by l().

int gcu::CrystalCleavage::m_nPlanes
protected

Number of planes cleaved.

Definition at line 116 of file crystalcleavage.h.

Referenced by Planes().


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