コード例 #1
0
ファイル: data.hpp プロジェクト: chazmatazz/proto-mirror
 /**
  * This will copy the contents of a Tuple, instead of sharing them.
  *
  * \see Shared
  */
 inline Data copy() const {
     if (value_type == Type_tuple) return Data(asTuple().copy());
     return *this;
 }
コード例 #2
0
ファイル: data.hpp プロジェクト: chazmatazz/proto-mirror
 inline void resetTuple  () {
     asTuple  ().~Tuple  ();
     value_type = Type_undefined;
 }
コード例 #3
0
ファイル: PySparseTensor.hpp プロジェクト: ARK1988/nupic
 TIV __getstate__() const { return asTuple(); }