Scroom  0.14
A Class Reference
Collaboration diagram for A:
Collaboration graph

Public Types

using Ptr = boost::shared_ptr< A >
 
using Ptr = boost::shared_ptr< A >
 

Public Member Functions

 A (int &i_)
 
void set (int v)
 
int get () const
 
 A (Semaphore *s1_, Semaphore *s2_)
 
 ~A ()
 
 A (const A &)=delete
 
 A (A &&)=delete
 
Aoperator= (const A &)=delete
 
Aoperator= (A &&)=delete
 
 A (Semaphore *s_)
 
void operator() ()
 

Static Public Member Functions

static Ptr create (int &i)
 
static Ptr create (Semaphore *s)
 

Private Attributes

int & i
 
Semaphores1
 
Semaphores2
 
Semaphores
 

Member Typedef Documentation

◆ Ptr [1/2]

using A::Ptr = boost::shared_ptr<A>

◆ Ptr [2/2]

using A::Ptr = boost::shared_ptr<A>

Constructor & Destructor Documentation

◆ A() [1/5]

A::A ( int &  i_)
inlineexplicit
30  : i(i_)
31  {
32  }

Referenced by anonymous_namespace{boost-smart-pointers.cc}::A::create(), and create().

Here is the caller graph for this function:

◆ A() [2/5]

A::A ( Semaphore s1_,
Semaphore s2_ 
)
inline
42  : s1(s1_)
43  , s2(s2_)
44  {
45  }

◆ ~A()

A::~A ( )
inline
47  {
48  s1->P();
49  s2->V();
50  }
Here is the call graph for this function:

◆ A() [3/5]

A::A ( const A )
delete

◆ A() [4/5]

A::A ( A &&  )
delete

◆ A() [5/5]

A::A ( Semaphore s_)
inlineexplicit
43  : s(s_)
44  {
45  }

Member Function Documentation

◆ create() [1/2]

static Ptr A::create ( int &  i)
inlinestatic
38 { return Ptr(new A(i)); }

Referenced by BOOST_AUTO_TEST_CASE().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ create() [2/2]

static Ptr A::create ( Semaphore s)
inlinestatic
49 { return Ptr(new A(s)); }

◆ get()

int A::get ( ) const
inline
36 { return i; }

Referenced by BOOST_AUTO_TEST_CASE().

Here is the caller graph for this function:

◆ operator()()

void A::operator() ( )
inline
47 { s->V(); }
Here is the call graph for this function:

◆ operator=() [1/2]

A& A::operator= ( A &&  )
delete

◆ operator=() [2/2]

A& A::operator= ( const A )
delete

◆ set()

void A::set ( int  v)
inline
34 { i = v; }

Referenced by BOOST_AUTO_TEST_CASE().

Here is the caller graph for this function:

Member Data Documentation

◆ i

int& A::i
private

Referenced by create(), get(), and set().

◆ s

Semaphore* A::s
private

◆ s1

Semaphore* A::s1
private

◆ s2

Semaphore* A::s2
private

The documentation for this class was generated from the following files:
A::s1
Semaphore * s1
Definition: async-deleter-tests.cc:37
Scroom::Semaphore::P
void P()
Definition: semaphore.hh:38
A::Ptr
boost::shared_ptr< A > Ptr
Definition: boost-bind.cc:27
A::s2
Semaphore * s2
Definition: async-deleter-tests.cc:38
A::A
A(int &i_)
Definition: boost-bind.cc:29
A::i
int & i
Definition: boost-bind.cc:24
A::s
Semaphore * s
Definition: threadpool-tests.cc:37
Scroom::Semaphore::V
void V()
Definition: semaphore.hh:77