Soar Kernel  9.3.2 08-06-12
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Attributes
soar_module::statement_container Class Reference

#include <soar_db.h>

Inherited by soar_module::sqlite_statement_container.

Public Member Functions

void add (statement *new_statement)
void clean ()
void prepare ()
 statement_container ()
virtual ~statement_container ()

Protected Attributes

std::list< statement * > * statements

Detailed Description

Definition at line 198 of file soar_db.h.

Constructor & Destructor Documentation

soar_module::statement_container::statement_container ( )
inline

Definition at line 204 of file soar_db.h.

: statements( new std::list<statement *>() ) {}
virtual soar_module::statement_container::~statement_container ( )
inlinevirtual

Definition at line 206 of file soar_db.h.

References statements.

{
for ( std::list<statement *>::iterator p=statements->begin(); p!=statements->end(); p++ )
delete (*p);
delete statements;
}

Member Function Documentation

void soar_module::statement_container::add ( statement new_statement)
inline
void soar_module::statement_container::clean ( )
inline

Definition at line 232 of file soar_db.h.

References statements, and soar_module::unprepared.

{
for ( std::list<statement *>::iterator p=statements->begin(); p!=statements->end(); p++ )
{
(*p)->clean();
assert( (*p)->get_status() == unprepared );
}
}
void soar_module::statement_container::prepare ( )
inline

Definition at line 223 of file soar_db.h.

References soar_module::ready, and statements.

Referenced by epmem_init_db(), smem_init_db(), and stats_init_db().

{
for ( std::list<statement *>::iterator p=statements->begin(); p!=statements->end(); p++ )
{
(*p)->prepare();
assert( (*p)->get_status() == ready );
}
}

Field Documentation

std::list<statement *>* soar_module::statement_container::statements
protected

Definition at line 201 of file soar_db.h.

Referenced by add(), clean(), prepare(), and ~statement_container().


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