All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
NetworKit::Coordinates< T > Class Template Reference

DEPRECATED: A specialized container for node coordinates is no longer consistent with NetworKit's approach to node attributes. More...

#include <Coordinates.h>

Public Member Functions

void init (count numNodes)
 Allocates space for numNodes entries. More...
 
void setCoordinate (index v, const Point< T > &value)
 Sets entry at index v to value value. More...
 
Point< T > & getCoordinate (index v)
 
minCoordinate (count dim)
 
maxCoordinate (count dim)
 
void addCoordinates (std::vector< T > &values)
 Insert coordinates of a new vertex. More...
 
virtual ~Coordinates ()
 

Protected Attributes

std::vector< Point< T > > data
 

Detailed Description

template<class T>
class NetworKit::Coordinates< T >

DEPRECATED: A specialized container for node coordinates is no longer consistent with NetworKit's approach to node attributes.

Use standard library containers instead.

The Coordinates class represents a vector of Points of elements of type T. The class has convenience functions to get the minimum and maximum coordinate.

Constructor & Destructor Documentation

template<class T>
virtual NetworKit::Coordinates< T >::~Coordinates ( )
inlinevirtual

Member Function Documentation

template<class T>
void NetworKit::Coordinates< T >::addCoordinates ( std::vector< T > &  values)
inline

Insert coordinates of a new vertex.

template<class T>
Point<T>& NetworKit::Coordinates< T >::getCoordinate ( index  v)
inline
Returns
Entry at index v.
template<class T>
void NetworKit::Coordinates< T >::init ( count  numNodes)
inline

Allocates space for numNodes entries.

template<class T>
T NetworKit::Coordinates< T >::maxCoordinate ( count  dim)
inline
Returns
Maximum value of all coordinates with respect to dimension dim.
template<class T>
T NetworKit::Coordinates< T >::minCoordinate ( count  dim)
inline
Returns
Minimum value of all coordinates with respect to dimension dim.
template<class T>
void NetworKit::Coordinates< T >::setCoordinate ( index  v,
const Point< T > &  value 
)
inline

Sets entry at index v to value value.

Member Data Documentation

template<class T>
std::vector<Point<T> > NetworKit::Coordinates< T >::data
protected

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