Overview | Namespace | Class | 索引 | Help |
PUBLIC MEMBERS: | CLASSES | STRUCTS | UNIONS | ENUMS | TYPEDEFS | METHODS | STATIC METHODS | DATA | STATIC DATA |
PRIVATE MEMBERS: | CLASSES | STRUCTS | UNIONS | ENUMS | TYPEDEFS | METHODS | STATIC METHODS | DATA | STATIC DATA |
:: rtl ::
template< typename T, typename Unique >
class Static
- Base Classes
- 非,不,無.
- Known Derived Classes
- 非,不,無.
事実上の | abstract | interface | template |
NO | NO | NO | YES |
- 要約
- Helper base class for a late-initialized (default-建設するd) static variable, 器具/実施するing the 二塁打-checked locking pattern 正確に.
- How to Derive from this Class
-
Derive from this class (ありふれた practice), e.g.
struct MyStatic : public rtl::Static
{}; ... MyType & rStatic = MyStatic::get(); ... - Template Parameters
T variable's type
Unique 実施 trick to make the inner static 支えるもの/所有者 unique, using the outer class (the one that derives from this base class)
- とじ込み/提出する
- instance.hxx
Public Members
-
Static Methods
static T &
get( );Gets the static. 相互の 除外 is 成し遂げるd using the osl 全世界の mutex.
私的な Members
-
Structs
StaticInstance
Copyright © 2012, The Apache ソフトウェア 創立/基礎, Licensed under the Apache License, 見解/翻訳/版 2.0. Apache, the Apache feather logo, Apache OpenOffice and OpenOffice.org are trademarks of The Apache ソフトウェア 創立/基礎. Other 指名するs may be trademarks of their 各々の owners.