Scroom 0.14-49-gb7ae7a6d
Loading...
Searching...
No Matches
Scroom::Bookkeeping::Token Class Reference

#include <bookkeeping.hh>

Inheritance diagram for Scroom::Bookkeeping::Token:
Inheritance graph
Collaboration diagram for Scroom::Bookkeeping::Token:
Collaboration graph

Public Member Functions

 Token (const std::shared_ptr< Detail::TokenImpl > &t)
 
 Token (const std::weak_ptr< Detail::TokenImpl > &t)
 
 Token ()
 
 Token (const Stuff &s)
 
 Token (const StuffList &l)
 
void add (const Stuff &s) const
 
void add (const StuffList &l) const
 
void merge (Token &rhs) const
 
void merge (StuffList &l) const
 
Detail::TokenAddition operator+ (const Stuff &rhs) const
 
Token const & operator+= (const Stuff &rhs) const
 

Constructor & Destructor Documentation

◆ Token() [1/5]

Scroom::Bookkeeping::Token::Token ( const std::shared_ptr< Detail::TokenImpl > &  t)
inlineexplicit
165 : std::shared_ptr<Detail::TokenImpl>(t)
166 {
167 }
ThreadPool t(0)

◆ Token() [2/5]

Scroom::Bookkeeping::Token::Token ( const std::weak_ptr< Detail::TokenImpl > &  t)
inlineexplicit
170 : std::shared_ptr<Detail::TokenImpl>(t)
171 {
172 }

◆ Token() [3/5]

Scroom::Bookkeeping::Token::Token ( )
inline
175 : std::shared_ptr<Detail::TokenImpl>(Detail::TokenImpl::create())
176 {
177 }
static Scroom::Bookkeeping::Token create()
Definition bookkeepingimpl.hh:65

◆ Token() [4/5]

Scroom::Bookkeeping::Token::Token ( const Stuff &  s)
inlineexplicit
180 : std::shared_ptr<Detail::TokenImpl>(Detail::TokenImpl::create())
181 {
182 get()->add(s);
183 }
T get(const Context::ConstPtr &context, std::string name)
Definition context.hh:55
BitmapSurface::Ptr const s
Definition transformpresentation_test.cc:70

◆ Token() [5/5]

Scroom::Bookkeeping::Token::Token ( const StuffList &  l)
inlineexplicit
186 : std::shared_ptr<Detail::TokenImpl>(Detail::TokenImpl::create())
187 {
188 get()->add(l);
189 }
PageList const l
Definition compression-tests.cc:33

Member Function Documentation

◆ add() [1/2]

void Scroom::Bookkeeping::Token::add ( const Stuff &  s) const
inline
191{ get()->add(s); }

Referenced by TestRecursiveObservable::observerAdded(), CompressedTile::observerAdded(), and on_new_viewobserver().

Here is the caller graph for this function:

◆ add() [2/2]

void Scroom::Bookkeeping::Token::add ( const StuffList &  l) const
inline
193{ get()->add(l); }

◆ merge() [1/2]

void Scroom::Bookkeeping::Token::merge ( StuffList &  l) const
inline
197{ get()->merge(l); }

◆ merge() [2/2]

void Scroom::Bookkeeping::Token::merge ( Token rhs) const
inline
195{ get()->merge(rhs); }

Referenced by Scroom::Bookkeeping::Detail::TokenAddition::operator+(), and Scroom::Bookkeeping::Detail::TokenAddition::operator+=().

Here is the caller graph for this function:

◆ operator+()

Detail::TokenAddition Scroom::Bookkeeping::Token::operator+ ( const Stuff &  rhs) const
inline
199{ return Detail::TokenAddition(*this) + rhs; }

◆ operator+=()

Token const & Scroom::Bookkeeping::Token::operator+= ( const Stuff &  rhs) const
inline
202 {
203 add(rhs);
204 return *this;
205 }
t add()
Here is the call graph for this function:

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