| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Protected Member Functions | Protected Attributes
TeProxMatrixImplementation Class Reference

An abstract class to represent proximity matrix. More...

`#include <TeProxMatrixImplementation.h>`

Inheritance diagram for TeProxMatrixImplementation:

List of all members.

## Public Member Functions

bool | isConnected (const string &object_id1, const string &object_id2)
| Verify if two objects are neighbour or connected.
virtual void | connectObjects (const string &, const string &, const TeProxMatrixAttributes &)=0
| Connect two objects.
virtual bool | disconnectObjects (const string &, const string &)
| Disconnect two objects.
virtual bool | removeObject (const string &)
| Remove an object.
virtual bool | getConnectionAttributes (const string &, const string &, TeProxMatrixAttributes &)=0
| Get connection attributes.
virtual bool | setConnectionAttributes (const string &, const string &, const TeProxMatrixAttributes &)=0
| Set connection attributes.
virtual bool | getNeighbours (const string &, TeNeighbours &)=0
| Get the neighbours of an object.
virtual bool | getNeighbours (int, string &, TeNeighbours &)=0
| Get the obj-th neighbour of an object.
virtual bool | getNeighboursNeighbours (const string &, TeNeighbours &, int=2)=0
| Get the neighbours of an object.
virtual int | numberOfObjects ()=0
| Return the number of objects.
TeGPMImplementation | type ()
| Return the type of the representation.
virtual TeProxMatrixImplementation * | createCopy ()=0
| Create a copy.
virtual bool | isEqual (TeProxMatrixImplementation &other)
| Verify if is equal.
virtual bool | operator== (const TeProxMatrixImplementation &) const
| Equal operator.
virtual bool | saveTextFile (const string &, map< string, string > *)=0
| Save the proximity matrix in a text file.
virtual bool | saveGALFile (const string &, map< string, string > *)=0
| Save the proximity matrix in a GAL format text file.
virtual bool | saveGWTFile (const string &, map< string, string > *)=0
| Save the proximity matrix in a GWT format text file.
virtual bool | saveTextFile (const string &, vector< string > *)=0
| Save the proximity matrix in a text file.
virtual bool | saveGALFile (const string &, vector< string > *)=0
| Save the proximity matrix in a GAL format text file.
virtual bool | saveGWTFile (const string &, vector< string > *)=0
| Save the proximity matrix in a GWT format text file.
virtual | ~TeProxMatrixImplementation ()
| Destructor.

## Protected Member Functions

| TeProxMatrixImplementation (const TeGPMImplementation &type)
| Empty constructor.

## Protected Attributes

TeGPMImplementation | type_
| Type of the representation.

## Detailed Description

An abstract class to represent proximity matrix.

## Constructor & Destructor Documentation

TeProxMatrixImplementation::TeProxMatrixImplementation | ( | const TeGPMImplementation & | type | ) | `[inline, protected]`

Empty constructor.

virtual TeProxMatrixImplementation::~TeProxMatrixImplementation | ( |  | ) | `[inline, virtual]`

Destructor.

## Member Function Documentation

virtual void TeProxMatrixImplementation::connectObjects | ( | const string & | ,
|  | const string & | ,
|  | const TeProxMatrixAttributes & |
| ) |  | `[pure virtual]`

Connect two objects.

Implemented in TeProxMatrixGraphBreymann.

virtual TeProxMatrixImplementation* TeProxMatrixImplementation::createCopy | ( |  | ) | `[pure virtual]`

Create a copy.

Implemented in TeProxMatrixGraphBreymann.

virtual bool TeProxMatrixImplementation::disconnectObjects | ( | const string & | ,
|  | const string & |
| ) |  | `[inline, virtual]`

Disconnect two objects.

virtual bool TeProxMatrixImplementation::getConnectionAttributes | ( | const string & | ,
|  | const string & | ,
|  | TeProxMatrixAttributes & |
| ) |  | `[pure virtual]`

Get connection attributes.

Implemented in TeProxMatrixGraphBreymann.

virtual bool TeProxMatrixImplementation::getNeighbours | ( | int | ,
|  | string & | ,
|  | TeNeighbours & |
| ) |  | `[pure virtual]`

Get the obj-th neighbour of an object.

Implemented in TeProxMatrixGraphBreymann.

virtual bool TeProxMatrixImplementation::getNeighbours | ( | const string & | ,
|  | TeNeighbours & |
| ) |  | `[pure virtual]`

Get the neighbours of an object.

Implemented in TeProxMatrixGraphBreymann.

virtual bool TeProxMatrixImplementation::getNeighboursNeighbours | ( | const string & | ,
|  | TeNeighbours & | ,
|  | int | = `2`
| ) |  | `[pure virtual]`

Get the neighbours of an object.

Implemented in TeProxMatrixGraphBreymann.

bool TeProxMatrixImplementation::isConnected | ( | const string & | object_id1,
|  | const string & | object_id2
| ) |  | `[inline]`

Verify if two objects are neighbour or connected.

virtual bool TeProxMatrixImplementation::isEqual | ( | TeProxMatrixImplementation & | other | ) | `[inline, virtual]`

Verify if is equal.

Reimplemented in TeProxMatrixGraphBreymann.

virtual int TeProxMatrixImplementation::numberOfObjects | ( |  | ) | `[pure virtual]`

Return the number of objects.

Implemented in TeProxMatrixGraphBreymann.

virtual bool TeProxMatrixImplementation::operator== | ( | const TeProxMatrixImplementation & |  | ) | const`[inline, virtual]`

Equal operator.

virtual bool TeProxMatrixImplementation::removeObject | ( | const string & |  | ) | `[inline, virtual]`

Remove an object.

virtual bool TeProxMatrixImplementation::saveGALFile | ( | const string & | ,
|  | map< string, string > * |
| ) |  | `[pure virtual]`

Save the proximity matrix in a GAL format text file.

Implemented in TeProxMatrixGraphBreymann.

virtual bool TeProxMatrixImplementation::saveGALFile | ( | const string & | ,
|  | vector< string > * |
| ) |  | `[pure virtual]`

Save the proximity matrix in a GAL format text file.

Implemented in TeProxMatrixGraphBreymann.

virtual bool TeProxMatrixImplementation::saveGWTFile | ( | const string & | ,
|  | vector< string > * |
| ) |  | `[pure virtual]`

Save the proximity matrix in a GWT format text file.

Implemented in TeProxMatrixGraphBreymann.

virtual bool TeProxMatrixImplementation::saveGWTFile | ( | const string & | ,
|  | map< string, string > * |
| ) |  | `[pure virtual]`

Save the proximity matrix in a GWT format text file.

Implemented in TeProxMatrixGraphBreymann.

virtual bool TeProxMatrixImplementation::saveTextFile | ( | const string & | ,
|  | vector< string > * |
| ) |  | `[pure virtual]`

Save the proximity matrix in a text file.

Implemented in TeProxMatrixGraphBreymann.

virtual bool TeProxMatrixImplementation::saveTextFile | ( | const string & | ,
|  | map< string, string > * |
| ) |  | `[pure virtual]`

Save the proximity matrix in a text file.

Implemented in TeProxMatrixGraphBreymann.

virtual bool TeProxMatrixImplementation::setConnectionAttributes | ( | const string & | ,
|  | const string & | ,
|  | const TeProxMatrixAttributes & |
| ) |  | `[pure virtual]`

Set connection attributes.

Implemented in TeProxMatrixGraphBreymann.

TeGPMImplementation TeProxMatrixImplementation::type | ( |  | ) | `[inline]`

Return the type of the representation.

## Member Data Documentation

TeGPMImplementation TeProxMatrixImplementation::type_`[protected]`

Type of the representation.

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

- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/kernel/TeProxMatrixImplementation.h

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines