File: int.h

package info (click to toggle)
icmake 13.05.01-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,132 kB
  • sloc: cpp: 11,595; fortran: 883; makefile: 853; sh: 546; pascal: 342
file content (37 lines) | stat: -rw-r--r-- 989 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef INCLUDED_INT_
#define INCLUDED_INT_

#include "../varbase/varbase.h"

class Int: public VarBase
{
    int d_value = 0;

    public:
        Int(int value = 0);                                             // 1.f
        
        ~Int() override;

    private:
        // these members *may* be overridden:

        int  vValue() const override;
        int &vValueRef() override;
        std::strong_ordering vOrder(VarBase const &rhs) const override;
        VarBase &vSubIs(VarBase const &rhs) override;

        // these members *must* be overridden:

        bool vEqual(VarBase const &rhs) const override;
        std::ostream &vInsertInto(std::ostream &out) const override;
        bool vBool() const override;
        VarBase &vAddIs(VarBase const &rhs) override;
        int vForcedInt() const override;
        std::string vto_string() const override;
        bool vIsString() const  override;
        VarBase *vcopy() const override;
};

#include "int1.f"
        
#endif