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

List of all members.

Public Member Functions

virtual bool write (io::iwbuf &a_buffer)
virtual bool read (io::irbuf &a_buffer)
virtual bool dump (std::ostream &a_out)
 mf ()
 mf (const mf &a_from)
mfoperator= (const mf &a_from)
mfoperator= (const std::vector< T > &a_from)

Detailed Description

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

Definition at line 101 of file mf.


Constructor & Destructor Documentation

template<class T >
inlib::sg::mf< T >::mf ( ) [inline]

Definition at line 121 of file mf.

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

Definition at line 123 of file mf.

  : bmf<T>(a_from)
  {}

Member Function Documentation

template<class T >
virtual bool inlib::sg::mf< T >::dump ( std::ostream &  a_out) [inline, virtual]

Implements inlib::sg::field.

Definition at line 111 of file mf.

                                       {
    const std::vector<T>& vec = bmf<T>::m_values;
    a_out << "size : " << vec.size() << std::endl;
    typedef typename std::vector<T>::const_iterator cit_t;
    for(cit_t it=vec.begin();it!=vec.end();++it) {
      a_out << "  " << (*it) << std::endl;
    }
    return true;
  }
template<class T >
mf& inlib::sg::mf< T >::operator= ( const mf< T > &  a_from) [inline]

Definition at line 126 of file mf.

                                 {
    //typedef typename bmf<T>::iterator bmf_t;
    bmf<T>::operator=(a_from);
    return *this;
  }
template<class T >
mf& inlib::sg::mf< T >::operator= ( const std::vector< T > &  a_from) [inline]

Reimplemented from inlib::sg::bmf< T >.

Definition at line 132 of file mf.

                                           {
    bmf<T>::operator=(a_from);
    return *this;
  }
template<class T >
virtual bool inlib::sg::mf< T >::read ( io::irbuf a_buffer) [inline, virtual]

Implements inlib::sg::field.

Definition at line 107 of file mf.

                                       {
    std::vector<T>& vec = bmf<T>::m_values;
    return a_buffer.read_std_vec(vec);
  }
template<class T >
virtual bool inlib::sg::mf< T >::write ( io::iwbuf a_buffer) [inline, virtual]

Implements inlib::sg::field.

Definition at line 103 of file mf.

                                        {
    const std::vector<T>& vec = bmf<T>::m_values;
    return a_buffer.write_vec(vec.size(),vec_data(vec));
  }

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