MorphoGraphX  2.0-1-227
Public Types | Public Member Functions | Public Attributes | List of all members
mgx::VVGraph< VertexContent, EdgeContent >::neighbor_t Struct Reference

Structure maintaining the data for a single neighbor. More...

#include <VVGraph.hpp>

+ Inheritance diagram for mgx::VVGraph< VertexContent, EdgeContent >::neighbor_t:

Public Types

typedef std::vector< neighbor_tedge_list_t
 Type of the list of outgoing neighbors. More...
 

Public Member Functions

 neighbor_t (const vertex_t &tgt, const EdgeContent &e)
 Constructor. More...
 
 neighbor_t (const neighbor_t &copy)
 
void clear_edge ()
 
 ~neighbor_t ()
 
neighbor_toperator= (const neighbor_t &copy)
 
bool operator== (const neighbor_t &other) const
 Equality of two neighbors/edge. More...
 

Public Attributes

vertex_t target
 Target of the edge. More...
 

Detailed Description

template<typename VertexContent, typename EdgeContent = _EmptyEdgeContent>
struct mgx::VVGraph< VertexContent, EdgeContent >::neighbor_t

Structure maintaining the data for a single neighbor.

Definition at line 238 of file VVGraph.hpp.

Member Typedef Documentation

◆ edge_list_t

template<typename VertexContent , typename EdgeContent = _EmptyEdgeContent>
typedef std::vector<neighbor_t> mgx::VVGraph< VertexContent, EdgeContent >::neighbor_t::edge_list_t

Type of the list of outgoing neighbors.

Definition at line 245 of file VVGraph.hpp.

Constructor & Destructor Documentation

◆ neighbor_t() [1/2]

template<typename VertexContent , typename EdgeContent = _EmptyEdgeContent>
mgx::VVGraph< VertexContent, EdgeContent >::neighbor_t::neighbor_t ( const vertex_t tgt,
const EdgeContent &  e 
)
inline

Constructor.

Definition at line 250 of file VVGraph.hpp.

◆ neighbor_t() [2/2]

template<typename VertexContent , typename EdgeContent = _EmptyEdgeContent>
mgx::VVGraph< VertexContent, EdgeContent >::neighbor_t::neighbor_t ( const neighbor_t copy)
inline

Definition at line 252 of file VVGraph.hpp.

◆ ~neighbor_t()

template<typename VertexContent , typename EdgeContent = _EmptyEdgeContent>
mgx::VVGraph< VertexContent, EdgeContent >::neighbor_t::~neighbor_t ( )
inline

Definition at line 259 of file VVGraph.hpp.

Member Function Documentation

◆ clear_edge()

template<typename VertexContent , typename EdgeContent = _EmptyEdgeContent>
void mgx::VVGraph< VertexContent, EdgeContent >::neighbor_t::clear_edge ( )
inline

Definition at line 254 of file VVGraph.hpp.

◆ operator=()

template<typename VertexContent , typename EdgeContent = _EmptyEdgeContent>
neighbor_t& mgx::VVGraph< VertexContent, EdgeContent >::neighbor_t::operator= ( const neighbor_t copy)
inline

Definition at line 261 of file VVGraph.hpp.

◆ operator==()

template<typename VertexContent , typename EdgeContent = _EmptyEdgeContent>
bool mgx::VVGraph< VertexContent, EdgeContent >::neighbor_t::operator== ( const neighbor_t other) const
inline

Equality of two neighbors/edge.

A single neighbor is equal to another if the vertex and the content are the same

Definition at line 281 of file VVGraph.hpp.

Member Data Documentation

◆ target

template<typename VertexContent , typename EdgeContent = _EmptyEdgeContent>
vertex_t mgx::VVGraph< VertexContent, EdgeContent >::neighbor_t::target

Target of the edge.

i.e. neighbor itself

Definition at line 273 of file VVGraph.hpp.


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