mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
bazaar: Styler refactoring
git-svn-id: svn://ultimatepp.org/upp/trunk@5469 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
976f6c81f1
commit
412d1594e3
7 changed files with 337 additions and 318 deletions
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef _Gen_Misc_h_
|
||||
#define _Gen_Misc_h_
|
||||
|
||||
#include <Core/Core.h>
|
||||
|
||||
NAMESPACE_UPP
|
||||
|
||||
//some usefull interfaces
|
||||
|
|
@ -38,8 +40,8 @@ public:
|
|||
virtual ~GetSetData() {} //might be used as base interface
|
||||
virtual T GetData() const = 0;
|
||||
virtual void SetData(const T& _v) = 0;
|
||||
virtual T& GetRef() = 0;
|
||||
virtual const T& GetRef() const = 0;
|
||||
// virtual T& GetRef() { NEVER(); Value v; return v; }
|
||||
// virtual const T& GetRef() const { NEVER(); Value v; return v; }
|
||||
T operator~() const { return GetData(); }
|
||||
const T& operator<<=(const T& v) { SetData(v); return v; }
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue