public read/write
git-svn-id: svn+ssh://svn.cprover.org/srv/svn/cbmc/trunk@48 6afb6bc1-c8e4-404c-8f48-9ae832c5b171
This commit is contained in:
parent
5aa237b132
commit
fdc1f02fd9
|
@ -246,7 +246,9 @@ protected:
|
|||
dt *data;
|
||||
|
||||
void remove_ref(dt *old_data);
|
||||
void detatch();
|
||||
|
||||
public:
|
||||
const dt &read() const;
|
||||
|
||||
inline dt &write()
|
||||
|
@ -255,10 +257,10 @@ protected:
|
|||
return *data;
|
||||
}
|
||||
|
||||
void detatch();
|
||||
#else
|
||||
dt data;
|
||||
|
||||
public:
|
||||
inline const dt &read() const
|
||||
{
|
||||
return data;
|
||||
|
|
Loading…
Reference in New Issue