Jazz 1.26.+
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
jazz_bebop::Space Class Reference

Space: The Bebop object that belongs to a hierarchy. More...

#include <space.h>

Inheritance diagram for jazz_bebop::Space:
jazz_core::Snippet jazz_elements::Tuple jazz_elements::Block jazz_elements::StaticBlockHeader jazz_models::Concept jazz_models::DataSpace jazz_models::SemSpace

Public Member Functions

 Space (pBaseAPI p_owner)
 Space: Constructor.
 
 ~Space ()
 Space: Destructor.
 
- Public Member Functions inherited from jazz_core::Snippet
int get_state ()
 
bool get_block (int idx, SnippetText &snip_text)
 
bool get_block (pChar name, SnippetText &snip_text)
 
int object_size ()
 
void * get_object ()
 
pBlock get_block (int idx)
 
- Public Member Functions inherited from jazz_elements::Tuple
StatusCode new_tuple (int num_items, pBlock blocks[], Name p_names[], int num_bytes, AttributeMap *att=nullptr)
 
char * item_name (int idx)
 
int index (pChar name)
 
pBlock get_block (int idx)
 
bool is_a (pKind kind)
 
int audit ()
 
- Public Member Functions inherited from jazz_elements::Block
void set_dimensions (int *p_dim)
 
void get_dimensions (int *p_dim)
 
bool validate_index (int *p_idx)
 
int validate_offset (int offset)
 
int get_offset (int *p_idx)
 
void get_index (int offset, int *p_idx)
 
char * get_string (int *p_idx)
 
char * get_string (int offset)
 
void set_string (int *p_idx, const char *p_str)
 
void set_string (int offset, const char *p_str)
 
char * get_attribute (int attribute_id)
 
void set_attributes (AttributeMap *all_att)
 
void get_attributes (AttributeMap *all_att)
 
void init_string_buffer ()
 
bool find_NAs_in_tensor ()
 
int * align64bit (uintptr_t ipt)
 Align a pointer (as uintptr_t) to the next 8 byte boundary assuming the block is aligned.
 
int * p_attribute_keys ()
 
pStringBuffer p_string_buffer ()
 
int get_string_offset (pStringBuffer psb, const char *p_str)
 
bool is_a_filter ()
 Check (in depth) the validity of a filter.
 
bool can_filter (pBlock p_block)
 
void close_block (int set_has_NA=SET_HAS_NA_FALSE, bool set_hash=true, bool set_time=true)
 
bool check_hash ()
 

Data Fields

std::map< stdName, std::string > keys
 An attribute that is a map of names to other Spaces or strings.
 
- Data Fields inherited from jazz_elements::StaticBlockHeader
int cell_type
 The type for the cells in the tensor. See CELL_TYPE_*.
 
int size
 The total number of cells in the tensor.
 
TimePoint created
 Timestamp when the block was created.
 
int rank
 The number of dimensions.
 
TensorDim range
 The dimensions of the tensor in terms of ranges (Max. size is 2 Gb.)
 
int num_attributes
 Number of elements in the JazzAttributesMap.
 
int total_bytes
 Total size of the block everything included.
 
bool has_NA
 If true, at least one value is a NA and block requires NA-aware arithmetic.
 
uint64_t hash64
 Hash of everything but the header.
 
Tensor tensor
 A tensor for type cell_type and dimensions set by Block.set_dimensions()
 

Detailed Description

Space: The Bebop object that belongs to a hierarchy.

Space: Extends Snippet with:

- A parent defining a hierarchical structure
- An address (a locator)
- A kind
- Casting mechanisms across kinds
- operators: is (=), get (<-), key (.), inside ({..}), within ([..]), call ((..)) and after (|>)
- properties: keys (a dictionary to children and settings), src (the source code)

Spaces are a hierarchy, since they have a parent and children. Both are store in the keys property.

Constructor & Destructor Documentation

◆ Space()

jazz_bebop::Space::Space ( pBaseAPI  p_owner)

Space: Constructor.

Parameters
p_ownerA pointer to the BaseAPI that owns the Space.

The documentation for this class was generated from the following files: