Public Member Functions | Protected Attributes | List of all members
vcsl_graph Class Reference

Spatial coordinate system transformation graph. More...

#include <vcsl_graph.h>

Inheritance diagram for vcsl_graph:
Inheritance graph
[legend]

Public Member Functions

 vcsl_graph ()=default
 
 vcsl_graph (vcsl_graph const &x)
 
 ~vcsl_graph () override=default
 
unsigned int count () const
 Number of coordinate systems. More...
 
bool has (const vcsl_spatial_sptr &cs) const
 Has ‘this’ ‘cs’ as node ?. More...
 
bool valid_index (unsigned int index) const
 Is ‘index’ valid in the list of the spatial coordinate systems ?. More...
 
vcsl_spatial_sptr item (unsigned int index) const
 Spatial coordinate system number ‘index’. More...
 
void put (const vcsl_spatial_sptr &cs)
 Add ‘cs’ in ‘this’. More...
 
void remove (const vcsl_spatial_sptr &cs)
 Remove ‘cs’ from ‘this’. More...
 
void init_vertices () const
 Set the flag ‘reached’ to false for each spatial coordinate system. More...
 
void ref ()
 
void unref ()
 
long get_references () const
 
bool is_referenced () const
 

Protected Attributes

std::vector< vcsl_spatial_sptrvertices_
 Vertices of the graph: all the spatial coordinate systems. More...
 

Detailed Description

Spatial coordinate system transformation graph.

Graph where nodes are spatial coordinate systems and arrows are transformations. Only the nodes are in the graph class. The transformations are in the spatial coordinates systems

Definition at line 30 of file vcsl_graph.h.

Constructor & Destructor Documentation

◆ vcsl_graph() [1/2]

vcsl_graph::vcsl_graph ( )
default

◆ vcsl_graph() [2/2]

vcsl_graph::vcsl_graph ( vcsl_graph const &  x)
inline

Definition at line 42 of file vcsl_graph.h.

◆ ~vcsl_graph()

vcsl_graph::~vcsl_graph ( )
overridedefault

Member Function Documentation

◆ count()

unsigned int vcsl_graph::count ( ) const
inline

Number of coordinate systems.

Definition at line 52 of file vcsl_graph.h.

◆ has()

bool vcsl_graph::has ( const vcsl_spatial_sptr cs) const

Has ‘this’ ‘cs’ as node ?.

Definition at line 12 of file vcsl_graph.cxx.

◆ init_vertices()

void vcsl_graph::init_vertices ( ) const

Set the flag ‘reached’ to false for each spatial coordinate system.

Used by the search path algorithm

Definition at line 67 of file vcsl_graph.cxx.

◆ item()

vcsl_spatial_sptr vcsl_graph::item ( unsigned int  index) const

Spatial coordinate system number ‘index’.

REQUIRE: valid_index(index)

Definition at line 29 of file vcsl_graph.cxx.

◆ put()

void vcsl_graph::put ( const vcsl_spatial_sptr cs)

Add ‘cs’ in ‘this’.

REQUIRE: !has(cs)

Definition at line 41 of file vcsl_graph.cxx.

◆ remove()

void vcsl_graph::remove ( const vcsl_spatial_sptr cs)

Remove ‘cs’ from ‘this’.

REQUIRE: has(cs)

Definition at line 53 of file vcsl_graph.cxx.

◆ valid_index()

bool vcsl_graph::valid_index ( unsigned int  index) const
inline

Is ‘index’ valid in the list of the spatial coordinate systems ?.

Definition at line 62 of file vcsl_graph.h.

Member Data Documentation

◆ vertices_

std::vector<vcsl_spatial_sptr> vcsl_graph::vertices_
protected

Vertices of the graph: all the spatial coordinate systems.

Definition at line 91 of file vcsl_graph.h.


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