Hurricane VLSI Database


Hurricane::SubTypeCollection< Type, SubType > Class Template Reference

Applies a Type Filter to a Collection. More...

Inheritance diagram for Hurricane::SubTypeCollection< Type, SubType >:

Public Member Functions

Collection Collection

Utilitarians

Collection::Fill Collection::Fill Collection::Fill

Remarks
The elements are added to the container in the order with which the collection is visited. So the same order will appear in a list or a vector, but for a set they will be inserted according to the set ordering method.
 SubTypeCollection (const Collection< Type > *collection)
 SubTypeCollection (const GenericCollection< Type > &collection)
 SubTypeCollection (const SubTypeCollection &subTypeCollection)

Detailed Description

template<class Type, class SubType>
class Hurricane::SubTypeCollection< Type, SubType >

Applies a Type Filter to a Collection.

Build a sub-Collection of all the elements of the primary that are of a certain sub-type. The filtering mechanism relies on a dynamic_cast<> so there must be an inheritance path between the Collection type and the sub-type.

Constructor & Destructor Documentation

◆ SubTypeCollection() [1/3]

template<class Type, class SubType>
Hurricane::SubTypeCollection< Type, SubType >::SubTypeCollection ( const Collection< Type > * collection)
inline

Constructor from a primary Collection and a Filter.

◆ SubTypeCollection() [2/3]

template<class Type, class SubType>
Hurricane::SubTypeCollection< Type, SubType >::SubTypeCollection ( const GenericCollection< Type > & collection)
inline

Constructor from a primary Collection and a Filter.

◆ SubTypeCollection() [3/3]

template<class Type, class SubType>
Hurricane::SubTypeCollection< Type, SubType >::SubTypeCollection ( const SubTypeCollection< Type, SubType > & subTypeCollection)
inline

Copy Constructor.


The documentation for this class was generated from the following files:


Generated by doxygen 1.16.1 on Return to top of page
Hurricane VLSI Database Copyright © 2000-2020 Bull S.A. All rights reserved