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



4.1.2 Constructors

— Constructor: explicit method::method (int length = 0, int bells = 0, char* name = "Untitled");

This constructor creates an empty method on bells bells, with length changes in the lead, and with name name. All the bells stay in the same place for the entire lead.

— Constructor: method::method (const char* pn, int bells, char* name = "Untitled");
— Constructor: method::method (const string& pn, int bells, const string& name = "Untitled");

This constructor creates a method on bells bells from the given place notation, which should be an entire lead. The method is given the base name name. For information on how to specify the place notation, see the discussion of interpret_pn in Other functions in row.h.

— Constructor: method::method (const method& m);

This is the copy constructor.