jubatus_core  0.1.2
Jubatus: Online machine learning framework for distributed environment
Static Public Member Functions | List of all members
jubatus::core::graph::graph_factory Class Reference

#include <graph_factory.hpp>

Collaboration diagram for jubatus::core::graph::graph_factory:
Collaboration graph

Static Public Member Functions

static jubatus::util::lang::shared_ptr< graph_wo_indexcreate_graph (const std::string &name, const common::jsonconfig::config &param)
 

Detailed Description

Definition at line 37 of file graph_factory.hpp.

Member Function Documentation

shared_ptr< graph_wo_index > jubatus::core::graph::graph_factory::create_graph ( const std::string &  name,
const common::jsonconfig::config param 
)
static

Definition at line 31 of file graph_factory.cpp.

References JUBATUS_EXCEPTION.

33  {
34  if (name == "graph_wo_index") {
35  return shared_ptr<graph_wo_index>(new graph_wo_index(
36  common::jsonconfig::config_cast_check<graph_wo_index::config>(param)));
37  } else {
38  throw JUBATUS_EXCEPTION(unknown_graph("unknown method name: " + name));
39  }
40 }
#define JUBATUS_EXCEPTION(e)
Definition: exception.hpp:79

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