COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
Public Types | Public Member Functions | Public Attributes | List of all members
TableList< ValueT > Struct Template Reference

Tables can be used as python lists. More...

Inherits PythonListInterface.

Public Types

typedef common::Table< ValueT > TableT
 
typedef TableT::Row RowT
 

Public Member Functions

 TableList (ComponentWrapper &wrapped)
 
virtual Uint len () const
 The number of items in the list. More...
 
virtual object get_item (const Uint i) const
 Get item i from the list. More...
 
virtual void set_item (const Uint i, object &value)
 
virtual std::string to_str () const
 Get the whole list as a string. More...
 
- Public Member Functions inherited from PythonListInterface
virtual ~PythonListInterface ()
 
virtual void set_item (const Uint i, boost::python::object &value)=0
 Set item i in the list. More...
 

Public Attributes

TableTm_table
 

Detailed Description

template<typename ValueT>
struct cf3::python::TableList< ValueT >

Tables can be used as python lists.

Definition at line 66 of file TableWrapper.cpp.

Member Typedef Documentation

typedef TableT::Row RowT

Definition at line 69 of file TableWrapper.cpp.

typedef common::Table<ValueT> TableT

Definition at line 68 of file TableWrapper.cpp.

Constructor & Destructor Documentation

TableList ( ComponentWrapper wrapped)
inline

Definition at line 71 of file TableWrapper.cpp.

Member Function Documentation

virtual object get_item ( const Uint  i) const
inlinevirtual

Get item i from the list.

Implements PythonListInterface.

Definition at line 81 of file TableWrapper.cpp.

virtual Uint len ( ) const
inlinevirtual

The number of items in the list.

Implements PythonListInterface.

Definition at line 76 of file TableWrapper.cpp.

virtual void set_item ( const Uint  i,
object &  value 
)
inlinevirtual

Definition at line 91 of file TableWrapper.cpp.

virtual std::string to_str ( ) const
inlinevirtual

Get the whole list as a string.

Implements PythonListInterface.

Definition at line 106 of file TableWrapper.cpp.

Member Data Documentation

TableT& m_table

Definition at line 113 of file TableWrapper.cpp.


The documentation for this struct was generated from the following file:
Send comments to:
COOLFluiD Web Admin