Coverage Report

Created: 2026-07-16 06:35

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/geos/src/geomgraph/NodeFactory.cpp
Line
Count
Source
1
/**********************************************************************
2
 *
3
 * GEOS - Geometry Engine Open Source
4
 * http://geos.osgeo.org
5
 *
6
 * Copyright (C) 2001-2002 Vivid Solutions Inc.
7
 * Copyright (C) 2005 Refractions Research Inc.
8
 *
9
 * This is free software; you can redistribute and/or modify it under
10
 * the terms of the GNU Lesser General Public Licence as published
11
 * by the Free Software Foundation.
12
 * See the COPYING file for more information.
13
 *
14
 **********************************************************************
15
 *
16
 * Last port: geomgraph/NodeFactory.java rev. 1.3 (JTS-1.10)
17
 *
18
 **********************************************************************/
19
20
#include <geos/geomgraph/NodeFactory.h>
21
#include <geos/geomgraph/Node.h>
22
23
using namespace geos::geom;
24
25
namespace geos {
26
namespace geomgraph { // geos.geomgraph
27
28
Node*
29
NodeFactory::createNode(const Coordinate& coord) const
30
0
{
31
0
    return new Node(coord, nullptr);
32
0
}
33
34
const NodeFactory&
35
NodeFactory::instance()
36
0
{
37
0
    static const NodeFactory nf;
38
0
    return nf;
39
0
}
40
41
42
} // namespace geos.geomgraph
43
} // namespace geos