semialgebraic_curve< C, V > Class Template Reference

#include <semialgebraic_curve.hpp>

Inheritance diagram for semialgebraic_curve< C, V >:
algebraic_curve< C, V > curve< REF_OF(V)> algebraic_set< C, REF_OF(V)> SHAPE_OFV

List of all members.

Public Types

Public Member Functions


Detailed Description

template<class C, class V = default_env>
class mmx::shape::semialgebraic_curve< C, V >

Definition at line 37 of file semialgebraic_curve.hpp.


Member Typedef Documentation

typedef algebraic_curve<C, REF_OF(V) > AlgebraicCurve

Definition at line 41 of file semialgebraic_curve.hpp.

typedef curve<Ref> Curve [inherited]

Definition at line 49 of file algebraic_curve.hpp.

Reimplemented from algebraic_curve< C, V >.

Definition at line 42 of file semialgebraic_curve.hpp.


Constructor & Destructor Documentation

semialgebraic_curve ( void   )  [inline]

Definition at line 44 of file semialgebraic_curve.hpp.

00044 {} ;

semialgebraic_curve ( char *  s,
int  i = 1 
) [inline]

Definition at line 60 of file semialgebraic_curve.hpp.

References algebraic_set< C, REF_OF(V)>::equation(), and algebraic_set< C, REF_OF(V)>::set_equation().

00061   : AlgebraicCurve(s) { 
00062    if (i<0) this->set_equation( this->equation()*(-1));
00063 }

semialgebraic_curve ( const Polynomial p,
int  s = 1 
) [inline]

Definition at line 66 of file semialgebraic_curve.hpp.

References algebraic_set< C, REF_OF(V)>::set_equation().

00067     : AlgebraicCurve(p) { if (s<0) this->set_equation((-1)*p); }

semialgebraic_curve ( AlgebraicCurve c,
int  s = 1 
) [inline]

Definition at line 70 of file semialgebraic_curve.hpp.

References algebraic_set< C, V >::equation(), and algebraic_set< C, REF_OF(V)>::set_equation().

00071     : AlgebraicCurve(c) { if (s<0) this->set_equation((-1)*c->equation()); }

~semialgebraic_curve ( void   )  [inline]

Definition at line 48 of file semialgebraic_curve.hpp.

00048 {};


Member Function Documentation

Polynomial& equation ( int  i = 0  )  [inline, inherited]

Definition at line 64 of file algebraic_set.hpp.

00064 { return this->m_polynomials[i] ; }

const Polynomial& equation ( int  i = 0  )  const [inline, inherited]

Definition at line 63 of file algebraic_set.hpp.

Referenced by semialgebraic_curve< C, V >::inequality(), and semialgebraic_curve< C, V >::semialgebraic_curve().

00063 { return this->m_polynomials[i] ; }

const Seq<Polynomial>& equations (  )  const [inline, inherited]

Definition at line 62 of file algebraic_set.hpp.

00062 { return this->m_polynomials ; }

Polynomial inequality (  )  const [inline]

Definition at line 50 of file semialgebraic_curve.hpp.

References algebraic_set< C, REF_OF(V)>::equation().

00050 { return this->equation() ; }

void insert ( const Polynomial &  p  )  [inline, inherited]

Definition at line 66 of file algebraic_set.hpp.

Referenced by algebraic_curve< C, V >::algebraic_curve().

00066 { this->m_polynomials<<p; }

int nbequation (  )  const [inline, inherited]

Definition at line 67 of file algebraic_set.hpp.

References Seq< C, R >::size().

00067 { return m_polynomials.size(); }

typedef REF_OF (  )  [inherited]
void set_equation ( const Polynomial &  p  )  [inline, inherited]

Definition at line 65 of file algebraic_set.hpp.

Referenced by semialgebraic_curve< C, V >::semialgebraic_curve().

00065 { this->m_polynomials[0]=p ; }

typedef SHAPE_OF (  ) 

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

Generated on 6 Dec 2012 for shape by  doxygen 1.6.1