DGtal 2.0.0
Loading...
Searching...
No Matches
DGtal::BoundedLatticePolytope< TSpace >::LeftStrictUnitCell Struct Reference

#include <DGtal/geometry/volumes/BoundedLatticePolytope.h>

Public Member Functions

 LeftStrictUnitCell (std::initializer_list< Dimension > l)

Data Fields

std::vector< Dimensiondims

Friends

std::ostream & operator<< (std::ostream &out, const LeftStrictUnitCell &object)

Detailed Description

template<typename TSpace>
struct DGtal::BoundedLatticePolytope< TSpace >::LeftStrictUnitCell

Represents the unit cell obtained by successive Minkowski sum of RightStrictUnitSegment whose dimensions are stored in dims. When dims is empty, it is only the point (0,...,0).

Definition at line 185 of file BoundedLatticePolytope.h.

Constructor & Destructor Documentation

◆ LeftStrictUnitCell()

template<typename TSpace>
DGtal::BoundedLatticePolytope< TSpace >::LeftStrictUnitCell::LeftStrictUnitCell ( std::initializer_list< Dimension > l)
inline

Definition at line 187 of file BoundedLatticePolytope.h.

188 : dims( l.begin(), l.end() ) {}
Aim: Represents an nD lattice polytope, i.e. a convex polyhedron bounded with vertices with integer c...

References dims.

Referenced by operator<<.

◆ operator<<

template<typename TSpace>
std::ostream & operator<< ( std::ostream & out,
const LeftStrictUnitCell & object )
friend

Overloads 'operator<<' for displaying objects of class 'BoundedLatticePolytope::UnitCell'.

Parameters
outthe output stream where the object is written.
objectthe object of class 'BoundedLatticePolytope::UnitCell' to write.
Returns
the output stream after the writing.

Definition at line 196 of file BoundedLatticePolytope.h.

199 {
200 out << "{";
201 for ( Dimension i = 0; i < object.dims.size(); ++i ) out << object.dims[ i ];
202 out << "}";
203 return out;
204 }

References dims, and LeftStrictUnitCell().

Field Documentation

◆ dims

template<typename TSpace>
std::vector<Dimension> DGtal::BoundedLatticePolytope< TSpace >::LeftStrictUnitCell::dims

Definition at line 186 of file BoundedLatticePolytope.h.

Referenced by LeftStrictUnitCell(), and operator<<.


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