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

#include <MandatoryCriticalPoints.h>

Inheritance diagram for ttk::Graph:
ttk::Debug ttk::BaseClass

Classes

class  Edge
 
class  Vertex
 

Public Member Functions

int getNumberOfVertices () const
 
int getNumberOfEdges () const
 
int addVertex ()
 Add a vertex, returns it's index.
 
const VertexgetVertex (const int idx) const
 Get a pointer to the vertex idx.
 
int addEdge (const int &start, const int &end)
 Add an edge between the vertex start and end, returns it's index.
 
const EdgegetEdge (const int idx) const
 
void clear ()
 
- 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)
 
virtual int setWrapper (const Wrapper *wrapper)
 

Protected Attributes

std::vector< VertexvertexList_ {}
 
std::vector< EdgeedgeList_ {}
 
- 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

Definition at line 44 of file MandatoryCriticalPoints.h.

Member Function Documentation

◆ addEdge()

int ttk::Graph::addEdge ( const int &  start,
const int &  end 
)
inline

Add an edge between the vertex start and end, returns it's index.

Definition at line 97 of file MandatoryCriticalPoints.h.

◆ addVertex()

int ttk::Graph::addVertex ( )
inline

Add a vertex, returns it's index.

Definition at line 87 of file MandatoryCriticalPoints.h.

◆ clear()

void ttk::Graph::clear ( )
inline

Definition at line 112 of file MandatoryCriticalPoints.h.

◆ getEdge()

const Edge & ttk::Graph::getEdge ( const int  idx) const
inline

Get a pointer to the edge idx, returns NULL if the idx is incorrect or if the edge has been removed.

Definition at line 109 of file MandatoryCriticalPoints.h.

◆ getNumberOfEdges()

int ttk::Graph::getNumberOfEdges ( ) const
inline

Definition at line 83 of file MandatoryCriticalPoints.h.

◆ getNumberOfVertices()

int ttk::Graph::getNumberOfVertices ( ) const
inline

Definition at line 80 of file MandatoryCriticalPoints.h.

◆ getVertex()

const Vertex & ttk::Graph::getVertex ( const int  idx) const
inline

Get a pointer to the vertex idx.

Definition at line 93 of file MandatoryCriticalPoints.h.

Member Data Documentation

◆ edgeList_

std::vector<Edge> ttk::Graph::edgeList_ {}
protected

Definition at line 119 of file MandatoryCriticalPoints.h.

◆ vertexList_

std::vector<Vertex> ttk::Graph::vertexList_ {}
protected

Definition at line 118 of file MandatoryCriticalPoints.h.


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