Skip to content
Snippets Groups Projects
Commit 7be9597b authored by Jan Trávníček's avatar Jan Trávníček
Browse files

refer to some default type in indexes

parent a1c63108
No related branches found
No related tags found
No related merge requests found
/*
* DefaultEdgeType.h
*
* Created on: Jan 12, 2017
* Author: Jan Travnicek
*/
#ifndef DEFAULT_EDGE_TYPE_H_
#define DEFAULT_EDGE_TYPE_H_
#include <object/Object.h>
typedef alib::Object DefaultEdgeType;
#endif /* DEFAULT_EDGE_TYPE_H_ */
/*
* DefaultNodeType.h
*
* Created on: Jan 12, 2017
* Author: Jan Travnicek
*/
#ifndef DEFAULT_NODE_TYPE_H_
#define DEFAULT_NODE_TYPE_H_
#include <object/Object.h>
typedef alib::Object DefaultNodeType;
#endif /* DEFAULT_NODE_TYPE_H_ */
......@@ -16,10 +16,11 @@
#include <algorithm>
#include <sstream>
 
#include <common/DefaultSymbolType.h>
#include <core/components.hpp>
#include <exception/CommonException.h>
 
#include <object/Object.h>
#include <object/UniqueObject.h>
#include <object/ObjectBase.h>
 
......@@ -38,7 +39,7 @@ class GeneralAlphabet;
* Represents regular expression parsed from the XML. Regular expression is stored
* as a tree of RegExpElement.
*/
template < class SymbolType = alib::Object >
template < class SymbolType = DefaultSymbolType >
class SuffixArray : public alib::ObjectBase, public std::Components < SuffixArray < SymbolType >, SymbolType, std::tuple < GeneralAlphabet >, std::tuple < > > {
protected:
std::vector < unsigned > m_data;
......
......@@ -16,6 +16,9 @@
#include <algorithm>
#include <sstream>
 
#include <common/DefaultNodeType.h>
#include <common/DefaultEdgeType.h>
#include <core/components.hpp>
#include <exception/CommonException.h>
 
......@@ -25,7 +28,6 @@
 
#include <sax/FromXMLParserHelper.h>
#include <core/xmlApi.hpp>
#include <primitive/Bool.h>
 
#include <container/ObjectsSet.h>
#include <container/ObjectsTrie.h>
......@@ -41,7 +43,7 @@ class NodeAlphabet;
* Represents regular expression parsed from the XML. Regular expression is stored
* as a tree of RegExpElement.
*/
template < class EdgeType = alib::Object, class NodeType = alib::Object >
template < class EdgeType = DefaultEdgeType, class NodeType = DefaultNodeType >
class SuffixTrie : public alib::ObjectBase, public std::Components < SuffixTrie < EdgeType, NodeType >, EdgeType, std::tuple < EdgeAlphabet >, std::tuple < >, NodeType, std::tuple < NodeAlphabet >, std::tuple < > > {
protected:
std::trie < EdgeType, std::variant < void, NodeType > > m_trie;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment