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:
kroening 2011-05-14 10:37:37 +00:00
parent 5aa237b132
commit fdc1f02fd9
1 changed files with 5 additions and 3 deletions

View File

@ -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;