SUMMARY:  INNER | FIELD | CONSTR | METHOD | FRIEND DETAIL:  FIELD | CONSTR | METHOD | FRIEND


Platform::Lang::TypeConcepts
Template Class GeneralContainerType
Implemented in:
Platform.Lang.TypeConcepts.GeneralContainerType.h
Direct Known Subclasses:
GeneralCollectionType, GeneralDictionaryType, Queue, Stack

template <typename Base, typename Container>
class GeneralContainerType

The base type for all the containers.

Field Summarycollapse
protected Base base
          The base implementation of this container.

Constructor Summarycollapse
protected GeneralContainerType()
          The default constructor.
protected GeneralContainerType(const Base& inBase)
          The constructor to create a copy of the base implementation.

Method Summarycollapse
Int compareTo(const Container& container) const
          Compares this container with the specified container for order relation.
UInt deepSize() const
          Computes the total size, in bytes, occupied by this container and its elements.
Void empty()
          Removes all the elements from this container.
Bool equals(const Container& container) const
          Tests whether this container equals the specified container.
Void exchangeWith(Container& container)
          Exchanges the contents of this container with the specified container.
UInt hashCode() const
          Computes the hash code for this container.
Bool isEmpty() const
          Tests whether this container has no elements.
Int size() const
          Returns the number of elements contained in this container.
String toString() const
          Returns a string representation of this container.
String toXml() const
          Returns an XML representation of this container.

 

Field Detail

base

protected Base base

The base implementation of this container.

 

Constructor Detail

GeneralContainerType[inline]

protected GeneralContainerType()

The default constructor.


GeneralContainerType[explicit, inline]

protected GeneralContainerType(const Base& inBase)

The constructor to create a copy of the base implementation.

Parameters:
inBase - DOCTODO

 

Method Detail

compareTo[inline]

Int compareTo(const Container& container) const

Compares this container with the specified container for order relation.

Parameters:
container - a container
Returns:
a signed integer number, result, indicating the order relationship between this and the specified containers as follows:
  • result < 0 if this < container
  • result == 0 if this == container
  • result > 0 if this > container

deepSize[inline]

UInt deepSize() const

Computes the total size, in bytes, occupied by this container and its elements.

Returns:
the total size, in bytes, occupied by this container and its elements

empty[inline]

Void empty()

Removes all the elements from this container.


equals[inline]

Bool equals(const Container& container) const

Tests whether this container equals the specified container.

Parameters:
container - a container
Returns:
True if this and the specified containers are equal, False otherwise

exchangeWith[inline]

Void exchangeWith(Container& container)

Exchanges the contents of this container with the specified container.

Parameters:
container - a container

hashCode[inline]

UInt hashCode() const

Computes the hash code for this container.

Returns:
the hash code for this container

isEmpty[inline]

Bool isEmpty() const

Tests whether this container has no elements.

Returns:
True if this container is empty, False otherwise

size[inline]

Int size() const

Returns the number of elements contained in this container.

Returns:
the number of elements in this container

toString[inline]

String toString() const

Returns a string representation of this container.

Returns:
a string representation of the container
See Also:
Lang::toString

toXml[inline]

String toXml() const

Returns an XML representation of this container.

Returns:
an XML representation of the container
See Also:
Lang::toXml


SUMMARY:  INNER | FIELD | CONSTR | METHOD | FRIEND DETAIL:  FIELD | CONSTR | METHOD | FRIEND