ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
cloudViewer::ml::op_util::Dim Class Reference

Class for dimensions for which the value should be inferred. More...

#include <ShapeChecking.h>

Public Member Functions

 Dim ()
 
 Dim (const std::string &name)
 
 Dim (int64_t value, const std::string &name="")
 
 Dim (const Dim &other)
 
 ~Dim ()
 
Dim & operator= (const Dim &)=delete
 
int64_t & value ()
 
bool & constant ()
 
bool assign (int64_t a)
 
std::string ToString (bool show_value=true)
 

Detailed Description

Class for dimensions for which the value should be inferred.

Constructor & Destructor Documentation

◆ Dim() [1/4]

cloudViewer::ml::op_util::Dim::Dim ( )
inlineexplicit

◆ Dim() [2/4]

cloudViewer::ml::op_util::Dim::Dim ( const std::string &  name)
inlineexplicit

◆ Dim() [3/4]

cloudViewer::ml::op_util::Dim::Dim ( int64_t  value,
const std::string &  name = "" 
)
inline

◆ Dim() [4/4]

cloudViewer::ml::op_util::Dim::Dim ( const Dim &  other)
inline

◆ ~Dim()

cloudViewer::ml::op_util::Dim::~Dim ( )
inline

Member Function Documentation

◆ assign()

bool cloudViewer::ml::op_util::Dim::assign ( int64_t  a)
inline

tries to assign a value to the Dim if not marked as constant and compares the Dim value with the value to be assigned.

References a, constant(), and value().

Referenced by cloudViewer::ml::op_util::operator==().

◆ constant()

bool& cloudViewer::ml::op_util::Dim::constant ( )
inline

Referenced by assign(), and ToString().

◆ operator=()

Dim& cloudViewer::ml::op_util::Dim::operator= ( const Dim &  )
delete

◆ ToString()

std::string cloudViewer::ml::op_util::Dim::ToString ( bool  show_value = true)
inline

◆ value()

int64_t& cloudViewer::ml::op_util::Dim::value ( )
inline

Referenced by assign(), and ToString().


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