te::sa::GeneralizedProximityMatrix Class Reference

This class defines a Generalized Proximity Matrix. More...

#include <GeneralizedProximityMatrix.h>

Public Member Functions

 GeneralizedProximityMatrix ()
 Default constructor. More...
 
virtual ~GeneralizedProximityMatrix ()
 Virtual destructor. More...
 

Private Attributes

std::string m_attributeName
 Attribute used to identify the attr from dataset associated to this gmp. More...
 
std::string m_dataSetName
 Attribute used to identify the dataset associated to this gpm. More...
 
std::unique_ptr< te::graph::AbstractGraphm_graph
 Graph that represents the gpm. More...
 

Methods

Methods used by the GPM

void setDataSetName (const std::string &dataSetName)
 
std::string getDataSetName ()
 
void setAttributeName (const std::string &attrName)
 
std::string getAttributeName ()
 
void setGraph (te::graph::AbstractGraph *graph)
 
te::graph::AbstractGraphgetGraph ()
 
void toDataSource (te::da::DataSourcePtr ds, std::string dataSetName)
 Function used to export the all vertex attributes from gpm graph to a datasource. More...
 
std::unique_ptr< te::da::DataSetTypecreateDataSetType (std::string dataSetName)
 
std::unique_ptr< te::mem::DataSetcreateDataSet (te::da::DataSetType *dsType)
 
std::map< int, std::string > getGPMPropertyMap ()
 

Detailed Description

This class defines a Generalized Proximity Matrix.

See also
GPMBuilder

Definition at line 56 of file GeneralizedProximityMatrix.h.

Constructor & Destructor Documentation

te::sa::GeneralizedProximityMatrix::GeneralizedProximityMatrix ( )

Default constructor.

Definition at line 39 of file GeneralizedProximityMatrix.cpp.

References ~GeneralizedProximityMatrix().

te::sa::GeneralizedProximityMatrix::~GeneralizedProximityMatrix ( )
virtualdefault

Virtual destructor.

Referenced by GeneralizedProximityMatrix().

Member Function Documentation

std::unique_ptr< te::da::DataSetType > te::sa::GeneralizedProximityMatrix::createDataSetType ( std::string  dataSetName)
protected
std::map< int, std::string > te::sa::GeneralizedProximityMatrix::getGPMPropertyMap ( )
protected
void te::sa::GeneralizedProximityMatrix::setAttributeName ( const std::string &  attrName)
void te::sa::GeneralizedProximityMatrix::setDataSetName ( const std::string &  dataSetName)
void te::sa::GeneralizedProximityMatrix::setGraph ( te::graph::AbstractGraph graph)
void te::sa::GeneralizedProximityMatrix::toDataSource ( te::da::DataSourcePtr  ds,
std::string  dataSetName 
)

Function used to export the all vertex attributes from gpm graph to a datasource.

Parameters
dsPointer to the output datasource
dataSetNameThe name of the new dataset that will be created into the datasource

Definition at line 77 of file GeneralizedProximityMatrix.cpp.

References createDataSet(), createDataSetType(), and m_graph.

Member Data Documentation

std::string te::sa::GeneralizedProximityMatrix::m_attributeName
private

Attribute used to identify the attr from dataset associated to this gmp.

Definition at line 106 of file GeneralizedProximityMatrix.h.

Referenced by getAttributeName(), and setAttributeName().

std::string te::sa::GeneralizedProximityMatrix::m_dataSetName
private

Attribute used to identify the dataset associated to this gpm.

Definition at line 105 of file GeneralizedProximityMatrix.h.

Referenced by getDataSetName(), and setDataSetName().

std::unique_ptr<te::graph::AbstractGraph> te::sa::GeneralizedProximityMatrix::m_graph
private

Graph that represents the gpm.

Definition at line 108 of file GeneralizedProximityMatrix.h.

Referenced by createDataSet(), createDataSetType(), getGPMPropertyMap(), getGraph(), setGraph(), and toDataSource().


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