votca
2024.2-dev
Loading...
Searching...
No Matches
tools
include
votca
tools
graph_bf_visitor.h
Go to the documentation of this file.
1
/*
2
* Copyright 2009-2019 The VOTCA Development Team
3
* (http://www.votca.org)
4
*
5
* Licensed under the Apache License, Version 2.0 (the "License")
6
*
7
* You may not use this file except in compliance with the License.
8
* You may obtain a copy of the License at
9
*
10
* http://www.apache.org/licenses/LICENSE-2.0
11
*
12
* Unless required by applicable law or agreed to in writing, software
13
* distributed under the License is distributed on an "AS IS" BASIS,
14
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
* See the License for the specific language governing permissions and
16
* limitations under the License.
17
*
18
*/
19
20
#ifndef __VOTCA_TOOLS_GRAPH_BF_VISITOR_H
21
#define __VOTCA_TOOLS_GRAPH_BF_VISITOR_H
22
23
#include "
graphvisitor.h
"
24
#include <deque>
25
#include <queue>
26
34
namespace
votca
{
35
namespace
tools {
36
37
class
Graph;
38
class
Edge;
39
class
GraphNode;
40
41
class
Graph_BF_Visitor
:
public
GraphVisitor
{
42
private
:
43
std::deque<std::queue<Edge>>
edge_que_
;
44
47
void
addEdges_
(
const
Graph
& graph,
Index
vertex)
override
;
48
Edge
getEdge_
()
override
;
49
50
public
:
51
Graph_BF_Visitor
() =
default
;
52
bool
queEmpty
()
const override
;
53
};
54
}
// namespace tools
55
}
// namespace votca
56
#endif
// __VOTCA_TOOLS_GRAPH_BF_VISITOR_H
votca::tools::Edge
Connects to vertices.
Definition
edge.h:42
votca::tools::GraphVisitor
Definition
graphvisitor.h:52
votca::tools::Graph_BF_Visitor
Definition
graph_bf_visitor.h:41
votca::tools::Graph_BF_Visitor::Graph_BF_Visitor
Graph_BF_Visitor()=default
votca::tools::Graph_BF_Visitor::edge_que_
std::deque< std::queue< Edge > > edge_que_
Definition
graph_bf_visitor.h:43
votca::tools::Graph_BF_Visitor::queEmpty
bool queEmpty() const override
Definition
graph_bf_visitor.cc:31
votca::tools::Graph_BF_Visitor::getEdge_
Edge getEdge_() override
Definition
graph_bf_visitor.cc:33
votca::tools::Graph_BF_Visitor::addEdges_
void addEdges_(const Graph &graph, Index vertex) override
Definition
graph_bf_visitor.cc:43
votca::tools::Graph
Definition
graph.h:43
graphvisitor.h
votca
base class for all analysis tools
Definition
basebead.h:33
votca::Index
Eigen::Index Index
Definition
types.h:26
Generated by
1.12.0