Compartilhar via


CGenericList Class (Compact 2013)

3/26/2014

CBaseObject Class

     CGenericList Class

This is a template class that allows for a type-specific implementation of a list. It is derived from CBaseList and uses that class's typeless implementation.

The constructor creates a CBaseList object, and all CGenericList member functions call CBaseList member functions but provide type-checking dependent on the template.

Member Functions

Member function

Description

AddAfter

Inserts a node or list of nodes after the specified node.

AddBefore

Inserts a node or list of nodes before the specified node.

AddHead

Inserts a node or list of nodes at the front of the list.

AddTail

Appends a node or list of nodes to the end of the list.

CGenericList

Constructs a CGenericList object.

Find

Returns the first position that contains the specified object.

Get

Returns the object at the specified position.

GetCount

Returns the number of objects (object count) in the list.

GetHead

Returns the object at the head of the list.

GetHeadPosition

Returns a cursor identifying the first element of the list.

GetNext

Returns the specified object and update position.

GetTailPosition

Returns a cursor identifying the last element of the list.

Remove

Removes the specified node from the list.

RemoveHead

Removes the first node in the list.

RemoveTail

Removes the last node in the list.

Requirements

Header

dshow.h,
Streams.h

Library

ole32.lib,
Ole32auth.lib,
Strmbase.lib,
Strmiids.lib,
uuid.lib

See Also

Reference

DirectShow Classes