Rhino C++ API
8.13
|
#include <rhinoSdkEventWatcher.h>
Public Member Functions | |
CRhinoUuidCollection () | |
CRhinoUuidCollection (const CRhinoUuidCollection &src) | |
CRhinoUuidCollection (int capacity) | |
~CRhinoUuidCollection () | |
bool | AddUuid (ON_UUID uuid, bool bCheckForDupicates=true) |
int | Count () const |
void | Empty () |
bool | FindUuid (ON_UUID uuid) const |
CRhinoUuidCollection & | operator= (CRhinoUuidCollection &src) |
bool | RemoveUuid (ON_UUID uuid) |
Copyright (c) 1993-2023 Robert McNeel & Associates. All rights reserved. Rhinoceros is a registered trademark of Robert McNeel & Associates.
THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY. ALL IMPLIED WARRANTIES OF FITNESS FOR ANY PARTICULAR PURPOSE AND OF MERCHANTABILITY ARE HEREBY DISCLAIMED.
For complete Rhino SDK copyright information see http://www.rhino3d.com/developer. Description: The CRhinoUuidCollection class provides a tool to efficiently maintain a collection of uuids and determine if a uuid is in the collection.
This class is useful when an event watcher needs to watch for events happening to a specific object. Simply add a CRhinoUuidCollection member to your event watcher class and then
CRhinoUuidCollection::CRhinoUuidCollection | ( | ) |
CRhinoUuidCollection::CRhinoUuidCollection | ( | int | capacity | ) |
CRhinoUuidCollection::~CRhinoUuidCollection | ( | ) |
CRhinoUuidCollection::CRhinoUuidCollection | ( | const CRhinoUuidCollection & | src | ) |
bool CRhinoUuidCollection::AddUuid | ( | ON_UUID | uuid, |
bool | bCheckForDupicates = true |
||
) |
Description: Adds a uuid to the collection. Parameters: uuid - [in] id to add. bCheckForDupicates - [in] if true, then the uuid is not added if it is already in the collection. If you know uuid is not in the collection or you don't care about dupicates, and you are going to have a large collection of uuids, then setting bCheckForDupicates=false will speed up the addition of uuids. Returns: True if uuid was added. False if uuid was not added because it is already in the collection.
int CRhinoUuidCollection::Count | ( | ) | const |
Returns: Number of active uuids in the collection.
void CRhinoUuidCollection::Empty | ( | ) |
Description: Provides an efficient way to empty a collection so that it can be used again.
bool CRhinoUuidCollection::FindUuid | ( | ON_UUID | uuid | ) | const |
Description: Determine if a uuid is in the collection. Returns: True if uuid is in the collection.
CRhinoUuidCollection& CRhinoUuidCollection::operator= | ( | CRhinoUuidCollection & | src | ) |
bool CRhinoUuidCollection::RemoveUuid | ( | ON_UUID | uuid | ) |
Description: Adds a uuid to the collection. Parameters: uuid - [in] id to remove Returns: True if uuid was in collection and was removed. False if uuid was not in the collection.