MorphoGraphX
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
mgx::graph::VVGraph< VertexContent, EdgeContent, Alloc >::search_result_t< Neighborhood, Iterator > Struct Template Reference

Type of the result of the search for a vertex in a neighborhood. More...

#include <VVGraph.hpp>

Public Member Functions

 search_result_t ()
 Default constructor. More...
 
 search_result_t (Iterator i, Neighborhood *n, bool ok=true)
 Successful constructor.
 
 search_result_t (const search_result_t &copy)
 Copy constructor.
 
 operator bool ()
 Convert the object to true if the search is successful.
 

Public Attributes

bool found
 True if the search was completely successful.
 
Iterator it
 Iterator pointing in the edge list.
 
Neighborhood * neighborhood
 Neighborhood containing the element.
 

Detailed Description

template<typename VertexContent, typename EdgeContent = _EmptyEdgeContent, typename Alloc = std::allocator<VertexContent>>
template<class Neighborhood, class Iterator>
struct mgx::graph::VVGraph< VertexContent, EdgeContent, Alloc >::search_result_t< Neighborhood, Iterator >

Type of the result of the search for a vertex in a neighborhood.

This data structure is made such that all edit or lookup operations can be done from that data structure.

Constructor & Destructor Documentation

template<typename VertexContent, typename EdgeContent = _EmptyEdgeContent, typename Alloc = std::allocator<VertexContent>>
template<class Neighborhood , class Iterator >
mgx::graph::VVGraph< VertexContent, EdgeContent, Alloc >::search_result_t< Neighborhood, Iterator >::search_result_t ( )
inline

Default constructor.

By default, the search is unsuccessful


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