tfel
Loading...
Searching...
No Matches
numodis::IPlane Struct Reference

IPlane handles the indices of a critallographic plane. More...

#include </home/runner/work/tfel/tfel/include/NUMODIS/IPlane.hxx>

Public Types

using size_type = std::vector<int>::size_type

Public Member Functions

 IPlane (IPlane &&) noexcept
 IPlane (const IPlane &)
IPlane & operator= (const IPlane &rhs)
 IPlane (const unsigned nindices=3)
 Constructor.
 IPlane (const std::vector< int > &iplane)
 Constructor.
void setIPlane (const std::vector< int > &iplane)
 set the index of the glide plane
void getIndex (std::vector< int > &pln) const
 Return the index of the plane.
const std::vector< int > & getIndex () const
 Return the index of the plane.
int operator[] (const size_type i) const
 Return iplane[i].
int & operator[] (const size_type i)
long unsigned int getNindices () const
 Return the number of indices of the plane.
bool IsNull () const
 Are the indices of the plane all zero?

Protected Attributes

std::vector< int > _index
 index of the glide plane

Friends

TFELNUMODIS_VISIBILITY_FRIEND_EXPORT friend std::ostream & operator<< (std::ostream &os, const IPlane &iplane)
TFELNUMODIS_VISIBILITY_FRIEND_EXPORT friend bool operator== (const IPlane &lhs, const IPlane &rhs)
TFELNUMODIS_VISIBILITY_FRIEND_EXPORT friend bool operator!= (const IPlane &lhs, const IPlane &rhs)
TFELNUMODIS_VISIBILITY_FRIEND_EXPORT friend bool operator< (const IPlane &lhs, const IPlane &rhs)
TFELNUMODIS_VISIBILITY_FRIEND_EXPORT friend int PlaneCoincide (const IPlane &lhs, const IPlane &rhs)

Detailed Description

IPlane handles the indices of a critallographic plane.

Constructor & Destructor Documentation

◆ IPlane() [1/2]

numodis::IPlane::IPlane ( const unsigned nindices = 3)
inlineexplicit

Constructor.

Parameters
nindicesnumber of indices used to store n

◆ IPlane() [2/2]

numodis::IPlane::IPlane ( const std::vector< int > & iplane)
inlineexplicit

Constructor.

Parameters
iplaneindex of the glide plane

Member Function Documentation

◆ getIndex() [1/2]

const std::vector< int > & numodis::IPlane::getIndex ( ) const
inlinenodiscard

Return the index of the plane.

Returns
reference on the index of the plane

◆ getIndex() [2/2]

void numodis::IPlane::getIndex ( std::vector< int > & pln) const
inline

Return the index of the plane.

Parameters
plnnormal to the plane

◆ getNindices()

long unsigned int numodis::IPlane::getNindices ( ) const
inlinenodiscard

Return the number of indices of the plane.

Returns
number of indices

◆ IsNull()

bool numodis::IPlane::IsNull ( ) const
inlinenodiscard

Are the indices of the plane all zero?

Returns
true if only zero

◆ operator[]()

int numodis::IPlane::operator[] ( const size_type i) const
inlinenodiscard

Return iplane[i].

Parameters
iindex rank
Returns
iplane[i]

◆ setIPlane()

void numodis::IPlane::setIPlane ( const std::vector< int > & iplane)
inline

set the index of the glide plane

Parameters
iplaneindex of the glide plane

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