SIM_RelationshipArray Class Reference

Holds pointers to a number of SIM_Relationships. More...

#include <SIM_RelationshipArray.h>

Inheritance diagram for SIM_RelationshipArray:

UT_PtrArraySorted< SIM_Relationship * >

List of all members.

Public Member Functions

 SIM_RelationshipArray ()
virtual ~SIM_RelationshipArray ()
void forceUniqueRelationshipName (UT_String &name) const
SIM_RelationshipfindRelationshipByName (const char *name) const
 Find the relationship with the specified name.
int findRelationshipPosByName (const char *name) const
 Find the position of the relationship with the specified name.
void filter (const SIM_DataFilter &filter, SIM_DataArray &rels) const
void filterConst (const SIM_DataFilter &filter, SIM_ConstDataArray &rels) const

Static Public Member Functions

static int compareRelationshipNames (SIM_Relationship *const *, SIM_Relationship *const *)
 Function for sorting pointers according to the relationship name.


Detailed Description

Holds pointers to a number of SIM_Relationships.

Definition at line 25 of file SIM_RelationshipArray.h.


Constructor & Destructor Documentation

SIM_RelationshipArray::SIM_RelationshipArray (  ) 

virtual SIM_RelationshipArray::~SIM_RelationshipArray (  )  [virtual]


Member Function Documentation

static int SIM_RelationshipArray::compareRelationshipNames ( SIM_Relationship *const *  ,
SIM_Relationship *const *   
) [static]

Function for sorting pointers according to the relationship name.

void SIM_RelationshipArray::filter ( const SIM_DataFilter filter,
SIM_DataArray rels 
) const

Get all relationships of a particular type. Note that the filter is applied to the SIM_RelationshipData subdata of the SIM_Relationship, not to the SIM_Relationship itself.

void SIM_RelationshipArray::filterConst ( const SIM_DataFilter filter,
SIM_ConstDataArray rels 
) const

Get const pointers to all relationships of a particular type. As with filter(), the SIM_DataFilter is applied to the SIM_RelationshipData subdata, not the SIM_Relationship itself.

SIM_Relationship* SIM_RelationshipArray::findRelationshipByName ( const char *  name  )  const

Find the relationship with the specified name.

int SIM_RelationshipArray::findRelationshipPosByName ( const char *  name  )  const

Find the position of the relationship with the specified name.

void SIM_RelationshipArray::forceUniqueRelationshipName ( UT_String name  )  const

Change the supplied name to make it different from any other relationship in this array.


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

Generated on Mon Jan 28 00:30:00 2013 for HDK by  doxygen 1.5.9