mutable
A Database System for Research and Fast Prototyping
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | Friends
m::storage::DataLayout::Leaf Struct Reference

The Leaf represents exactly one attribue. More...

#include <DataLayout.hpp>

Inheritance diagram for m::storage::DataLayout::Leaf:
[legend]
Collaboration diagram for m::storage::DataLayout::Leaf:
[legend]

Public Member Functions

const m::Typetype () const
 Returns the Type of this Leaf.
 
size_type index () const
 Returns the index assigned to this Leaf.
 
size_type num_tuples () const override
 

‍returns the number of tuples represented by an instance of this node


 
void accept (ConstDataLayoutVisitor &v) const override
 

Private Member Functions

 Leaf (const m::Type *type, size_type idx)
 

Private Attributes

const m::Typetype_
 

‍the Type of the attribute represented by this Leaf


 
size_type idx_
 

‍an index that must be unique within the entire DataLayout


 

Friends

struct DataLayout
 
struct INode
 

Detailed Description

The Leaf represents exactly one attribue.

It holds the Type of the Attribute together with a unique index. With the unique index it is possible to associate the Attribute to this Leaf.

Definition at line 72 of file DataLayout.hpp.

Constructor & Destructor Documentation

◆ Leaf()

m::storage::DataLayout::Leaf::Leaf ( const m::Type type,
size_type  idx 
)
inlineprivate

Definition at line 83 of file DataLayout.hpp.

Member Function Documentation

◆ accept()

void DataLayout::Leaf::accept ( ConstDataLayoutVisitor &  v) const
overridevirtual

Implements m::storage::DataLayout::Node.

Definition at line 22 of file DataLayout.cpp.

◆ index()

size_type m::storage::DataLayout::Leaf::index ( ) const
inline

Returns the index assigned to this Leaf.

Must be unique within the entire DataLayout.

Definition at line 89 of file DataLayout.hpp.

◆ num_tuples()

size_type m::storage::DataLayout::Leaf::num_tuples ( ) const
inlineoverridevirtual

‍returns the number of tuples represented by an instance of this node

Implements m::storage::DataLayout::Node.

Definition at line 91 of file DataLayout.hpp.

◆ type()

const m::Type * m::storage::DataLayout::Leaf::type ( ) const
inline

Returns the Type of this Leaf.

Definition at line 87 of file DataLayout.hpp.

Friends And Related Function Documentation

◆ DataLayout

friend struct DataLayout
friend

Definition at line 74 of file DataLayout.hpp.

◆ INode

friend struct INode
friend

Definition at line 75 of file DataLayout.hpp.

Field Documentation

◆ idx_

size_type m::storage::DataLayout::Leaf::idx_
private

‍an index that must be unique within the entire DataLayout

Definition at line 81 of file DataLayout.hpp.

◆ type_

const m::Type* m::storage::DataLayout::Leaf::type_
private

‍the Type of the attribute represented by this Leaf

Definition at line 79 of file DataLayout.hpp.


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