inlib  1.2.0
Public Member Functions
inlib::sg::sf_vec< T, TT > Class Template Reference
Inheritance diagram for inlib::sg::sf_vec< T, TT >:
Inheritance graph
[legend]
Collaboration diagram for inlib::sg::sf_vec< T, TT >:
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)
 sf_vec ()
 sf_vec (const T &a_value)
virtual ~sf_vec ()
 sf_vec (const sf_vec &a_from)
sf_vecoperator= (const sf_vec &a_from)
sf_vecoperator= (const T &a_value)

Detailed Description

template<class T, class TT>
class inlib::sg::sf_vec< T, TT >

Definition at line 20 of file sfs.


Constructor & Destructor Documentation

template<class T, class TT>
inlib::sg::sf_vec< T, TT >::sf_vec ( ) [inline]

Definition at line 35 of file sfs.

: bsf<T>(){}
template<class T, class TT>
inlib::sg::sf_vec< T, TT >::sf_vec ( const T &  a_value) [inline]

Definition at line 36 of file sfs.

: bsf<T>(a_value){}
template<class T, class TT>
virtual inlib::sg::sf_vec< T, TT >::~sf_vec ( ) [inline, virtual]

Definition at line 37 of file sfs.

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

Definition at line 39 of file sfs.

  : bsf<T>(a_from){}

Member Function Documentation

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

Implements inlib::sg::field.

Definition at line 30 of file sfs.

                                       {
    a_out << bsf<T>::m_value << std::endl;
    return true;
  }
template<class T, class TT>
sf_vec& inlib::sg::sf_vec< T, TT >::operator= ( const sf_vec< T, TT > &  a_from) [inline]

Definition at line 41 of file sfs.

                                         {
    bsf<T>::operator=(a_from);
    return *this;
  }
template<class T, class TT>
sf_vec& inlib::sg::sf_vec< T, TT >::operator= ( const T &  a_value) [inline]

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

Definition at line 46 of file sfs.

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

Implements inlib::sg::field.

Definition at line 26 of file sfs.

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

Implements inlib::sg::field.

Definition at line 22 of file sfs.

                                        {
    const std::vector<TT>& vec = bsf<T>::m_value.vector();
    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