My Project
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes
MapPair Class Reference

class MapPair More...

#include <cf_map.h>

Public Member Functions

 MapPair (const Variable &v, const CanonicalForm &s)
 
 MapPair ()
 
 MapPair (const MapPair &p)
 
 ~MapPair ()
 
MapPairoperator= (const MapPair &p)
 MapPair & MapPair::operator = ( const MapPair & p ) More...
 
Variable var () const
 
CanonicalForm subst () const
 

Private Attributes

Variable V
 
CanonicalForm S
 

Detailed Description

class MapPair

class MapPair - stores one mapping pair (Variable -> CanonicalForm).

This class is only used to store such pairs. It has no methods to transform a CanonicalForm as the class CFMap has.

V, S: the pair (V -> S) inline method

Variable var () const CanonicalForm subst () const

var(), subst() - selectors, return V and P, resp.

Definition at line 49 of file cf_map.h.

Constructor & Destructor Documentation

◆ MapPair() [1/3]

MapPair::MapPair ( const Variable v,
const CanonicalForm s 
)
inline

Definition at line 55 of file cf_map.h.

55: V(v), S(s) {}
CanonicalForm S
Definition: cf_map.h:53
Variable V
Definition: cf_map.h:52
const CanonicalForm int s
Definition: facAbsFact.cc:51
const Variable & v
< [in] a sqrfree bivariate poly
Definition: facBivar.h:39

◆ MapPair() [2/3]

MapPair::MapPair ( )
inline

Definition at line 56 of file cf_map.h.

56: V(), S(1) {}

◆ MapPair() [3/3]

MapPair::MapPair ( const MapPair p)
inline

Definition at line 57 of file cf_map.h.

57: V(p.V), S(p.S) {}
int p
Definition: cfModGcd.cc:4078

◆ ~MapPair()

MapPair::~MapPair ( )
inline

Definition at line 58 of file cf_map.h.

58{}

Member Function Documentation

◆ operator=()

MapPair & MapPair::operator= ( const MapPair p)

MapPair & MapPair::operator = ( const MapPair & p )

MapPair::operator = - assignment operator.

Definition at line 28 of file cf_map.cc.

29{
30 if ( this != &p ) {
31 V = p.V;
32 S = p.S;
33 }
34 return *this;
35}

◆ subst()

CanonicalForm MapPair::subst ( ) const
inline

Definition at line 61 of file cf_map.h.

61{ return S; }

◆ var()

Variable MapPair::var ( ) const
inline

Definition at line 60 of file cf_map.h.

60{ return V; }

Field Documentation

◆ S

CanonicalForm MapPair::S
private

Definition at line 53 of file cf_map.h.

◆ V

Variable MapPair::V
private

Definition at line 52 of file cf_map.h.


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