Ignore:
Timestamp:
Jul 5, 2017, 7:43:00 PM (8 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
ForceAnnealing_oldresults, IndependentFragmentGrids_IntegrationTest
Children:
d619f5c
Parents:
9b5fa6
git-author:
Frederik Heber <frederik.heber@…> (05/19/17 14:28:28)
git-committer:
Frederik Heber <frederik.heber@…> (07/05/17 19:43:00)
Message:

BreadthFirstSearchGatherer::getDistances() added.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Graph/BreadthFirstSearchGatherer.hpp

    r9b5fa6 r6e1c14  
    1515#endif
    1616
     17#include <map>
    1718#include <stddef.h>
    1819#include <vector>
     
    2728struct BreadthFirstSearchGatherer
    2829{
     30  //!> typedef for the distance map to the obtained atomic id set.
     31  typedef std::map<atomId_t, size_t> distance_map_t;
     32
    2933  /** Cstor of class BreadthFirstSearchGatherer.
    3034   *
     
    4347      const int &_max_distance = -1);
    4448
     49  /** Getter to the internal map of distances of each atomic id.
     50   *
     51   * \return ref to distance map
     52   */
     53  const distance_map_t& getDistances() const
     54  { return distance_map; }
     55
    4556private:
    46   //!> typedef for a vector with BFS discovery distances
     57  //!> typedef for a vector of BFS discovery distances
    4758  typedef std::vector<size_t> distances_t;
     59
     60  //!> BFS discovery distances for the returned atomic id set
     61  distance_map_t distance_map;
    4862
    4963  //!> graph to operate on
Note: See TracChangeset for help on using the changeset viewer.