Skip to content

Commit

Permalink
Added models accessors
Browse files Browse the repository at this point in the history
  • Loading branch information
cassinaj committed Mar 16, 2015
1 parent d4983f0 commit bfb0d9d
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions include/fl/model/process/joint_process_model_id.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,8 @@ class JointProcessModel
*
* \param models Variadic list of shared pointers of the models
*/
template <typename ... Model>
JointProcessModel(Model&& ... models)
: models_(std::forward<Model>(models)...)
JointProcessModel(const Models& ... models)
: models_(models...)
{ }

/**
Expand Down Expand Up @@ -152,6 +151,16 @@ class JointProcessModel
return expand_input_dimension(CreateIndexSequence<sizeof...(Models)>());
}

std::tuple<Models...>& models()
{
return models_;
}

const std::tuple<Models...>& models() const
{
return models_;
}

protected:
/**
* \brief Contains the points to the sub-models which this joint model
Expand Down

0 comments on commit bfb0d9d

Please sign in to comment.