Brush C++ API
A flexible interpretable machine learning framework
Loading...
Searching...
No Matches
Brush::Simpl::HashStorage Class Reference

#include <inexact.h>

Collaboration diagram for Brush::Simpl::HashStorage:

Public Member Functions

 HashStorage (int numPlanes=10)
 ~HashStorage ()
void append (const int &storage_n, const size_t &key, const tree< Brush::Node > Tree)
vector< tree< Node > > getList (const int &storage_n, const size_t &key)
void clear ()
vector< size_t > keys (const int &storage_n)
void print (const vector< string > &prefix, Util::CsvWriter &log) const
 writes one row per stored tree: prefix..., plane, key, tree

Private Attributes

vector< map< size_t, vector< tree< Node > > > > storage

Detailed Description

Definition at line 18 of file inexact.h.

Constructor & Destructor Documentation

◆ HashStorage()

Brush::Simpl::HashStorage::HashStorage ( int numPlanes = 10)
inline

Definition at line 20 of file inexact.h.

Here is the caller graph for this function:

◆ ~HashStorage()

Brush::Simpl::HashStorage::~HashStorage ( )
inline

Definition at line 26 of file inexact.h.

Member Function Documentation

◆ append()

void Brush::Simpl::HashStorage::append ( const int & storage_n,
const size_t & key,
const tree< Brush::Node > Tree )
inline

Definition at line 28 of file inexact.h.

◆ clear()

void Brush::Simpl::HashStorage::clear ( )
inline

Definition at line 89 of file inexact.h.

◆ getList()

vector< tree< Node > > Brush::Simpl::HashStorage::getList ( const int & storage_n,
const size_t & key )
inline

Definition at line 81 of file inexact.h.

◆ keys()

vector< size_t > Brush::Simpl::HashStorage::keys ( const int & storage_n)
inline

Definition at line 95 of file inexact.h.

◆ print()

void Brush::Simpl::HashStorage::print ( const vector< string > & prefix,
Util::CsvWriter & log ) const
inline

writes one row per stored tree: prefix..., plane, key, tree

Definition at line 104 of file inexact.h.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ storage

vector<map<size_t, vector<tree<Node> > > > Brush::Simpl::HashStorage::storage
private

Definition at line 123 of file inexact.h.


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