Skip to content
This repository has been archived by the owner on Sep 1, 2023. It is now read-only.

Move repeated read / write logic to base Serializable class #709

Merged
merged 19 commits into from
Dec 5, 2015

Conversation

chetan51
Copy link
Contributor

@chetan51 chetan51 commented Dec 3, 2015

Fixes #708.

@numenta-ci
Copy link

By analyzing the blame information on this pull request, we identified @scottpurdy, @subutai and @breznak to be potential reviewers

@chetan51
Copy link
Contributor Author

chetan51 commented Dec 3, 2015

@scottpurdy Requesting an early review, before I update all the other classes that implement serialization. Is this approach okay?

#include <nupic/math/SparseBinaryMatrix.hpp>
#include <nupic/math/SparseMatrix.hpp>
#include <nupic/proto/SpatialPoolerProto.capnp.h>
#include <nupic/types/Types.hpp>

using namespace std;
using namespace nupic::base::serializable;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's generally bad practice to have using statements in headers since it brings the contents into scope for anything that includes this header.

@scottpurdy
Copy link
Contributor

done reviewing. The Serializable class looks great!

@chetan51
Copy link
Contributor Author

chetan51 commented Dec 3, 2015

@scottpurdy Thanks! I've incorporated your feedback. I'll update the remaining serializable classes now.

@@ -66,7 +67,7 @@ namespace nupic {
* }
*
*/
class SpatialPooler {
class SpatialPooler : public nupic::Serializable<SpatialPoolerProto> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we are already inside the nupic namespace so you shouldn't need to qualify Serializable

@chetan51
Copy link
Contributor Author

chetan51 commented Dec 4, 2015

@scottpurdy Ready for review.

@scottpurdy
Copy link
Contributor

👍

chetan51 added a commit that referenced this pull request Dec 5, 2015
Move repeated read / write logic to base Serializable class
@chetan51 chetan51 merged commit 16e9a91 into numenta:master Dec 5, 2015
@chetan51 chetan51 deleted the serializable branch December 5, 2015 00:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants