Back to index

salome-gui  6.5.0
Public Member Functions | Protected Attributes | Friends
SALOME_TypeFilter Class Reference

#include <SALOME_TypeFilter.hxx>

Inheritance diagram for SALOME_TypeFilter:
Inheritance graph
[legend]
Collaboration diagram for SALOME_TypeFilter:
Collaboration graph
[legend]

List of all members.

Public Member Functions

voidoperator new (size_t, void *anAddress)
voidoperator new (size_t size)
void operator delete (void *anAddress)
Standard_EXPORT SALOME_TypeFilter (const Standard_CString aGivenKind)
 Constructor.
virtual Standard_EXPORT
Standard_Boolean 
IsOk (const Handle(SALOME_InteractiveObject)&anobj) const
Standard_EXPORT ~SALOME_TypeFilter ()
Standard_EXPORT const Handle (Standard_Type)&DynamicType() const
Standard_EXPORT Standard_Boolean IsKind (const Handle(Standard_Type)&) const

Protected Attributes

Standard_CString myKind

Friends

Standard_EXPORT friend
Handle_Standard_Type & 
SALOME_TypeFilter_Type_ ()
Standard_EXPORT friend
Handle_Standard_Type & 
SALOME_Filter_Type_ ()

Detailed Description

Definition at line 50 of file SALOME_TypeFilter.hxx.


Constructor & Destructor Documentation

SALOME_TypeFilter::SALOME_TypeFilter ( const Standard_CString  TheKind)

Constructor.

Parameters:
TheKind- type of filter

Definition at line 34 of file SALOME_TypeFilter.cxx.

                                                                  :
myKind(TheKind){}

Definition at line 33 of file SALOME_TypeFilter.ixx.

{}

Member Function Documentation

Standard_EXPORT const SALOME_TypeFilter::Handle ( Standard_Type  ) const

Reimplemented from SALOME_Filter.

Standard_Boolean SALOME_TypeFilter::IsKind ( const Handle(Standard_Type)&  AType) const

Reimplemented from SALOME_Filter.

Definition at line 78 of file SALOME_TypeFilter.ixx.

{ 
  return (STANDARD_TYPE(SALOME_TypeFilter) == AType || SALOME_Filter::IsKind(AType)); 
}

Here is the call graph for this function:

Standard_Boolean SALOME_TypeFilter::IsOk ( const Handle(SALOME_InteractiveObject)&  anObj) const [virtual]
Returns:
true if object passes filter
Parameters:
anObj- object to be checked

Implements SALOME_Filter.

Definition at line 41 of file SALOME_TypeFilter.cxx.

{
  return anObj->isComponentType( myKind );
}

Here is the call graph for this function:

void SALOME_TypeFilter::operator delete ( void anAddress) [inline]

Reimplemented from SALOME_Filter.

Definition at line 62 of file SALOME_TypeFilter.hxx.

      { 
        if (anAddress) Standard::Free((Standard_Address&)anAddress); 
      }
void* SALOME_TypeFilter::operator new ( size_t  ,
void anAddress 
) [inline]

Reimplemented from SALOME_Filter.

Definition at line 54 of file SALOME_TypeFilter.hxx.

      {
        return anAddress;
      }
void* SALOME_TypeFilter::operator new ( size_t  size) [inline]

Reimplemented from SALOME_Filter.

Definition at line 58 of file SALOME_TypeFilter.hxx.

      { 
        return Standard::Allocate(size); 
      }

Friends And Related Function Documentation

Standard_EXPORT friend Handle_Standard_Type& SALOME_Filter_Type_ ( ) [friend, inherited]

Definition at line 37 of file SALOME_Filter.ixx.

{

    static Handle_Standard_Type aType1 = STANDARD_TYPE(MMgt_TShared);
  if ( aType1.IsNull()) aType1 = STANDARD_TYPE(MMgt_TShared);
  static Handle_Standard_Type aType2 = STANDARD_TYPE(Standard_Transient);
  if ( aType2.IsNull()) aType2 = STANDARD_TYPE(Standard_Transient);
 

  static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,NULL};
  static Handle_Standard_Type _aType = new Standard_Type("SALOME_Filter",
                                                         sizeof(SALOME_Filter),
                                                         1,
                                                         (Standard_Address)_Ancestors,
                                                         (Standard_Address)NULL);

  return _aType;
}
Standard_EXPORT friend Handle_Standard_Type& SALOME_TypeFilter_Type_ ( ) [friend]

Definition at line 37 of file SALOME_TypeFilter.ixx.

{

    static Handle_Standard_Type aType1 = STANDARD_TYPE(SALOME_Filter);
  if ( aType1.IsNull()) aType1 = STANDARD_TYPE(SALOME_Filter);
  static Handle_Standard_Type aType2 = STANDARD_TYPE(MMgt_TShared);
  if ( aType2.IsNull()) aType2 = STANDARD_TYPE(MMgt_TShared);
  static Handle_Standard_Type aType3 = STANDARD_TYPE(Standard_Transient);
  if ( aType3.IsNull()) aType3 = STANDARD_TYPE(Standard_Transient);
 

  static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,NULL};
  static Handle_Standard_Type _aType = new Standard_Type("SALOME_TypeFilter",
                                                         sizeof(SALOME_TypeFilter),
                                                         1,
                                                         (Standard_Address)_Ancestors,
                                                         (Standard_Address)NULL);

  return _aType;
}

Member Data Documentation

Standard_CString SALOME_TypeFilter::myKind [protected]

Definition at line 93 of file SALOME_TypeFilter.hxx.


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