My Project
Public Member Functions | Private Attributes
PUtilInt Class Reference

Public Member Functions

 PUtilInt ()
 
 PUtilInt (int i)
 
 ~PUtilInt ()
 
PUtilBasecopy () const
 
CanonicalForm getval () const
 
int getintval () const
 
bool isInt () const
 
bool isCF () const
 
bool isVar () const
 
- Public Member Functions inherited from PUtilBase
 PUtilBase ()
 
virtual ~PUtilBase ()
 
virtual PUtilBasecopy () const =0
 
virtual CanonicalForm getval () const =0
 
virtual int getintval () const =0
 
virtual bool isInt () const =0
 
virtual bool isCF () const =0
 
virtual bool isVar () const =0
 

Private Attributes

int val
 

Detailed Description

Definition at line 28 of file parseutil.cc.

Constructor & Destructor Documentation

◆ PUtilInt() [1/2]

PUtilInt::PUtilInt ( )
inline

Definition at line 33 of file parseutil.cc.

33{ val = 0; }
int val
Definition: parseutil.cc:31

◆ PUtilInt() [2/2]

PUtilInt::PUtilInt ( int  i)
inline

Definition at line 34 of file parseutil.cc.

34{ val = i; }
int i
Definition: cfEzgcd.cc:132

◆ ~PUtilInt()

PUtilInt::~PUtilInt ( )
inline

Definition at line 35 of file parseutil.cc.

35{}

Member Function Documentation

◆ copy()

PUtilBase * PUtilInt::copy ( ) const
inlinevirtual

Implements PUtilBase.

Definition at line 36 of file parseutil.cc.

36{ return new PUtilInt( val ); }
PUtilInt()
Definition: parseutil.cc:33

◆ getintval()

int PUtilInt::getintval ( ) const
inlinevirtual

Implements PUtilBase.

Definition at line 38 of file parseutil.cc.

38{ return val; }

◆ getval()

CanonicalForm PUtilInt::getval ( ) const
inlinevirtual

Implements PUtilBase.

Definition at line 37 of file parseutil.cc.

37{ return CanonicalForm( val ); }
factory's main class
Definition: canonicalform.h:86

◆ isCF()

bool PUtilInt::isCF ( ) const
inlinevirtual

Implements PUtilBase.

Definition at line 40 of file parseutil.cc.

40{ return false; }

◆ isInt()

bool PUtilInt::isInt ( ) const
inlinevirtual

Implements PUtilBase.

Definition at line 39 of file parseutil.cc.

39{ return true; }

◆ isVar()

bool PUtilInt::isVar ( ) const
inlinevirtual

Implements PUtilBase.

Definition at line 41 of file parseutil.cc.

41{ return false; }

Field Documentation

◆ val

int PUtilInt::val
private

Definition at line 31 of file parseutil.cc.


The documentation for this class was generated from the following file: