Home

entity_test_filter Class Reference
[Entity Operations]

Returns TRUE if the given C++ test function returns TRUE. More...

#include <efilter.hxx>

Inheritance diagram for entity_test_filter:

Inheritance graph
[legend]
Collaboration diagram for entity_test_filter:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 entity_test_filter (entity_test_proc proc)
 C++ constructor, creating an entity_test_filter using the specified parameters.
void increment_use ()
 Increments the use count for an entity_filter.
void lose ()
 Posts a delete bulletin to the bulletin board indicating the instance is no longer used in the active model.
virtual logical test (const ENTITY *e) const
 Tests the child filter, This method returns TRUE if and only if the child function returns TRUE.


Detailed Description

Returns TRUE if the given C++ test function returns TRUE.


Role: This class is a filter that returns TRUE if the given C++ test function returns TRUE.


Constructor & Destructor Documentation

entity_test_filter::entity_test_filter ( entity_test_proc  proc  ) 

C++ constructor, creating an entity_test_filter using the specified parameters.



Parameters:
proc test procedure.


Member Function Documentation

void entity_filter::increment_use (  )  [inline, inherited]

Increments the use count for an entity_filter.



Role: This object is not destroyed while users still exist.

void entity_filter::lose (  )  [inherited]

Posts a delete bulletin to the bulletin board indicating the instance is no longer used in the active model.



Role: The lose methods for attached attributes are also called.

virtual logical entity_test_filter::test ( const ENTITY e  )  const [virtual]

Tests the child filter, This method returns TRUE if and only if the child function returns TRUE.



Parameters:
e entity.

Implements entity_filter.