SparseEntry.h
Go to the documentation of this file.
00001 // written by png shao wei
00002 #ifndef SPARSEENTRY_H
00003 #define SPARSEENTRY_H
00004 
00005 #include <cmath>
00006 #include <vector>
00007 #include "UniqueIndex.h"
00008 #include <iostream>
00009 
00010 using namespace std;
00011 
00012 class SparseEntry {
00013 
00014     public:
00015         vector<UniqueIndex> uniqueIndex;
00016 
00017         bool hasOnlyZeroUI();
00018 
00019         //SparseEntry operator=(const SparseEntry &rhs);
00020         //Need to overload these operators to use STL stable_sort
00021         bool operator==(const SparseEntry &rhs) const;
00022         bool operator<(const SparseEntry &rhs) const;
00023 
00024         std::ostream& write(std::ostream& out);
00025 };
00026 
00027 #endif


appl
Author(s): petercai
autogenerated on Tue Jan 7 2014 11:02:29