Lines Matching full:book
23 class Book : public pw::IntrusiveSet<Book>::Item { class
25 using Item = pw::IntrusiveSet<Book>::Item;
28 explicit Book(const char* name) : name_(name) {} in Book() function in examples::Book
30 bool operator<(const Book& rhs) const { in operator <()
38 std::array<Book, 8> books = {
39 Book("A Tale of Two Cities"),
40 Book("The Little Prince"),
41 Book("The Alchemist"),
42 Book("Harry Potter and the Philosopher's Stone"),
43 Book("And Then There Were None"),
44 Book("Dream of the Red Chamber"),
45 Book("The Hobbit"),
46 Book("Alice's Adventures in Wonderland"),
49 pw::IntrusiveSet<Book> library(books.begin(), books.end());
51 void VisitLibrary(pw::IntrusiveSet<Book>& book_bag) { in VisitLibrary()
62 Book requested(title); in VisitLibrary()
65 Book& book = *iter; in VisitLibrary() local
67 book_bag.insert(book); in VisitLibrary()
79 examples::Book book("One Hundred Years of Solitude"); in TEST() local
80 pw::IntrusiveSet<examples::Book> book_bag; in TEST()
81 book_bag.insert(book); in TEST()