]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/include/scalar.hh
patch::: 1.3.119.jcn3
[lilypond.git] / flower / include / scalar.hh
index 1960e53d5614776bdddc2a66d5142bf8391c6c13..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 (file)
@@ -1,48 +0,0 @@
-/*
-  scalar.hh -- declare Scalar
-
-  source file of the Flower Library
-
-  (c)  1997--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
-*/
-
-
-#ifndef SCALAR_HH
-#define SCALAR_HH
-
-#include "string.hh"
-#include "real.hh"
-
-#error
-/// Perl -like scalar type.
-struct Scalar 
-{
-  Protected_scm scm_;
-public:
-  Scalar (Real r);
-  Scalar (int i);
-  Scalar (long l);
-  Scalar (char c);
-  Scalar (char const *c);
-  Scalar (String s);
-  Scalar (Rational);
-  operator Rational();
-  Scalar();
-  bool isnum_b() const;
-  bool isdir_b() const;
-  bool isint_b() const;
-  operator Real();
-  operator int();
-  bool to_bool () const;
-  Rational to_rat () const;
-  int to_i () const;
-  Real to_f () const;
-
-
-  /**   perl -like string to bool conversion.
-   */
-  operator bool() const;
-};
-
-#endif // SCALAR_HH
-