Home

entity_and_filter Class Reference
[Entity Operations]

Returns TRUE if both of its two child filters return TRUE. More...

#include <efilter.hxx>

Inheritance diagram for entity_and_filter:

Inheritance graph
[legend]
Collaboration diagram for entity_and_filter:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 entity_and_filter (entity_filter *left, entity_filter *right)
 C++ initialize constructor requests memory for this object and populates it with the data supplied as arguments.
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 both filters.


Detailed Description

Returns TRUE if both of its two child filters return TRUE.


Role: This class is a binary filter that returns TRUE if both of its two child filters return TRUE.


Constructor & Destructor Documentation

entity_and_filter::entity_and_filter ( entity_filter left,
entity_filter right 
)

C++ initialize constructor requests memory for this object and populates it with the data supplied as arguments.



Parameters:
left left entity filter.
right right entity filter.


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_and_filter::test ( const ENTITY e  )  const [virtual]

Tests both filters.



Role: This method returns TRUE if both the left and right filters return TRUE; both filters are always tested.

Parameters:
e entity.

Implements entity_binary_filter.