Squashed messages from 9 commits:
9.
Properties now uses PropertyFamily and contained classes.
Fetching,seting,clearing properties can be done with PropertyFamilyKey or PropertyTypeKey.
Hierarchy of newly added clases is:
Vertices -n-> PropertyFamily {name: String} <-1-n-> PropertyType {type: Property::Flags}
Edges -n-> PropertyFamily {name: String} <-1-n-> PropertyType {type: Property::Flags}
PropertyFamilyKey -> PropertyType
PropertyTypeKey -> PropertyType
PropertyType t0,t1;
let t0!=t1 be true
let t0.family==t1.family be true
then next is true
PropertyTypeKey{&t0}!=PropertyTypeKey{&t1}
PropertyFamilyKey{&t0}==PropertyFamilyKey{&t1}
PropertyFamilyKey{&t0}==PropertyTypeKey{&t1}
PropertyTypeKey{&t0}==PropertyFamilyKey{&t1}
8.
Intermedate commit.
Noticed that integration queries throw SEGFAULT.
7.
Defined interface for indexes.
Fixed three memory leaks.
Fixed integration_queries test which now passes.
6.
Commit which return Xorshift128plus to valid shape.
5.
Tmp commit.
4.
Label Index is compiling.
3.
tmp
2.
Vertex::Accessor now updates Label index.
1.
Applied changes for code review.
46 lines
1.5 KiB
C++
46 lines
1.5 KiB
C++
#pragma once
|
|
|
|
enum class Flags : unsigned
|
|
{
|
|
// Type | Mask
|
|
// -----------+----------------------------------------
|
|
// Null | 0000 0000 0000 0000 0000 0000 0000 0000
|
|
// -----------+----------------------------------------
|
|
// Bool | 0000 0000 0000 0000 0000 0000 0000 0001
|
|
// + True | 0000 0000 0000 0000 0000 0000 0000 0011
|
|
// + False | 0000 0000 0000 0000 0000 0000 0000 0101
|
|
// -----------+----------------------------------------
|
|
// String | 0000 0000 0000 0000 0000 0000 0000 1000
|
|
// -----------+----------------------------------------
|
|
// Number | 0000 0000 0000 0000 0000 0000 0001 0000
|
|
// + Integral | 0000 0000 0000 0000 0000 0000 0011 0000
|
|
// + Int32 | 0000 0000 0000 0000 0000 0000 0111 0000
|
|
// + Int64 | 0000 0000 0000 0000 0000 0000 1011 0000
|
|
// + Floating | 0000 0000 0000 0000 0000 0001 0001 0000
|
|
// + Float | 0000 0000 0000 0000 0000 0011 0001 0000
|
|
// + Double | 0000 0000 0000 0000 0000 0101 0001 0000
|
|
// -----------+----------------------------------------
|
|
// Array | 0000 0000 0000 0000 0001 0000 0000 0000
|
|
// -----------+----------------------------------------
|
|
|
|
Null = 0x0,
|
|
Bool = 0x1,
|
|
True = 0x2 | Bool,
|
|
False = 0x4 | Bool,
|
|
|
|
String = 0x8,
|
|
|
|
Number = 0x10,
|
|
Integral = 0x20 | Number,
|
|
Int32 = 0x40 | Integral,
|
|
Int64 = 0x80 | Integral,
|
|
|
|
Floating = 0x100 | Number,
|
|
Float = 0x200 | Floating,
|
|
Double = 0x400 | Floating,
|
|
|
|
Array = 0x1000,
|
|
|
|
type_mask = 0xFFF
|
|
};
|