TTK
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
ttk::LDistanceMatrix Class Reference

#include <LDistanceMatrix.h>

Inheritance diagram for ttk::LDistanceMatrix:
ttk::Debug ttk::BaseClass ttkLDistanceMatrix ttkTableDistanceMatrix

Public Member Functions

 LDistanceMatrix ()
 
void setDistanceType (const std::string &val)
 
template<typename TIn , typename TOut >
int execute (std::vector< TOut * > &output, const std::vector< const TIn * > &inputs, const size_t nPoints) const
 
template<typename TIn , typename TOut >
int execute (std::vector< std::vector< TOut > > &output, const std::vector< const TIn * > &inputs, const size_t nPoints) const
 
- Public Member Functions inherited from ttk::Debug
 Debug ()
 
 ~Debug () override
 
virtual int setDebugLevel (const int &debugLevel)
 
int setWrapper (const Wrapper *wrapper) override
 
int printMsg (const std::string &msg, const debug::Priority &priority=debug::Priority::INFO, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const
 
int printMsg (const std::vector< std::string > &msgs, const debug::Priority &priority=debug::Priority::INFO, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const
 
int printErr (const std::string &msg, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cerr) const
 
int printWrn (const std::string &msg, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cerr) const
 
int printMsg (const std::string &msg, const double &progress, const double &time, const int &threads, const double &memory, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::PERFORMANCE, std::ostream &stream=std::cout) const
 
int printMsg (const std::string &msg, const double &progress, const double &time, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::PERFORMANCE, std::ostream &stream=std::cout) const
 
int printMsg (const std::string &msg, const double &progress, const double &time, const int &threads, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::PERFORMANCE, std::ostream &stream=std::cout) const
 
int printMsg (const std::string &msg, const double &progress, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::PERFORMANCE, std::ostream &stream=std::cout) const
 
int printMsg (const std::string &msg, const double &progress, const debug::Priority &priority, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const
 
int printMsg (const std::vector< std::vector< std::string > > &rows, const debug::Priority &priority=debug::Priority::INFO, const bool hasHeader=true, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const
 
int printMsg (const debug::Separator &separator, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::INFO, std::ostream &stream=std::cout) const
 
int printMsg (const debug::Separator &separator, const debug::Priority &priority, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const
 
int printMsg (const std::string &msg, const debug::Separator &separator, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::INFO, std::ostream &stream=std::cout) const
 
void setDebugMsgPrefix (const std::string &prefix)
 
- Public Member Functions inherited from ttk::BaseClass
 BaseClass ()
 
virtual ~BaseClass ()=default
 
int getThreadNumber () const
 
virtual int setThreadNumber (const int threadNumber)
 

Protected Attributes

std::string DistanceType {"2"}
 
- Protected Attributes inherited from ttk::Debug
int debugLevel_
 
std::string debugMsgPrefix_
 
std::string debugMsgNamePrefix_
 
- Protected Attributes inherited from ttk::BaseClass
bool lastObject_
 
int threadNumber_
 
Wrapperwrapper_
 

Additional Inherited Members

- Protected Member Functions inherited from ttk::Debug
int printMsgInternal (const std::string &msg, const std::string &right, const std::string &filler, const debug::Priority &priority=debug::Priority::INFO, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const
 
int printMsgInternal (const std::string &msg, const debug::Priority &priority, const debug::LineMode &lineMode, std::ostream &stream=std::cout) const
 
int welcomeMsg (std::ostream &stream)
 
- Static Protected Attributes inherited from ttk::Debug
static COMMON_EXPORTS debug::LineMode lastLineMode = ttk::debug::LineMode::NEW
 

Detailed Description

Author
Pierre Guillou pierr.nosp@m.e.gu.nosp@m.illou.nosp@m.@lip.nosp@m.6.fr
Date
May 2020

Online examples:

Definition at line 20 of file LDistanceMatrix.h.

Constructor & Destructor Documentation

◆ LDistanceMatrix()

ttk::LDistanceMatrix::LDistanceMatrix ( )

Definition at line 3 of file LDistanceMatrix.cpp.

Member Function Documentation

◆ execute() [1/2]

template<typename TIn , typename TOut >
int ttk::LDistanceMatrix::execute ( std::vector< std::vector< TOut > > &  output,
const std::vector< const TIn * > &  inputs,
const size_t  nPoints 
) const
Warning
This version of the execute function allocates, in addition to the output vector (of size inputs.size()^2) output, an extra vector of pointers of size output.size(). Given the size of the output 2D vector, this should be negligible.

Definition at line 88 of file LDistanceMatrix.h.

◆ execute() [2/2]

template<typename TIn , typename TOut >
int ttk::LDistanceMatrix::execute ( std::vector< TOut * > &  output,
const std::vector< const TIn * > &  inputs,
const size_t  nPoints 
) const

Definition at line 48 of file LDistanceMatrix.h.

◆ setDistanceType()

void ttk::LDistanceMatrix::setDistanceType ( const std::string &  val)
inline

Definition at line 24 of file LDistanceMatrix.h.

Member Data Documentation

◆ DistanceType

std::string ttk::LDistanceMatrix::DistanceType {"2"}
protected

Definition at line 43 of file LDistanceMatrix.h.


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