Next: , Previous: row Derivation, Up: The row Class



3.5.2 Constructors

— Constructor: row::row (void);

This constructs an empty row.

— Constructor: explicit row::row (int bells);

This constructs an empty row, where bells is the number of bells which the row is to contain. Note that it is not initialised to anything.

— Constructor: row::row (const char* s);
— Constructor: row::row (const string& s);

This constructs a row from a string, which should be the textual representation of the row you wish to construct, for example "135246" or "2143658709TE". If the string does not contain a valid row, and if exceptions are enabled, an exception of class row::invalid is thrown.

— Constructor: row::row (const row& r);

This is the copy constructor; it creates a copy of the given row.