inlib  1.2.0
Public Member Functions | Static Public Member Functions | Protected Member Functions
inlib::sg::f1d2plot< T > Class Template Reference
Inheritance diagram for inlib::sg::f1d2plot< T >:
Inheritance graph
[legend]
Collaboration diagram for inlib::sg::f1d2plot< T >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void * cast (const std::string &a_class) const
virtual plottablecopy () const
virtual bool is_valid () const
virtual std::string name ()
virtual void set_name (const std::string &a_s)
virtual std::string title ()
virtual std::string legend ()
virtual void set_legend (const std::string &a_s)
virtual std::string infos (const std::string &a_opts)
virtual bool value (float aX, float &aValue) const
virtual unsigned int x_steps () const
virtual float x_min () const
virtual float x_max () const
 f1d2plot (const T &a_data)
virtual ~f1d2plot ()

Static Public Member Functions

static const std::string & s_class ()

Protected Member Functions

 f1d2plot (const f1d2plot &a_from)

Detailed Description

template<class T>
class inlib::sg::f1d2plot< T >

Definition at line 20 of file f2plot.


Constructor & Destructor Documentation

template<class T >
inlib::sg::f1d2plot< T >::f1d2plot ( const T &  a_data) [inline]

Definition at line 66 of file f2plot.

  :m_data(a_data)
  {}
template<class T >
virtual inlib::sg::f1d2plot< T >::~f1d2plot ( ) [inline, virtual]

Definition at line 69 of file f2plot.

{}
template<class T >
inlib::sg::f1d2plot< T >::f1d2plot ( const f1d2plot< T > &  a_from) [inline, protected]

Definition at line 71 of file f2plot.

  :plottable(a_from),func1D(a_from)
  ,m_data(a_from.m_data)
  ,m_name(a_from.m_name)
  ,m_legend(a_from.m_legend)
  ,m_title(a_from.m_title)
  {}  

Member Function Documentation

template<class T >
virtual void* inlib::sg::f1d2plot< T >::cast ( const std::string &  a_class) const [inline, virtual]

Reimplemented from inlib::sg::func1D.

Definition at line 27 of file f2plot.

                                                     {
    if(void* p = inlib::cmp_cast<f1d2plot>(this,a_class)) {return p;}
    return func1D::cast(a_class);
  }
template<class T >
virtual plottable* inlib::sg::f1d2plot< T >::copy ( ) const [inline, virtual]

Implements inlib::sg::plottable.

Definition at line 32 of file f2plot.

{return new f1d2plot(*this);}
template<class T >
virtual std::string inlib::sg::f1d2plot< T >::infos ( const std::string &  a_opts) [inline, virtual]

Implements inlib::sg::plottable.

Definition at line 40 of file f2plot.

                                                  {
    std::string f_lf("\n");
    std::string sinfos;
    std::vector<std::string> words;
    inlib::words(a_opts," ",false,words);
    std::vector<std::string>::const_iterator it;
    for(it=words.begin();it!=words.end();++it) {
      if(((*it)=="name") && m_name.size()) {
        if(sinfos.size()) sinfos += f_lf;
        sinfos += "Name\n";
        sinfos += m_name;
      }
    }
    return sinfos;
  }
template<class T >
virtual bool inlib::sg::f1d2plot< T >::is_valid ( ) const [inline, virtual]

Implements inlib::sg::plottable.

Definition at line 33 of file f2plot.

{return true;}
template<class T >
virtual std::string inlib::sg::f1d2plot< T >::legend ( ) [inline, virtual]

Implements inlib::sg::plottable.

Definition at line 37 of file f2plot.

{return m_legend;}
template<class T >
virtual std::string inlib::sg::f1d2plot< T >::name ( ) [inline, virtual]

Implements inlib::sg::plottable.

Definition at line 34 of file f2plot.

{return m_name;}
template<class T >
static const std::string& inlib::sg::f1d2plot< T >::s_class ( ) [inline, static]

Reimplemented from inlib::sg::func1D.

Definition at line 22 of file f2plot.

                                    {
    static const std::string s_v("inlib::sg::f1d2plot");
    return s_v;
  }
template<class T >
virtual void inlib::sg::f1d2plot< T >::set_legend ( const std::string &  a_s) [inline, virtual]

Implements inlib::sg::plottable.

Definition at line 38 of file f2plot.

{m_legend = a_s;}
template<class T >
virtual void inlib::sg::f1d2plot< T >::set_name ( const std::string &  a_s) [inline, virtual]

Implements inlib::sg::plottable.

Definition at line 35 of file f2plot.

{m_name = a_s;}
template<class T >
virtual std::string inlib::sg::f1d2plot< T >::title ( ) [inline, virtual]

Implements inlib::sg::plottable.

Definition at line 36 of file f2plot.

{return m_title;}
template<class T >
virtual bool inlib::sg::f1d2plot< T >::value ( float  aX,
float &  aValue 
) const [inline, virtual]

Implements inlib::sg::func1D.

Definition at line 56 of file f2plot.

                                                   {
    if(!m_data.in_domain(aX)) return false; 
    aValue = (float)m_data.value(aX);
    return true;
  }
template<class T >
virtual float inlib::sg::f1d2plot< T >::x_max ( ) const [inline, virtual]

Implements inlib::sg::func1D.

Definition at line 64 of file f2plot.

{return 0;}
template<class T >
virtual float inlib::sg::f1d2plot< T >::x_min ( ) const [inline, virtual]

Implements inlib::sg::func1D.

Definition at line 63 of file f2plot.

{return 0;}
template<class T >
virtual unsigned int inlib::sg::f1d2plot< T >::x_steps ( ) const [inline, virtual]

Implements inlib::sg::func1D.

Definition at line 62 of file f2plot.

{return 100;}

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines