![]() |
IgANet
IgANets - Isogeometric Analysis Networks
|
Public Member Functions | |
Session (std::string hash) | |
Default constructor. | |
void | access () |
Updates the access time stamp. | |
bool | checkHash (std::string hash) const |
Returns true if the provided hash coincides with the session's hash. | |
std::chrono::system_clock::time_point | getAccessTime () const |
Returns the access time. | |
std::chrono::system_clock::time_point | getCreationTime () const |
Returns the creation time. | |
std::shared_ptr< Model< iganet::real_t > > | getModel (int64_t id) |
Returns the requested model or throws an exception. | |
auto & | getModels () |
Returns a non-constant reference to the list of models. | |
const auto & | getModels () const |
Returns a constant reference to the list of models. | |
const std::string & | getUUID () const |
Returns the UUID. | |
bool | hasHash () const |
Returns true if the session has a non-zero hash. | |
std::shared_ptr< Model< iganet::real_t > > | removeModel (int64_t id) |
Returns the model and removes it from the list of models. | |
Public Attributes | |
std::map< int64_t, std::shared_ptr< Model< iganet::real_t > > > | models |
List of models. | |
Private Attributes | |
std::chrono::system_clock::time_point | access_time_ |
Access time stamp. | |
std::chrono::system_clock::time_point | creation_time_ |
Creation time stamp. | |
const std::string | hash_ |
Hashed password. | |
const std::string | uuid_ |
Session UUID. | |
|
inline |
Default constructor.
|
inline |
Updates the access time stamp.
|
inline |
Returns true if the provided hash coincides with the session's hash.
|
inline |
Returns the access time.
|
inline |
Returns the creation time.
|
inline |
Returns the requested model or throws an exception.
|
inline |
Returns a non-constant reference to the list of models.
|
inline |
Returns a constant reference to the list of models.
|
inline |
Returns the UUID.
|
inline |
Returns true if the session has a non-zero hash.
|
inline |
Returns the model and removes it from the list of models.
|
private |
Access time stamp.
|
private |
Creation time stamp.
|
private |
Hashed password.
std::map<int64_t, std::shared_ptr<Model<iganet::real_t> > > iganet::webapp::Session< T >::models |
List of models.
|
private |
Session UUID.