]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/include/scalar.hh
patch::: 1.3.119.jcn3
[lilypond.git] / flower / include / scalar.hh
index e8c58e684e06f106930f219865f8b9c492a4c52e..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 (file)
@@ -1,38 +0,0 @@
-/*
-  scalar.hh -- declare Scalar
-
-  source file of the Flower Library
-
-  (c)  1997--1998 Han-Wen Nienhuys <hanwen@stack.nl>
-*/
-
-
-#ifndef SCALAR_HH
-#define SCALAR_HH
-
-#include "string.hh"
-#include "real.hh"
-
-/// Perl -like scalar type.
-struct Scalar : public String {
-    
-  Scalar (Real r) : String (r) {}
-  Scalar (int i) : String (i) {}
-  Scalar (char c) : String (c) {}
-  Scalar (char const *c) : String (c) {}    
-  Scalar (String s):String (s) {}
-  Scalar (Rational);
-  operator Rational();
-  Scalar() {}
-  bool isnum_b() const;
-  operator Real();
-  operator int();
-  bool to_bool () const;
-
-  /**   perl -like string to bool conversion.
-   */
-  operator bool() const;
-};
-
-#endif // SCALAR_HH
-