Click or drag to resize
BroccoliSharp BroVector Class
Represents a Bro vector implemented as an IList<BroValue>.
Inheritance Hierarchy
SystemObject
  BroccoliSharpBroVector

Namespace: BroccoliSharp
Assembly: BroccoliSharp (in BroccoliSharp.dll) Version: 1.0.5434.15853
Syntax
public class BroVector : IList<BroValue>, 
	ICollection<BroValue>, IEnumerable<BroValue>, IEnumerable, 
	IDisposable

The BroVector type exposes the following members.

Constructors
Methods
  NameDescription
Public methodAdd(BroValue)
Adds value to this BroVector.
Public methodAdd(Object, BroType, String)
Adds value of type to this BroVector.
Public methodClear
Removes all items from this BroVector.
Public methodClone
Gets a clone of this BroVector.
Public methodContains
Determines whether this BroVector contains specified value.
Public methodCopyTo
Copies the elements of this BroVector to an Array, starting at a particular Array index.
Public methodDispose
Releases all the resources used by this BroVector object.
Protected methodDispose(Boolean)
Releases the unmanaged resources used by this BroVector object and optionally releases the managed resources.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Releases the unmanaged resources before this BroVector object is reclaimed by GC.
(Overrides ObjectFinalize.)
Public methodGetEnumerator
Returns an enumerator that iterates through the collection.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOf
Determines the index of the specified value in this BroVector.
Public methodInsert(Int32, BroValue)
Inserts value in this BroVector at the specified index.
Public methodInsert(Int32, Object, BroType, String)
Inserts value of type in this BroVector at the specified index.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemove
Removes the first occurrence of the specified BroValue from this BroVector.
Public methodRemoveAt
Removes the BroValue item at the specified index.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyCount
Gets the number of elements contained in this BroVector.
Public propertyIsReadOnly
Gets a value indicating whether this BroVector is read-only.
Public propertyItem
Gets or sets the BroValue at the specified index.
Top
Remarks

Handling Vectors

The functionality of a BroVector is virtually identical to that of a .NET ListT with a type implementation of a BroValue.

Thread Safety
Implementation of BroVector is not synchronized, as a result, enumerating through the vector will intrinsically not be a thread-safe procedure. In cases where enumeration contends with write accesses, vector should be locked during the entire enumeration. To allow the vector to be accessed by multiple threads for reading and writing, synchronization will be required.
See Also