CYCLUS
Classes | Functions | Variables
hdf5_back_gen Namespace Reference

Classes

class  Assign
 
class  BinOp
 
class  Block
 
class  Case
 
class  CppGen
 
class  Decl
 
class  DeclAssign
 
class  Expr
 
class  ExprStmt
 
class  For
 
class  FuncCall
 
class  If
 
class  LeftUnaryOp
 
class  Line
 
class  Node
 
class  Nothing
 
class  PrettyFormatter
 
class  Raw
 
class  RightUnaryOp
 
class  Type
 
class  Var
 
class  Visitor
 

Functions

def case_template (t, read_x)
 
def convert_canonical (raw_list)
 
def flatten (canon)
 
def get_body (t, depth=0, prefix="", base_offset="buf+offset")
 
def get_decl (t, depth=0, prefix="")
 
def get_dim_shape (canon, start=0, depth=0)
 
def get_item_size (t, shape_array=None, vl_flag=False, depth=0)
 
def get_item_type (t, shape_array=None, vl_flag=False, prefix="", depth=0)
 
def get_prefix (base_prefix, parent_type, child_index)
 
def get_setup (t, depth=0, prefix="", HDF5_type="tb_type", child_index='j')
 
def get_teardown (t)
 
def get_variable (name, depth=0, prefix="")
 
def get_variation_body (t)
 
def get_variation_cond (t)
 
def hdf5_array_create (item_variable, rank=1, dims="&shape0")
 
def hdf5_create_compound (sizes)
 
def hdf5_insert (container_type, compound_var, types_sizes_dict)
 
def indent (text, prefix, predicate=None)
 
def list_body (t, depth=0, prefix="", base_offset="buf+offset")
 
def list_dependencies (canon)
 
def list_primitive_body (t, depth=0, prefix="", base_offset="buf+offset")
 
def main ()
 
def main_create ()
 
def main_query ()
 
def map_body (t, depth=0, prefix="", base_offset="buf+offset")
 
def no_vl (t)
 
def normal_close (t)
 
def pair_body (t, depth=0, prefix="", base_offset="buf+offset")
 
def primitive_setup (t, depth=0, prefix="")
 
def print_statement (t, identifier)
 
def reinterpret_cast_body (t, depth=0, prefix="", base_offset="buf+offset")
 
def resolve_unicode (item)
 
def set_body (t, depth=0, prefix="", base_offset="buf+offset")
 
def set_primitive_body (t, depth=0, prefix="", base_offset="buf+offset")
 
def set_string_body (t, depth=0, prefix="", base_offset="buf+offset")
 
def string_body (t, depth=0, prefix="", base_offset="buf+offset", variable=None)
 
def string_setup (depth=0, prefix="")
 
def typeid (t)
 
def uuid_body (t, depth=0, prefix="", base_offset="buf+offset")
 
def vec_string_body (t, depth=0, prefix="", base_offset="buf+offset")
 
def vector_body (t, depth=0, prefix="", base_offset="buf+offset")
 
def vector_primitive_body (t, depth=0, prefix="", base_offset="buf+offset")
 
def VL_ADD_BLOCK (t, item_var)
 
def vl_body (t, depth=0, prefix="", base_offset="buf+offset")
 
def vl_string_body (t, depth=0, prefix="", base_offset="buf+offset", variable=None)
 
def vl_string_setup (depth=0, prefix="")
 

Variables

dictionary BODIES
 
 canon = convert_canonical(row[7])
 
 CANON_SET = set()
 
dictionary CANON_TO_DB = {}
 
dictionary CANON_TO_NODE = {}
 
 cpp = row[2]
 
 current = tuple(RAW_TABLE[row])
 
 db = row[1]
 
dictionary DB_TO_CPP = {}
 
dictionary DB_TO_VL = {}
 
list DEBUG_TYPES = ["VECTOR_STRING"]
 
dictionary HDF5_PRIMITIVES
 
string INDENT = ' '
 
 io_error
 
 is_primitive = lambdat:isinstance(t.canon, str)
 
dictionary MAIN_DISPATCH
 
list NOT_VL = []
 
dictionary ORIGIN_DICT = {}
 
dictionary PRIMITIVE_SIZES
 
 raw_blob
 
 raw_string
 
 RAW_TABLE = resolve_unicode(json.load(f))
 
dictionary RAW_TYPES
 
int TABLE_END = 0
 
int TABLE_START = 0
 
list TEARDOWN_STACK = []
 
dictionary template_args
 
 TYPES_TABLE = list(tuple(row) for row in RAW_TABLE[TABLE_START:TABLE_END+1])
 
list variable_length_types = ["MAP", "LIST", "SET", "VECTOR"]
 
dictionary VARIATION_DICT = {}
 
list VARS = []
 
string VERSION = ""
 
dictionary VL_TO_FL_CONTAINERS
 

Detailed Description

This module generates HDF5 backend code found in src/hdf5_back.cc

Function Documentation

def hdf5_back_gen.case_template (   t,
  read_x 
)
Represents C++ case statement.

Parameters
----------
t : Type
    Depth 0 type.
read_x : Node
    Nodes of case statement body.

Returns
-------
Node
    Complete case statement block.

Definition at line 422 of file hdf5_back_gen.py.

def hdf5_back_gen.convert_canonical (   raw_list)
Converts JSON list of lists to tuple of tuples.

Parameters
----------
raw_list : list or str
    List to be converted, or str

Returns
-------
str or tuple
    Converted list, or str

Definition at line 332 of file hdf5_back_gen.py.

def hdf5_back_gen.flatten (   canon)

Definition at line 1112 of file hdf5_back_gen.py.

def hdf5_back_gen.get_body (   t,
  depth = 0,
  prefix = "",
  base_offset = "buf+offset" 
)
HDF5 Query: Get body nodes for a C++ type.

Parameters
----------
t : Type
    C++ type, canonical form.
depth : int, optional
    Depth relative to initial, depth 0 type.
prefix : str, optional
    Current prefix, determined by parent type.

Returns
-------
Node
    Body nodes required for the type.

Definition at line 993 of file hdf5_back_gen.py.

def hdf5_back_gen.get_decl (   t,
  depth = 0,
  prefix = "" 
)
HDF5 Query: Get node representing C++ type declaration. 

Declarations occur directly before bodies, created without recursion.

Parameters
----------
t : Type
    C++ type, canonical form.
depth : int, optional
    Depth relative to initial, depth 0 type.
prefix : str, optional
    Prefix determined by parent type.
    
Returns
-------
Node
    Declaration statement as a node.

Definition at line 600 of file hdf5_back_gen.py.

def hdf5_back_gen.get_dim_shape (   canon,
  start = 0,
  depth = 0 
)

Definition at line 1095 of file hdf5_back_gen.py.

def hdf5_back_gen.get_item_size (   t,
  shape_array = None,
  vl_flag = False,
  depth = 0 
)
Resolves item size recursively.

We can dig down into a type until we reach eventual primitives, and then
multiply the known sizes of those primitives by the lengths of their
containers. Container length is defined in the C++ shape array.

Parameters
----------
t : Type
    The type whose size is in question
shape_array : list, optional
    Dimensioned list of shape array indicies, same shape as t.canon
depth : int, optional
    Recursive depth counter

Returns
-------
size : str
    String of C++ expression representing t's size.

Definition at line 1448 of file hdf5_back_gen.py.

def hdf5_back_gen.get_item_type (   t,
  shape_array = None,
  vl_flag = False,
  prefix = "",
  depth = 0 
)
HDF5 Create: Build specified HDF5 type, recursively if necessary.

HDF5 types are Primitive, Compound, or Array. We handle each of these cases
here differently. Primitives are immediately returned by querying the 
HDF5_PRIMITIVES dictionary. Compound types are made up of multiple
Primitive or Compound types, so each of these child types must be declared
and created before the parent type can be created. This is accomplished via
recursion over every child type in the type's canon. It should be noted that
Compound types depend heavily on the size of those types they contain,
and this function relies on get_item_size for that information. Finally, 
Arrays can contain one Primitive or Compound type, and are created by 
specifying this child type, Array dimensions, and the Array length.

Parameters
----------
t : Type
    Type node representing C++ type
shape_array : list, optional
    Dimensioned list of current type shape
prefix : str, optional
    Used to name C++ variables throughout multiple levels of recursion
depth : int, optional
    Recursive depth counter

Returns
-------
node : Block
    Cumulative collection of nodes necessary for specified item type
opened_stack : list
    Cumulative collection of opened HDF5 types which must eventually be
    closed

Definition at line 1294 of file hdf5_back_gen.py.

def hdf5_back_gen.get_prefix (   base_prefix,
  parent_type,
  child_index 
)
Return the prefix of a C++ variable, appropriately formatted for depth.

Parameters
----------
base_prefix : str
    Prefix of direct parent type.
parent_type : Type
    Node of parent type.
child_index : int
    Index relative to direct parent.
    
Returns
-------
str
    New prefix.

Definition at line 403 of file hdf5_back_gen.py.

def hdf5_back_gen.get_setup (   t,
  depth = 0,
  prefix = "",
  HDF5_type = "tb_type",
  child_index = 'j' 
)
HDF5 Query: Get nodes representing C++ setup. 

Primitive setups are called directly, while template types are handled
recursively.

Parameters
----------
t : Type
    C++ type, canonical form.
depth : int, optional
    Depth relative to initial, depth 0 type.
prefix : str, optional
    Current prefix, determined by parent type.
HDF5_type : str
    hid_t type used to access HDF5 methods
child_index : str or int
    Index into parent type, None if only child
    
Returns
-------
Block
    Nodes required for type t setup.

Definition at line 472 of file hdf5_back_gen.py.

def hdf5_back_gen.get_teardown (   t)

Definition at line 1058 of file hdf5_back_gen.py.

def hdf5_back_gen.get_variable (   name,
  depth = 0,
  prefix = "" 
)
Return a C++ variable, appropriately formatted for depth.

Parameters
----------
name : str
    Base variable name.
depth : int, optional
    Depth of variable in relation to depth 0 type.
prefix : str, optional
    New prefix to add, based on direct parent type.
    
Returns
-------
str
    Variable name.

Definition at line 383 of file hdf5_back_gen.py.

def hdf5_back_gen.get_variation_body (   t)
HDF5 Create: Generate C++ if-statement body for a given type.

Called in coordination with get_variation_cond. For a given C++ type, this 
function returns the necessary C++ statements to create the HDF5 version 
of that type.

Parameters
----------
t : Type
    C++ type for which to create an if-statement body.

Returns
-------
body : Block
    Node containing necessary C++ statements for HDF5 creation.

Definition at line 1207 of file hdf5_back_gen.py.

def hdf5_back_gen.get_variation_cond (   t)
HDF5 Create: Generate C++ if-statement condition for a given type.

These if-statements are always a string of boolean expressions of the form
'shape[n]<1' or 'shape[n]>=1', where n is an index into the C++ shape array.
A shape index less than one (<1) denotes a variable length type, whereas an 
index greater than one (>=1) denotes fixed length type. These boolean
expressions are joined by '&&' operators. For instance, a type of 
VL_MAP_VL_STRING_VL_STRING would receive the condition 
'shape[0]<1 && shape[1]<1 && shape[2]<1'.

Parameters
----------
t : Type
    C++ type for the boolean condition.
    
Returns
-------
current_bool : BinOp
    Node representing the boolean condition.

Definition at line 1128 of file hdf5_back_gen.py.

def hdf5_back_gen.hdf5_array_create (   item_variable,
  rank = 1,
  dims = "&shape0" 
)
Node representation of the C++ H5Tarray_create2 method.

Parameters
----------
item_variable : str
    Variable name of HDF5 array item.
rank : int, optional
    Number of HDF5 array dimensions.
dims : str, optional
    Variable (by reference) of shape array belonging to HDF5 array

Returns
-------
node : FuncCall
    Node of H5Tarray_create2 function call.

Definition at line 1509 of file hdf5_back_gen.py.

def hdf5_back_gen.hdf5_create_compound (   sizes)
Node representation of the C++ HDF5 compound type creation function.

Parameters
----------
sizes : list
    List of type sizes, all must be str type.

Returns
-------
node : FuncCall
    H5Tcreate function call node.

Definition at line 1531 of file hdf5_back_gen.py.

def hdf5_back_gen.hdf5_insert (   container_type,
  compound_var,
  types_sizes_dict 
)
Node representation of the C++ H5Tinsert function.

This function is used to identify partitions within an already established
HDF5 Compound type. That is, we specify which inner types are located at
what memory location within the Compound type.

Parameters
----------
container_type : str
    Should be a key in the template_args dict
compound_var : str
    C++ variable to which the function should refer
types_sizes_dict : dict
    Dictionary of C++ type variables mapped to their size in memory
     
Returns
-------
node : Block
    Cumulative nodes for H5Tinsert function

Definition at line 1548 of file hdf5_back_gen.py.

def hdf5_back_gen.indent (   text,
  prefix,
  predicate = None 
)
This function copied from textwrap library version 3.3.

Adds 'prefix' to the beginning of selected lines in 'text'.
If 'predicate' is provided, 'prefix' will only be added to the lines
where 'predicate(line)' is True. If 'predicate' is not provided,
it will default to adding 'prefix' to all non-empty lines that do not
consist solely of whitespace characters.

Definition at line 1061 of file hdf5_back_gen.py.

def hdf5_back_gen.list_body (   t,
  depth = 0,
  prefix = "",
  base_offset = "buf+offset" 
)
HDF5 Query: Represents body of C++ list<non-primitive> types.

Definition at line 946 of file hdf5_back_gen.py.

def hdf5_back_gen.list_dependencies (   canon)
Return a list of a type's dependencies, each in canonical form.

Parameters
----------
canon : tuple or str
    the canonical form of the type
    
Returns
-------
list or str
    list of dependencies or str if base type is primitive  

Examples:
>>> list_dep("('PAIR', 'INT', 'VL_STRING')")
[('PAIR', 'INT', 'VL_STRING'), 'INT', 'VL_STRING']

Definition at line 360 of file hdf5_back_gen.py.

def hdf5_back_gen.list_primitive_body (   t,
  depth = 0,
  prefix = "",
  base_offset = "buf+offset" 
)
HDF5 Query: Represents body of C++ list<primitive> types.

Definition at line 921 of file hdf5_back_gen.py.

def hdf5_back_gen.main ( )

Definition at line 1689 of file hdf5_back_gen.py.

def hdf5_back_gen.main_create ( )
HDF5 Create: Generate CreateTable if-statements.

Definition at line 1623 of file hdf5_back_gen.py.

def hdf5_back_gen.main_query ( )
HDF5 Query: Generate Query case statement code.

Definition at line 1585 of file hdf5_back_gen.py.

def hdf5_back_gen.map_body (   t,
  depth = 0,
  prefix = "",
  base_offset = "buf+offset" 
)
HDF5 Query: Represents the body for C++ map type.

Definition at line 699 of file hdf5_back_gen.py.

def hdf5_back_gen.no_vl (   t)

Definition at line 1083 of file hdf5_back_gen.py.

def hdf5_back_gen.normal_close (   t)
Represents the generic close to an hdf5 type code block.

Definition at line 1037 of file hdf5_back_gen.py.

def hdf5_back_gen.pair_body (   t,
  depth = 0,
  prefix = "",
  base_offset = "buf+offset" 
)
HDF5 Query: Represents body for C++ pair type.

Definition at line 736 of file hdf5_back_gen.py.

def hdf5_back_gen.primitive_setup (   t,
  depth = 0,
  prefix = "" 
)
HDF5 Query: Represents necessary setup steps for C++ primitives.

Definition at line 445 of file hdf5_back_gen.py.

def hdf5_back_gen.print_statement (   t,
  identifier 
)
Generate C++ print statement for debugging generated code.

Definition at line 1201 of file hdf5_back_gen.py.

def hdf5_back_gen.reinterpret_cast_body (   t,
  depth = 0,
  prefix = "",
  base_offset = "buf+offset" 
)
HDF5 Query: Represents a body using the reinterpret_cast method.

This includes int, double, float, etc.

Definition at line 623 of file hdf5_back_gen.py.

def hdf5_back_gen.resolve_unicode (   item)
Translate unicode types into string types, if necessary.

This function exists to support Python 2.7.

Parameters
----------
item : int or str or list
    The list of items, or item to potentially encode.
    
Returns
-------
int or str or list
    The same type as was passed to the function, encoded if necessary

Definition at line 279 of file hdf5_back_gen.py.

def hdf5_back_gen.set_body (   t,
  depth = 0,
  prefix = "",
  base_offset = "buf+offset" 
)
HDF5 Query: Represents body of C++ set<non-primitive> types.

Definition at line 867 of file hdf5_back_gen.py.

def hdf5_back_gen.set_primitive_body (   t,
  depth = 0,
  prefix = "",
  base_offset = "buf+offset" 
)
HDF5 Query: Represents body of C++ set<primitive> types.

Definition at line 841 of file hdf5_back_gen.py.

def hdf5_back_gen.set_string_body (   t,
  depth = 0,
  prefix = "",
  base_offset = "buf+offset" 
)
HDF5 Query: Represents body of C++ set<std::string> types.

Definition at line 894 of file hdf5_back_gen.py.

def hdf5_back_gen.string_body (   t,
  depth = 0,
  prefix = "",
  base_offset = "buf+offset",
  variable = None 
)
HDF5 Query: Represents body for the C++ String primitive.

Definition at line 636 of file hdf5_back_gen.py.

def hdf5_back_gen.string_setup (   depth = 0,
  prefix = "" 
)
HDF5 Query: Represents necessary setup steps for C++ String.

Definition at line 450 of file hdf5_back_gen.py.

def hdf5_back_gen.typeid (   t)

Definition at line 1079 of file hdf5_back_gen.py.

def hdf5_back_gen.uuid_body (   t,
  depth = 0,
  prefix = "",
  base_offset = "buf+offset" 
)
HDF5 Query: Represents the body for the boost::uuid primitive.

Definition at line 677 of file hdf5_back_gen.py.

def hdf5_back_gen.vec_string_body (   t,
  depth = 0,
  prefix = "",
  base_offset = "buf+offset" 
)
HDF5 Query: Represents body of C++ Vector<std::string> types.

Definition at line 814 of file hdf5_back_gen.py.

def hdf5_back_gen.vector_body (   t,
  depth = 0,
  prefix = "",
  base_offset = "buf+offset" 
)
HDF5 Query: Represents body of C++ Vector<non-primitive> types.

Definition at line 783 of file hdf5_back_gen.py.

def hdf5_back_gen.vector_primitive_body (   t,
  depth = 0,
  prefix = "",
  base_offset = "buf+offset" 
)
HDF5 Query: Represents body of C++ Vector<primitive> types.

Definition at line 764 of file hdf5_back_gen.py.

def hdf5_back_gen.VL_ADD_BLOCK (   t,
  item_var 
)

Definition at line 1187 of file hdf5_back_gen.py.

def hdf5_back_gen.vl_body (   t,
  depth = 0,
  prefix = "",
  base_offset = "buf+offset" 
)
HDF5 Query: Represents the body for all C++ VL types.

Definition at line 689 of file hdf5_back_gen.py.

def hdf5_back_gen.vl_string_body (   t,
  depth = 0,
  prefix = "",
  base_offset = "buf+offset",
  variable = None 
)
HDF5 Query: Represents the body for the VL_String primitive.

Definition at line 664 of file hdf5_back_gen.py.

def hdf5_back_gen.vl_string_setup (   depth = 0,
  prefix = "" 
)
HDF5 Query: Represents necessary setup steps for C++ VL_String.

Definition at line 458 of file hdf5_back_gen.py.

Variable Documentation

dictionary hdf5_back_gen.BODIES
Initial value:
1 = {"INT": reinterpret_cast_body,
2  "DOUBLE": reinterpret_cast_body,
3  "FLOAT": reinterpret_cast_body,
4  "BOOL": reinterpret_cast_body,
5  "UUID": uuid_body,
6  "STRING": string_body,
7  "VL_STRING": vl_body,
8  "BLOB": vl_body,
9  "VECTOR_STRING": vec_string_body,
10  "MAP": map_body,
11  "PAIR": pair_body,
12  "LIST_INT": list_primitive_body,
13  "LIST_DOUBLE": list_primitive_body,
14  "LIST_FLOAT": list_primitive_body,
15  "LIST": list_body,
16  "SET_INT": set_primitive_body,
17  "SET_DOUBLE": set_primitive_body,
18  "SET_FLOAT": set_primitive_body,
19  "SET": set_body,
20  "VECTOR_INT": vector_primitive_body,
21  "VECTOR_DOUBLE": vector_primitive_body,
22  "VECTOR_FLOAT": vector_primitive_body,
23  "VECTOR": vector_body}

Definition at line 969 of file hdf5_back_gen.py.

hdf5_back_gen.canon = convert_canonical(row[7])

Definition at line 353 of file hdf5_back_gen.py.

hdf5_back_gen.CANON_SET = set()

Definition at line 326 of file hdf5_back_gen.py.

dictionary hdf5_back_gen.CANON_TO_DB = {}

Definition at line 328 of file hdf5_back_gen.py.

dictionary hdf5_back_gen.CANON_TO_NODE = {}

Definition at line 325 of file hdf5_back_gen.py.

hdf5_back_gen.cpp = row[2]

Definition at line 352 of file hdf5_back_gen.py.

hdf5_back_gen.current = tuple(RAW_TABLE[row])

Definition at line 315 of file hdf5_back_gen.py.

hdf5_back_gen.db = row[1]

Definition at line 351 of file hdf5_back_gen.py.

dictionary hdf5_back_gen.DB_TO_CPP = {}

Definition at line 327 of file hdf5_back_gen.py.

dictionary hdf5_back_gen.DB_TO_VL = {}

Definition at line 329 of file hdf5_back_gen.py.

list hdf5_back_gen.DEBUG_TYPES = ["VECTOR_STRING"]

Definition at line 1621 of file hdf5_back_gen.py.

dictionary hdf5_back_gen.HDF5_PRIMITIVES
Initial value:
1 = {"INT": "H5T_NATIVE_INT",
2  "DOUBLE": "H5T_NATIVE_DOUBLE",
3  "FLOAT": "H5T_NATIVE_FLOAT",
4  "BOOL": "H5T_NATIVE_CHAR",
5  "STRING": "CreateFLStrType({size})",
6  "BLOB": "sha1_type_",
7  "UUID": "uuid_type_"}

Definition at line 1273 of file hdf5_back_gen.py.

string hdf5_back_gen.INDENT = ' '

Definition at line 330 of file hdf5_back_gen.py.

hdf5_back_gen.io_error
Initial value:
1 = Raw(code=("throw IOError(\"the type for column \'\"+"
2  "std::string(field_names[i])+\"\' is not yet supported "
3  "in HDF5.\");"))

Definition at line 1603 of file hdf5_back_gen.py.

hdf5_back_gen.is_primitive = lambdat:isinstance(t.canon, str)

Definition at line 10 of file hdf5_back_gen.py.

dictionary hdf5_back_gen.MAIN_DISPATCH
Initial value:
1 = {"QUERY": main_query,
2  "CREATE": main_create}

Definition at line 1686 of file hdf5_back_gen.py.

list hdf5_back_gen.NOT_VL = []

Definition at line 1599 of file hdf5_back_gen.py.

dictionary hdf5_back_gen.ORIGIN_DICT = {}

Definition at line 1601 of file hdf5_back_gen.py.

dictionary hdf5_back_gen.PRIMITIVE_SIZES
Initial value:
1 = {"INT": "sizeof(int)",
2  "DOUBLE": "sizeof(double)",
3  "FLOAT": "sizeof(float)",
4  "BOOL": "sizeof(char)",
5  "VL_STRING": "CYCLUS_SHA1_SIZE",
6  "BLOB": "CYCLUS_SHA1_SIZE",
7  "UUID": "CYCLUS_UUID_SIZE"}

Definition at line 1281 of file hdf5_back_gen.py.

hdf5_back_gen.raw_blob
Initial value:
1 = Raw(code=("dbtypes[i]=BLOB;\n"
2  "field_types[i]=sha1_type_;\n"
3  "dst_sizes[i]=CYCLUS_SHA1_SIZE;\n"))

Definition at line 1614 of file hdf5_back_gen.py.

hdf5_back_gen.raw_string
Initial value:
1 = Raw(code=("dbtypes[i]=STRING;\n"
2  "field_types[i]=H5Tcopy(H5T_C_S1);\n"
3  "H5Tset_size(field_types[i], shape[0]);\n"
4  "H5Tset_strpad(field_types[i], H5T_STR_NULLPAD);\n"
5  "opened_types_.insert(field_types[i]);\n"
6  "dst_sizes[i]=sizeof(char)*shape[0];\n"))

Definition at line 1607 of file hdf5_back_gen.py.

hdf5_back_gen.RAW_TABLE = resolve_unicode(json.load(f))

Definition at line 309 of file hdf5_back_gen.py.

dictionary hdf5_back_gen.RAW_TYPES
Initial value:
1 = {"STRING": raw_string,
2  "BLOB": raw_blob}

Definition at line 1618 of file hdf5_back_gen.py.

hdf5_back_gen.TABLE_END = 0

Definition at line 313 of file hdf5_back_gen.py.

hdf5_back_gen.TABLE_START = 0

Definition at line 312 of file hdf5_back_gen.py.

list hdf5_back_gen.TEARDOWN_STACK = []

Definition at line 1034 of file hdf5_back_gen.py.

dictionary hdf5_back_gen.template_args
Initial value:
1 = {"MAP": ("key", "val"),
2  "VECTOR": ("elem",),
3  "SET": ("elem",),
4  "LIST": ("elem",),
5  "PAIR": ("first", "second")}

Definition at line 464 of file hdf5_back_gen.py.

hdf5_back_gen.TYPES_TABLE = list(tuple(row) for row in RAW_TABLE[TABLE_START:TABLE_END+1])

Definition at line 323 of file hdf5_back_gen.py.

list hdf5_back_gen.variable_length_types = ["MAP", "LIST", "SET", "VECTOR"]

Definition at line 470 of file hdf5_back_gen.py.

dictionary hdf5_back_gen.VARIATION_DICT = {}

Definition at line 1600 of file hdf5_back_gen.py.

list hdf5_back_gen.VARS = []

Definition at line 1035 of file hdf5_back_gen.py.

hdf5_back_gen.VERSION = ""

Definition at line 311 of file hdf5_back_gen.py.

dictionary hdf5_back_gen.VL_TO_FL_CONTAINERS
Initial value:
1 = {"VL_VECTOR": "VECTOR",
2  "VL_SET": "SET",
3  "VL_LIST": "LIST",
4  "VL_MAP": "MAP"}

Definition at line 1289 of file hdf5_back_gen.py.