PolyBoRi
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
libpolybori
include
polybori
ring
WeakRingPtr.h
Go to the documentation of this file.
1
// -*- c++ -*-
2
//*****************************************************************************
14
//*****************************************************************************
15
16
#ifndef polybori_WeakRingPtr_h_
17
#define polybori_WeakRingPtr_h_
18
19
// include basic definitions
20
#include <
polybori/pbori_defs.h
>
21
#include <
polybori/common/CWeakPtr.h
>
22
#include <
polybori/BoolePolyRing.h
>
23
24
BEGIN_NAMESPACE_PBORI
25
32
class
WeakRingPtr
{
34
typedef
WeakRingPtr
self
;
35
36
public
:
37
typedef
BoolePolyRing
value_type
;
38
40
WeakRingPtr
(
const
value_type
& data): m_data(*data.core()) {}
41
43
WeakRingPtr
(
const
self
& rhs): m_data(rhs.m_data) {}
44
46
~WeakRingPtr
() {}
47
49
value_type
operator*
()
const
{
return
value_type
(m_data); }
50
52
operator
bool()
const
{
return
m_data; }
53
54
private
:
55
CWeakPtr<value_type::core_type>
m_data;
56
};
57
58
END_NAMESPACE_PBORI
59
60
#endif
/* polybori_WeakRingPtr_h_ */
Generated by
1.8.3.1