carta
corelinux_Allocator(3)

corelinux_Allocator3

Allocator is a strategy class used by abstractallocator and abstractfactory.each allocator instance tracks allocates and deallocates.

Usage

Inherits corelinux::Strategy.

Inherited by corelinux::AbstractAllocator< TypeImpl >, and corelinux::AbstractAllocator< WallFlyweight >.

Public Member Functions

Allocator (void)

Retrieves the number of allocations by this Allocator. virtual CountCref getDeallocateCount (void) const

Retrieves the number of deallocations by this Allocator. virtual void incrementAllocates (void)

Detailed Description

Allocator is a Strategy class used by AbstractAllocator and AbstractFactory.Each Allocator instance tracks allocates and deallocates.

See also:

Strategy, AbstractAllocator, AbstractFactory

Constructor & Destructor Documentation

corelinux::Allocator::Allocator (AllocatorCref)

Copy constructor. Parameters:

Allocator const reference

Member Function Documentation

CountCref corelinux::Allocator::getAllocateCount (void) const [virtual]

Retrieves the number of allocations by this Allocator. Returns:

Count - number of allocates

CountCref corelinux::Allocator::getDeallocateCount (void) const [virtual]

Retrieves the number of deallocations by this Allocator. Returns:

Count - number of deallocates

AllocatorRef corelinux::Allocator::operator= (AllocatorCref)

Assingment operator overload. Parameters:

Allocator const reference

Returns:

Allocator reference to self

bool corelinux::Allocator::operator== (AllocatorCref) const

Equality operator overload. Parameters:

Allocator const reference

Returns:

true if same identity

History

  • Debian 3.1 (Sarge): the text shown here
  • Debian 3.0 (Woody)

Author

Generated automatically by Doxygen for CoreLinux++ from the source code.

From libcorelinux-dev 0.4.32-5 in Debian 3.1 (Sarge). Parsed by carta from the page's man source.