Changed functions in all policies from public to protected.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1029 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
6281fa4bef
commit
d723342f30
1 changed files with 27 additions and 8 deletions
|
@ -70,12 +70,14 @@ namespace Loki
|
||||||
template <class T>
|
template <class T>
|
||||||
class HeapStorage
|
class HeapStorage
|
||||||
{
|
{
|
||||||
protected:
|
public:
|
||||||
typedef T* StoredType; /// the type of the pointee_ object
|
typedef T* StoredType; /// the type of the pointee_ object
|
||||||
typedef T* InitPointerType; /// type used to declare OwnershipPolicy type.
|
typedef T* InitPointerType; /// type used to declare OwnershipPolicy type.
|
||||||
typedef T* PointerType; /// type returned by operator->
|
typedef T* PointerType; /// type returned by operator->
|
||||||
typedef T& ReferenceType; /// type returned by operator*
|
typedef T& ReferenceType; /// type returned by operator*
|
||||||
|
|
||||||
|
protected:
|
||||||
|
|
||||||
HeapStorage() : pointee_(Default())
|
HeapStorage() : pointee_(Default())
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
@ -107,7 +109,6 @@ namespace Loki
|
||||||
template <class F>
|
template <class F>
|
||||||
friend typename HeapStorage<F>::StoredType& GetImplRef(HeapStorage<F>& sp);
|
friend typename HeapStorage<F>::StoredType& GetImplRef(HeapStorage<F>& sp);
|
||||||
|
|
||||||
protected:
|
|
||||||
// Destroys the data stored
|
// Destroys the data stored
|
||||||
// (Destruction might be taken over by the OwnershipPolicy)
|
// (Destruction might be taken over by the OwnershipPolicy)
|
||||||
void Destroy()
|
void Destroy()
|
||||||
|
@ -152,12 +153,14 @@ namespace Loki
|
||||||
template <class T>
|
template <class T>
|
||||||
class DefaultSPStorage
|
class DefaultSPStorage
|
||||||
{
|
{
|
||||||
protected:
|
public:
|
||||||
typedef T* StoredType; // the type of the pointee_ object
|
typedef T* StoredType; // the type of the pointee_ object
|
||||||
typedef T* InitPointerType; /// type used to declare OwnershipPolicy type.
|
typedef T* InitPointerType; /// type used to declare OwnershipPolicy type.
|
||||||
typedef T* PointerType; // type returned by operator->
|
typedef T* PointerType; // type returned by operator->
|
||||||
typedef T& ReferenceType; // type returned by operator*
|
typedef T& ReferenceType; // type returned by operator*
|
||||||
|
|
||||||
|
protected:
|
||||||
|
|
||||||
DefaultSPStorage() : pointee_(Default())
|
DefaultSPStorage() : pointee_(Default())
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
@ -189,7 +192,6 @@ namespace Loki
|
||||||
template <class F>
|
template <class F>
|
||||||
friend typename DefaultSPStorage<F>::StoredType& GetImplRef(DefaultSPStorage<F>& sp);
|
friend typename DefaultSPStorage<F>::StoredType& GetImplRef(DefaultSPStorage<F>& sp);
|
||||||
|
|
||||||
protected:
|
|
||||||
// Destroys the data stored
|
// Destroys the data stored
|
||||||
// (Destruction might be taken over by the OwnershipPolicy)
|
// (Destruction might be taken over by the OwnershipPolicy)
|
||||||
//
|
//
|
||||||
|
@ -287,6 +289,8 @@ namespace Loki
|
||||||
typedef Locker< T > PointerType; /// type returned by operator->
|
typedef Locker< T > PointerType; /// type returned by operator->
|
||||||
typedef T& ReferenceType; /// type returned by operator*
|
typedef T& ReferenceType; /// type returned by operator*
|
||||||
|
|
||||||
|
protected:
|
||||||
|
|
||||||
LockedStorage() : pointee_( Default() ) {}
|
LockedStorage() : pointee_( Default() ) {}
|
||||||
|
|
||||||
~LockedStorage( void ) {}
|
~LockedStorage( void ) {}
|
||||||
|
@ -315,7 +319,6 @@ namespace Loki
|
||||||
template <class F>
|
template <class F>
|
||||||
friend typename LockedStorage<F>::StoredType& GetImplRef(LockedStorage<F>& sp);
|
friend typename LockedStorage<F>::StoredType& GetImplRef(LockedStorage<F>& sp);
|
||||||
|
|
||||||
protected:
|
|
||||||
// Destroys the data stored
|
// Destroys the data stored
|
||||||
// (Destruction might be taken over by the OwnershipPolicy)
|
// (Destruction might be taken over by the OwnershipPolicy)
|
||||||
void Destroy()
|
void Destroy()
|
||||||
|
@ -359,12 +362,15 @@ namespace Loki
|
||||||
template <class T>
|
template <class T>
|
||||||
class ArrayStorage
|
class ArrayStorage
|
||||||
{
|
{
|
||||||
protected:
|
public:
|
||||||
|
|
||||||
typedef T* StoredType; // the type of the pointee_ object
|
typedef T* StoredType; // the type of the pointee_ object
|
||||||
typedef T* InitPointerType; /// type used to declare OwnershipPolicy type.
|
typedef T* InitPointerType; /// type used to declare OwnershipPolicy type.
|
||||||
typedef T* PointerType; // type returned by operator->
|
typedef T* PointerType; // type returned by operator->
|
||||||
typedef T& ReferenceType; // type returned by operator*
|
typedef T& ReferenceType; // type returned by operator*
|
||||||
|
|
||||||
|
protected:
|
||||||
|
|
||||||
ArrayStorage() : pointee_(Default())
|
ArrayStorage() : pointee_(Default())
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
@ -396,7 +402,6 @@ namespace Loki
|
||||||
template <class F>
|
template <class F>
|
||||||
friend typename ArrayStorage<F>::StoredType& GetImplRef(ArrayStorage<F>& sp);
|
friend typename ArrayStorage<F>::StoredType& GetImplRef(ArrayStorage<F>& sp);
|
||||||
|
|
||||||
protected:
|
|
||||||
// Destroys the data stored
|
// Destroys the data stored
|
||||||
// (Destruction might be taken over by the OwnershipPolicy)
|
// (Destruction might be taken over by the OwnershipPolicy)
|
||||||
void Destroy()
|
void Destroy()
|
||||||
|
@ -507,6 +512,8 @@ namespace Loki
|
||||||
template <class P>
|
template <class P>
|
||||||
class RefCountedMT : public ThreadingModel< RefCountedMT<P>, MX >
|
class RefCountedMT : public ThreadingModel< RefCountedMT<P>, MX >
|
||||||
{
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
typedef ThreadingModel< RefCountedMT<P>, MX > base_type;
|
typedef ThreadingModel< RefCountedMT<P>, MX > base_type;
|
||||||
typedef typename base_type::IntType CountType;
|
typedef typename base_type::IntType CountType;
|
||||||
typedef volatile CountType *CountPtrType;
|
typedef volatile CountType *CountPtrType;
|
||||||
|
@ -646,7 +653,7 @@ namespace Loki
|
||||||
{
|
{
|
||||||
class LOKI_EXPORT RefLinkedBase
|
class LOKI_EXPORT RefLinkedBase
|
||||||
{
|
{
|
||||||
public:
|
protected:
|
||||||
RefLinkedBase()
|
RefLinkedBase()
|
||||||
{ prev_ = next_ = this; }
|
{ prev_ = next_ = this; }
|
||||||
|
|
||||||
|
@ -818,6 +825,8 @@ namespace Loki
|
||||||
template <class P>
|
template <class P>
|
||||||
struct NoCheck
|
struct NoCheck
|
||||||
{
|
{
|
||||||
|
protected:
|
||||||
|
|
||||||
NoCheck()
|
NoCheck()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
@ -850,6 +859,8 @@ namespace Loki
|
||||||
template <class P>
|
template <class P>
|
||||||
struct AssertCheck
|
struct AssertCheck
|
||||||
{
|
{
|
||||||
|
protected:
|
||||||
|
|
||||||
AssertCheck()
|
AssertCheck()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
@ -886,6 +897,8 @@ namespace Loki
|
||||||
template <class P>
|
template <class P>
|
||||||
struct AssertCheckStrict
|
struct AssertCheckStrict
|
||||||
{
|
{
|
||||||
|
protected:
|
||||||
|
|
||||||
AssertCheckStrict()
|
AssertCheckStrict()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
@ -940,6 +953,8 @@ namespace Loki
|
||||||
template <class P>
|
template <class P>
|
||||||
struct RejectNullStatic
|
struct RejectNullStatic
|
||||||
{
|
{
|
||||||
|
protected:
|
||||||
|
|
||||||
RejectNullStatic()
|
RejectNullStatic()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
@ -988,6 +1003,8 @@ namespace Loki
|
||||||
template <class P>
|
template <class P>
|
||||||
struct RejectNull
|
struct RejectNull
|
||||||
{
|
{
|
||||||
|
protected:
|
||||||
|
|
||||||
RejectNull()
|
RejectNull()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
@ -1022,6 +1039,8 @@ namespace Loki
|
||||||
template <class P>
|
template <class P>
|
||||||
struct RejectNullStrict
|
struct RejectNullStrict
|
||||||
{
|
{
|
||||||
|
protected:
|
||||||
|
|
||||||
RejectNullStrict()
|
RejectNullStrict()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue