Changed functions in ownership policies from public to protected.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1028 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
d2af9cf1df
commit
6281fa4bef
1 changed files with 10 additions and 9 deletions
|
@ -70,7 +70,7 @@ namespace Loki
|
||||||
template <class T>
|
template <class T>
|
||||||
class HeapStorage
|
class HeapStorage
|
||||||
{
|
{
|
||||||
public:
|
protected:
|
||||||
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->
|
||||||
|
@ -152,7 +152,7 @@ namespace Loki
|
||||||
template <class T>
|
template <class T>
|
||||||
class DefaultSPStorage
|
class DefaultSPStorage
|
||||||
{
|
{
|
||||||
public:
|
protected:
|
||||||
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->
|
||||||
|
@ -359,7 +359,7 @@ namespace Loki
|
||||||
template <class T>
|
template <class T>
|
||||||
class ArrayStorage
|
class ArrayStorage
|
||||||
{
|
{
|
||||||
public:
|
protected:
|
||||||
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->
|
||||||
|
@ -435,7 +435,7 @@ namespace Loki
|
||||||
template <class P>
|
template <class P>
|
||||||
class RefCounted
|
class RefCounted
|
||||||
{
|
{
|
||||||
public:
|
protected:
|
||||||
RefCounted()
|
RefCounted()
|
||||||
: pCount_(static_cast<uintptr_t*>(
|
: pCount_(static_cast<uintptr_t*>(
|
||||||
SmallObject<>::operator new(sizeof(uintptr_t))))
|
SmallObject<>::operator new(sizeof(uintptr_t))))
|
||||||
|
@ -511,7 +511,7 @@ namespace Loki
|
||||||
typedef typename base_type::IntType CountType;
|
typedef typename base_type::IntType CountType;
|
||||||
typedef volatile CountType *CountPtrType;
|
typedef volatile CountType *CountPtrType;
|
||||||
|
|
||||||
public:
|
protected:
|
||||||
RefCountedMT()
|
RefCountedMT()
|
||||||
{
|
{
|
||||||
pCount_ = static_cast<CountPtrType>(
|
pCount_ = static_cast<CountPtrType>(
|
||||||
|
@ -574,7 +574,7 @@ namespace Loki
|
||||||
template <class P>
|
template <class P>
|
||||||
class COMRefCounted
|
class COMRefCounted
|
||||||
{
|
{
|
||||||
public:
|
protected:
|
||||||
COMRefCounted()
|
COMRefCounted()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
@ -614,6 +614,7 @@ namespace Loki
|
||||||
template <class P>
|
template <class P>
|
||||||
struct DeepCopy
|
struct DeepCopy
|
||||||
{
|
{
|
||||||
|
protected:
|
||||||
DeepCopy()
|
DeepCopy()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
@ -673,7 +674,7 @@ namespace Loki
|
||||||
template <class P>
|
template <class P>
|
||||||
class RefLinked : public Private::RefLinkedBase
|
class RefLinked : public Private::RefLinkedBase
|
||||||
{
|
{
|
||||||
public:
|
protected:
|
||||||
RefLinked()
|
RefLinked()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
@ -706,7 +707,7 @@ namespace Loki
|
||||||
template <class P>
|
template <class P>
|
||||||
class DestructiveCopy
|
class DestructiveCopy
|
||||||
{
|
{
|
||||||
public:
|
protected:
|
||||||
DestructiveCopy()
|
DestructiveCopy()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
@ -742,7 +743,7 @@ namespace Loki
|
||||||
template <class P>
|
template <class P>
|
||||||
class NoCopy
|
class NoCopy
|
||||||
{
|
{
|
||||||
public:
|
protected:
|
||||||
NoCopy()
|
NoCopy()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue