|
creativity
v1.3.0
Agent-based model of creativity and piracy
|
Container class storing the data associated with a reader's copy of a book. More...
#include <creativity/BookCopy.hpp>
Public Types | |
| enum | Status { Status::wrote, Status::purchased_market, Status::purchased_public, Status::pirated } |
| The status a book copy can have. More... | |
Public Member Functions | |
| BookCopy (double quality, Status status, eris::eris_time_t acquired) | |
| Creates a BookCopy. | |
| bool | wrote () const |
Alias for status == BookCopy::Status::wrote | |
| bool | pirated () const |
Alias for status == BookCopy::Status::pirated | |
| bool | purchased_market () const |
Alias for status == BookCopy::Status::purchased_market | |
| bool | purchased_public () const |
Alias for status == BookCopy::Status::purchased_public | |
Public Attributes | |
| const double | quality |
| The reader's perceived quality of the book. | |
| const Status | status |
| The status of the book (wrote, purchased, or pirated) | |
| const eris::eris_time_t | acquired |
| The simulation period when this copy was acquired. | |
Container class storing the data associated with a reader's copy of a book.
|
strong |
1.8.12