![]() |
OpenWalnut
1.5.0dev
|
Reads a hierarchical clustering from a FDG file. More...
#include <WReaderClustering.h>
Inheritance diagram for WReaderClustering:
Collaboration diagram for WReaderClustering:Public Member Functions | |
| WReaderClustering (std::string fname) | |
| Constructs and makes a new FDG reader for separate thread start. More... | |
| virtual | ~WReaderClustering () throw () |
| Destroys this instance and closes the file. More... | |
| virtual std::shared_ptr< WDataSetHierarchicalClustering > | read () |
| Reads the clustering file and creates a dataset out of it. More... | |
Public Member Functions inherited from WReader | |
| WReader (std::string fname) | |
| Creates a read object for file reading. More... | |
| OW_API_DEPRECATED void | setFileName (std::string fname) |
| Reset the file name and checks if it exists. More... | |
| void | setFilename (std::string fname) |
| Reset the file name and checks if it exists. More... | |
Protected Attributes | |
| std::map< size_t, WFiberCluster::SPtr > | m_clustering |
| Stores the hierarchical clustering map. More... | |
| std::map< size_t, WTreeNode::SPtr > | m_nodes |
| Stores the hierarchical clustering map. More... | |
| std::vector< std::string > | m_lines |
| The lines of the fdg file. More... | |
| std::shared_ptr< size_t > | m_level |
| The current hierarchy level the reader is reading. More... | |
Protected Attributes inherited from WReader | |
| std::string | m_fname |
| Absolute path of the file to read from. More... | |
Friends | |
| class | WReaderClusteringTest |
| Only UnitTests may be friends. More... | |
Reads a hierarchical clustering from a FDG file.
Definition at line 48 of file WReaderClustering.h.
|
explicit |
Constructs and makes a new FDG reader for separate thread start.
| fname | File name where to read data from |
| WDHNoSuchFile |
Definition at line 47 of file WReaderClustering.cpp.
|
virtual | |||||||||||||
Destroys this instance and closes the file.
Definition at line 52 of file WReaderClustering.cpp.
|
virtual |
Reads the clustering file and creates a dataset out of it.
Definition at line 57 of file WReaderClustering.cpp.
References m_clustering, WReader::m_fname, and m_nodes.
|
friend |
Only UnitTests may be friends.
Definition at line 53 of file WReaderClustering.h.
|
protected |
Stores the hierarchical clustering map.
Definition at line 79 of file WReaderClustering.h.
Referenced by read().
|
protected |
The current hierarchy level the reader is reading.
Definition at line 94 of file WReaderClustering.h.
|
protected |
The lines of the fdg file.
Definition at line 89 of file WReaderClustering.h.
|
protected |
Stores the hierarchical clustering map.
Definition at line 84 of file WReaderClustering.h.
Referenced by read().