Follow this link to skip to the main content

claraty::FDM_Array Class Reference

#include <fdm.h>

Inheritance diagram for claraty::FDM_Array:

Inheritance graph
[legend]
Collaboration diagram for claraty::FDM_Array:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 FDM_Array (const FDM_Node &elt)
 FDM_Array (const FDM_Array &array)
template<class T>
bool element (T &val)
bool element (std::vector< bool >::reference val)
template<class I>
bool elements (I first, const I &end)
FDM_Untyped_Node element_node ()
bool resizable_length (int &len)
bool is_read ()
bool is_write ()

Protected Attributes

FDM_Stream_stream
int _id
int _level

Detailed Description

Definition at line 263 of file fdm.h.


Constructor & Destructor Documentation

claraty::FDM_Array::FDM_Array ( const FDM_Node elt  ) 

Definition at line 172 of file fdm.cc.

References claraty::FDM_Stream::_begin_array(), claraty::FDM_Stream::_push_node(), and claraty::FDM_Node::_stream.

00172                                         : FDM_Node(elt) {
00173   _stream._push_node(*this);
00174   _stream._begin_array();
00175 }

Here is the call graph for this function:

claraty::FDM_Array::FDM_Array ( const FDM_Array array  )  [inline]

Definition at line 266 of file fdm.h.

00266 : FDM_Node(array) {}


Member Function Documentation

template<class T>
bool claraty::FDM_Array::element ( T &  val  )  [inline]

Definition at line 269 of file fdm.h.

References claraty::FDM_Stream::_array_element(), claraty::FDM_Stream::_io_object(), and claraty::FDM_Node::_stream.

Referenced by elements(), claraty::Unit_Vector< T >::io(), claraty::RGB_Color< T >::io(), claraty::GUID_1394::io(), claraty::N_2D_Array< T >::io(), and claraty::io_object().

00269                        {
00270     bool ok= true;
00271     ok &= _stream._array_element();
00272     ok &= _stream._io_object(val);
00273     return ok;
00274   }

Here is the call graph for this function:

bool claraty::FDM_Array::element ( std::vector< bool >::reference  val  )  [inline]

Definition at line 279 of file fdm.h.

References claraty::FDM_Stream::_array_element(), claraty::FDM_Stream::_io_object(), and claraty::FDM_Node::_stream.

00279                                              {
00280     bool ok= true;
00281     ok &= _stream._array_element();
00282     ok &= _stream._io_object(val);
00283     return ok;
00284   }

Here is the call graph for this function:

template<class I>
bool claraty::FDM_Array::elements ( first,
const I &  end 
) [inline]

Definition at line 287 of file fdm.h.

References element().

Referenced by claraty::io_object().

00287                                        {
00288     bool ok = true;
00289     for (; first != end; ++first) ok &= element(*first);
00290     return ok;
00291   }

Here is the call graph for this function:

FDM_Untyped_Node claraty::FDM_Array::element_node (  ) 

Definition at line 177 of file fdm.cc.

References claraty::FDM_Stream::_array_element_node(), claraty::FDM_Node::_stream, and claraty::FDM_Stream::_unwind_to_node().

00177                                          {
00178   _stream._unwind_to_node(*this);
00179   return _stream._array_element_node();
00180 }

Here is the call graph for this function:

bool claraty::FDM_Array::resizable_length ( int &  len  ) 

Definition at line 182 of file fdm.cc.

References claraty::FDM_Stream::_array_resizable_length(), and claraty::FDM_Node::_stream.

Referenced by claraty::io_object().

00182                                          {
00183   return _stream._array_resizable_length(len);
00184 }

Here is the call graph for this function:

bool claraty::FDM_Array::is_read (  ) 

Definition at line 186 of file fdm.cc.

References claraty::FDM_Node::_stream, and claraty::FDM_Stream::is_read().

00186 { return _stream.is_read(); }

Here is the call graph for this function:

bool claraty::FDM_Array::is_write (  ) 

Definition at line 187 of file fdm.cc.

References claraty::FDM_Node::_stream, and claraty::FDM_Stream::is_write().

00187 { return _stream.is_write(); }

Here is the call graph for this function:


Member Data Documentation


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