File tree Expand file tree Collapse file tree 13 files changed +62
-61
lines changed
Expand file tree Collapse file tree 13 files changed +62
-61
lines changed Original file line number Diff line number Diff line change 1- #ifndef INCLUDED_CFG_JAGGED_ARRAY
2- #define INCLUDED_CFG_JAGGED_ARRAY
1+ #ifndef INCLUDED_FRAS_ARRAY_JAGGED_ARRAY
2+ #define INCLUDED_FRAS_ARRAY_JAGGED_ARRAY
33
4- namespace cfg {
4+ namespace fras {
55
66/* * An abstract class that provides an interface for jagged array implementations. */
77class JaggedArray
Original file line number Diff line number Diff line change 1- #ifndef INCLUDED_CFG_JAGGED_ARRAY_BP
2- #define INCLUDED_CFG_JAGGED_ARRAY_BP
1+ #ifndef INCLUDED_FRAS_ARRAY_JAGGED_ARRAY_BP
2+ #define INCLUDED_FRAS_ARRAY_JAGGED_ARRAY_BP
33
4- #include " cfg/jagged_array.hpp"
4+ #include " fras/array/jagged_array.hpp"
5+ #include < cstdint>
56
6- namespace cfg {
7+ namespace fras {
78
89/* *
910 * An abstract class that provides an interface for jagged array implementations based on bit packing.
Original file line number Diff line number Diff line change 1- #ifndef INCLUDED_CFG_JAGGED_ARRAY_BP_INDEX
2- #define INCLUDED_CFG_JAGGED_ARRAY_BP_INDEX
1+ #ifndef INCLUDED_FRAS_ARRAY_JAGGED_ARRAY_BP_INDEX
2+ #define INCLUDED_FRAS_ARRAY_JAGGED_ARRAY_BP_INDEX
33
4- #include " cfg /jagged_array_bp.hpp"
4+ #include " fras/array /jagged_array_bp.hpp"
55
6- namespace cfg {
6+ namespace fras {
77
88/* *
99 * Implements the JaggedArrayBp abstract class using index-based bit packing.
Original file line number Diff line number Diff line change 1- #ifndef INCLUDED_CFG_JAGGED_ARRAY_BP_MONO
2- #define INCLUDED_CFG_JAGGED_ARRAY_BP_MONO
1+ #ifndef INCLUDED_FRAS_ARRAY_JAGGED_ARRAY_BP_MONO
2+ #define INCLUDED_FRAS_ARRAY_JAGGED_ARRAY_BP_MONO
33
44#include < algorithm>
5- #include " cfg /jagged_array_bp.hpp"
5+ #include " fras/array /jagged_array_bp.hpp"
66#include < sdsl/bit_vectors.hpp>
77#include < sdsl/util.hpp>
88
9- namespace cfg {
9+ namespace fras {
1010
1111/* *
1212 * Implements the JaggedArrayBp abstract class using a monotonic sequence of
Original file line number Diff line number Diff line change 1- #ifndef INCLUDED_CFG_JAGGED_ARRAY_BP_OPT
2- #define INCLUDED_CFG_JAGGED_ARRAY_BP_OPT
1+ #ifndef INCLUDED_FRAS_ARRAY_JAGGED_ARRAY_BP_OPT
2+ #define INCLUDED_FRAS_ARRAY_JAGGED_ARRAY_BP_OPT
33
44#include < algorithm>
5- #include " cfg /jagged_array_bp.hpp"
5+ #include " fras/array /jagged_array_bp.hpp"
66#include < sdsl/bit_vectors.hpp>
77#include < sdsl/util.hpp>
88
9- namespace cfg {
9+ namespace fras {
1010
1111/* *
1212 * Implements the JaggedArrayBp abstract class using the optimal packing size
Original file line number Diff line number Diff line change 1- #ifndef INCLUDED_CFG_JAGGED_ARRAY_INT
2- #define INCLUDED_CFG_JAGGED_ARRAY_INT
1+ #ifndef INCLUDED_FRAS_ARRAY_JAGGED_ARRAY_INT
2+ #define INCLUDED_FRAS_ARRAY_JAGGED_ARRAY_INT
33
44#include < cstddef>
55#include < cstdlib>
66#include < malloc.h>
77#include < new>
8- #include " cfg /jagged_array.hpp"
8+ #include " fras/array /jagged_array.hpp"
99
10- namespace cfg {
10+ namespace fras {
1111
1212/* * Implements the jagged array abstract class using int arrays. */
1313class JaggedArrayInt : public JaggedArray
Original file line number Diff line number Diff line change 1- #ifndef INCLUDED_CFG_CFG
2- #define INCLUDED_CFG_CFG
1+ #ifndef INCLUDED_FRAS_CFG_CFG
2+ #define INCLUDED_FRAS_CFG_CFG
33
44#include < cstdint>
55#include < string>
66
7- namespace cfg {
7+ namespace fras {
88
99/* * Parses different grammar-compressed CFGs into a naive encoding. */
1010template <class JaggedArray_T >
Original file line number Diff line number Diff line change 1- #ifndef INCLUDED_CFG_RANDOM_ACCESS
2- #define INCLUDED_CFG_RANDOM_ACCESS
1+ #ifndef INCLUDED_FRAS_CFG_RANDOM_ACCESS
2+ #define INCLUDED_FRAS_CFG_RANDOM_ACCESS
33
44#include < cstdint>
55#include < ostream>
66#include < stack>
77
8- namespace cfg {
8+ namespace fras {
99
1010/* * An abstract class that adds random access support to a CFG. */
1111template <class CFG_T >
Original file line number Diff line number Diff line change 1- #ifndef INCLUDED_CFG_RANDOM_ACCESS_BV
2- #define INCLUDED_CFG_RANDOM_ACCESS_BV
1+ #ifndef INCLUDED_FRAS_CFG_RANDOM_ACCESS_BV
2+ #define INCLUDED_FRAS_CFG_RANDOM_ACCESS_BV
33
4- #include " cfg/random_access.hpp"
4+ #include " fras/ cfg/random_access.hpp"
55
6- namespace cfg {
6+ namespace fras {
77
88/* *
99 * Indexes a CFG for random access using a bit vector.
Original file line number Diff line number Diff line change 1- #ifndef INCLUDED_CFG_RANDOM_ACCESS_SD
2- #define INCLUDED_CFG_RANDOM_ACCESS_SD
1+ #ifndef INCLUDED_FRAS_CFG_RANDOM_ACCESS_SD
2+ #define INCLUDED_FRAS_CFG_RANDOM_ACCESS_SD
33
4- #include " cfg/random_access.hpp"
5- #include " cfg /jagged_array_bp_index.hpp"
6- #include " cfg /jagged_array_bp_mono.hpp"
7- #include " cfg /jagged_array_int.hpp"
4+ #include " fras/ cfg/random_access.hpp"
5+ #include " fras/array /jagged_array_bp_index.hpp"
6+ #include " fras/array /jagged_array_bp_mono.hpp"
7+ #include " fras/array /jagged_array_int.hpp"
88#include < sdsl/bit_vectors.hpp>
99#include < sdsl/util.hpp>
1010
11- namespace cfg {
11+ namespace fras {
1212
1313/* *
1414 * Indexes a CFG for random access using a bit vector.
You can’t perform that action at this time.
0 commit comments