MosesServer::Session Struct Reference

#include <Session.h>

List of all members.

Public Member Functions

 Session (uint64_t const session_id)
bool is_new () const
void setup (std::map< std::string, xmlrpc_c::value > const &params)

Public Attributes

uint64_t const id
time_t start_time
time_t last_access
boost::shared_ptr
< Moses::ContextScope > const 
scope
SPTR< std::map< std::string,
float > > 
m_context_weights


Detailed Description

Definition at line 15 of file Session.h.


Constructor & Destructor Documentation

MosesServer::Session::Session ( uint64_t const   session_id  )  [inline]

Definition at line 24 of file Session.h.

References last_access, NULL, and start_time.


Member Function Documentation

bool MosesServer::Session::is_new (  )  const [inline]

Definition at line 31 of file Session.h.

References last_access, and start_time.

void MosesServer::Session::setup ( std::map< std::string, xmlrpc_c::value > const &  params  ) 


Member Data Documentation

uint64_t const MosesServer::Session::id

Definition at line 17 of file Session.h.

Definition at line 19 of file Session.h.

Referenced by is_new(), and Session().

SPTR<std::map<std::string,float> > MosesServer::Session::m_context_weights

Definition at line 21 of file Session.h.

Definition at line 20 of file Session.h.

Definition at line 18 of file Session.h.

Referenced by is_new(), and Session().


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

Generated on Thu Jul 6 00:34:05 2017 for Moses by  doxygen 1.5.9