Code Cleanup

- Added declared but unimplemented copy constructors and assignment
  operators.
This commit is contained in:
Paul Beckingham
2009-06-23 00:00:50 -04:00
parent c6a56d444e
commit e59e35ae29
9 changed files with 29 additions and 0 deletions

View File

@@ -39,6 +39,9 @@ public:
Cmd (const std::string&); // Default constructor Cmd (const std::string&); // Default constructor
~Cmd (); // Destructor ~Cmd (); // Destructor
Cmd (const Cmd&);
Cmd& operator= (const Cmd&);
bool valid (const std::string&); bool valid (const std::string&);
bool validCustom (const std::string&); bool validCustom (const std::string&);
void parse (const std::string&); void parse (const std::string&);

View File

@@ -37,6 +37,9 @@ public:
Config (); Config ();
Config (const std::string&); Config (const std::string&);
Config (const Config&);
Config& operator= (const Config&);
bool load (const std::string&); bool load (const std::string&);
void createDefault (const std::string&); void createDefault (const std::string&);
void setDefaults (); void setDefaults ();

View File

@@ -43,6 +43,9 @@ public:
Context (); // Default constructor Context (); // Default constructor
~Context (); // Destructor ~Context (); // Destructor
Context (const Context&);
Context& operator= (const Context&);
void initialize (int, char**); // all startup void initialize (int, char**); // all startup
void initialize (); // for reinitializing void initialize (); // for reinitializing
int run (); // task classic int run (); // task classic

View File

@@ -45,6 +45,9 @@ public:
Cell (const double); Cell (const double);
Cell (const std::string&); Cell (const std::string&);
Cell (const Cell&);
Cell& operator= (const Cell&);
operator bool () const; operator bool () const;
operator char () const; operator char () const;
operator int () const; operator int () const;
@@ -72,6 +75,9 @@ public:
Grid (); Grid ();
~Grid (); ~Grid ();
Grid (const Grid&);
Grid& operator= (const Grid&);
void add (const unsigned int, const unsigned int, const bool); void add (const unsigned int, const unsigned int, const bool);
void add (const unsigned int, const unsigned int, const char); void add (const unsigned int, const unsigned int, const char);
void add (const unsigned int, const unsigned int, const int); void add (const unsigned int, const unsigned int, const int);

View File

@@ -39,6 +39,9 @@ public:
Sequence (const std::string&); // Parse Sequence (const std::string&); // Parse
~Sequence (); // Destructor ~Sequence (); // Destructor
Sequence (const Sequence&);
Sequence& operator= (const Sequence&);
bool valid (const std::string&) const; bool valid (const std::string&) const;
void parse (const std::string&); void parse (const std::string&);
void combine (const Sequence&); void combine (const Sequence&);

View File

@@ -36,6 +36,9 @@ public:
StringTable (); // Default constructor StringTable (); // Default constructor
~StringTable (); // Destructor ~StringTable (); // Destructor
StringTable (const StringTable&);
StringTable& operator= (const StringTable&);
void load (const std::string&); void load (const std::string&);
std::string get (int, const std::string&); std::string get (int, const std::string&);
}; };

View File

@@ -43,6 +43,9 @@ public:
TDB (); // Default constructor TDB (); // Default constructor
~TDB (); // Destructor ~TDB (); // Destructor
TDB (const TDB&);
TDB& operator= (const TDB&);
void clear (); void clear ();
void location (const std::string&); void location (const std::string&);

View File

@@ -52,6 +52,9 @@ public:
Table (); Table ();
virtual ~Table (); virtual ~Table ();
Table (const Table&);
Table& operator= (const Table&);
void setTableColor (Text::color, Text::color); void setTableColor (Text::color, Text::color);
void setTableFg (Text::color); void setTableFg (Text::color);
void setTableBg (Text::color); void setTableBg (Text::color);

View File

@@ -35,6 +35,8 @@ class Timer
public: public:
Timer (const std::string&); Timer (const std::string&);
~Timer (); ~Timer ();
Timer (const Timer&);
Timer& operator= (const Timer&);
private: private:
std::string mDescription; std::string mDescription;