TalanSoft Toolkits  201707
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
cCollectionImpl< TRAITS, BASEIMPL > Class Template Reference
Inheritance diagram for cCollectionImpl< TRAITS, BASEIMPL >:

Public Types

typedef cCollectionImpl
< TRAITS, cIUnknownImpl
< iCollection > > 
tImmutable
 
typedef cCollectionImpl
< TRAITS, BASEIMPL > 
tThisImmutable
 
typedef TRAITS::tKeyTraits tKeyTraits
 
typedef TRAITS::tValTraits tValTraits
 
typedef TRAITS::tValueType tKeyType
 
typedef TRAITS::tValueType tValType
 
typedef TRAITS::tContainer tContainer
 
typedef tContainer::const_iterator const_iterator
 
typedef
tContainer::const_reverse_iterator 
const_reverse_iterator
 

Public Member Functions

tType GetKeyType () const
 
tType GetValueType () const
 
tBool IsEmpty () const
 
tU32 GetSize () const
 
tBool ContainsAll (const iCollection *apCollection) const
 
sIterator_ImmutableIterator (const_iterator it) const
 
sIterator_ImmutableIterator () const
 
virtual iIteratorIterator (const_iterator it) const
 
virtual iIteratorIterator () const
 
tBool Contains (const Var &avVar) const
 
iIteratorFind (const Var &avVar) const
 
Var Get (const Var &aKey) const
 
Var GetFirst () const
 
Var GetLast () const
 
bool empty () const
 
tU32 size () const
 
const_iterator find (const tValType &aVal) const
 
const_iterator begin () const
 
const_iterator end () const
 
const_reverse_iterator rbegin () const
 
const_reverse_iterator rend () const
 
__forceinline const tContainerGetUnderlyingContainer () const
 

Static Public Member Functions

static tImmutableCreate ()
 
static tImmutableCreate (const tContainer &aContainer)
 
static tImmutableAdd (tImmutable *apColl, const Var &avVar)
 
static tImmutableRemove (tImmutable *apColl, const Var &avVar, tBool *apDidContain=NULL)
 
static tImmutablePut (tImmutable *apColl, const Var &aKey, const Var &aVal)
 
static tBool IsSameType (const iCollection *apCollection)
 

Protected Member Functions

 cCollectionImpl ()
 
 cCollectionImpl (const tContainer &aContainer)
 
__forceinline const tContainer_Base () const
 

Member Typedef Documentation

typedef cCollectionImpl<TRAITS,BASEIMPL> tThisImmutable
typedef TRAITS::tKeyTraits tKeyTraits
typedef TRAITS::tValTraits tValTraits
typedef TRAITS::tValueType tKeyType
typedef TRAITS::tValueType tValType
typedef TRAITS::tContainer tContainer
typedef tContainer::const_iterator const_iterator
typedef tContainer::const_reverse_iterator const_reverse_iterator

Constructor & Destructor Documentation

cCollectionImpl ( )
protected
cCollectionImpl ( const tContainer aContainer)
protected

Member Function Documentation

static tImmutable* Create ( )
static
static tImmutable* Create ( const tContainer aContainer)
static
static tImmutable* Add ( tImmutable apColl,
const Var avVar 
)
static
static tImmutable* Remove ( tImmutable apColl,
const Var avVar,
tBool apDidContain = NULL 
)
static
static tImmutable* Put ( tImmutable apColl,
const Var aKey,
const Var aVal 
)
static
tType GetKeyType ( ) const
tType GetValueType ( ) const
tBool IsEmpty ( ) const
tU32 GetSize ( ) const
tBool ContainsAll ( const iCollection apCollection) const
sIterator* _ImmutableIterator ( const_iterator  it) const
sIterator* _ImmutableIterator ( ) const
virtual iIterator* Iterator ( const_iterator  it) const
virtual
virtual iIterator* Iterator ( ) const
virtual
tBool Contains ( const Var avVar) const
iIterator* Find ( const Var avVar) const
Var Get ( const Var aKey) const
Var GetFirst ( ) const
Var GetLast ( ) const
static tBool IsSameType ( const iCollection apCollection)
static
bool empty ( ) const
tU32 size ( ) const
const_iterator find ( const tValType aVal) const
const_iterator begin ( ) const
const_iterator end ( ) const
const_reverse_iterator rbegin ( ) const
const_reverse_iterator rend ( ) const
__forceinline const tContainer& GetUnderlyingContainer ( ) const
Remarks
Assumes that the underlying container is read only and won't be modified.
__forceinline const tContainer& _Base ( ) const
protected