BAttributeDefs Class Reference

#include <BAttributeDefs.h>

List of all members.


Detailed Description

A collection of BAttributeDef objects associated with a BVectorLayer.

Public Member Functions

void Add (const BAttributeDef &attrDef)
 Adds a BAttributeDef to this BAttributeDefs collection.
 BAttributeDefs ()
 Default constructor, which creates an empty collection.
void Clear (void)
 Removes all BAttributeDef objects from this BAttributeDefs collection.
BAttributeDefGetAt (size_t index)
 Gets the BAttributeDef at the specified index in this BAttributeDefs collection.
const BAttributeDefGetAt (size_t index) const
 Gets the BAttributeDef at the specified index in this BAttributeDefs collection.
BAttributeDefGetByAttributeName (const BString &attributeName)
 Finds the specified BAttributeDef in this BAttributeDefs.
const BAttributeDefGetByAttributeName (const BString &attributeName) const
 Finds the specified BAttributeDef in this BAttributeDefs.
size_t GetCount (void) const
 Gets the number of BAttributeDef objects in this BAttributeDefs collection.
Int32 GetIndexOfName (const BString &attributeName) const
 Finds the index of the specified BAttributeDef in this BAttributeDefs.
bool HasAttribute (const BString &attributeName) const
 Determine whether or not this BAttributeDefs collection contains a BAttributeDef with the specified name.
bool operator!= (const BAttributeDefs &defs) const
 Inequality operator.
bool operator== (const BAttributeDefs &defs) const
 Equality operator.
void Remove (const BAttributeDef &attrDef)
 Removes a BAttributeDef from this BAttributeDefs collection.
void Reserve (size_t size)
 Reserves space in the collection for the specified number of objects.
virtual ~BAttributeDefs ()
 Destructor.

Constructor & Destructor Documentation

BAttributeDefs (  )  [inline]

Default constructor, which creates an empty collection.

virtual ~BAttributeDefs (  )  [inline, virtual]

Destructor.


Member Function Documentation

void Add ( const BAttributeDef attrDef  )  [inline]

Adds a BAttributeDef to this BAttributeDefs collection.

Parameters:
attrDef The BAttributeDef to add to this collection.

void Clear ( void   )  [inline]

Removes all BAttributeDef objects from this BAttributeDefs collection.

BAttributeDef& GetAt ( size_t  index  )  [inline]

Gets the BAttributeDef at the specified index in this BAttributeDefs collection.

Parameters:
index The zero-based index of the requested BAttributeDef.
Returns:
The BAttributeDef at the specified index.

const BAttributeDef& GetAt ( size_t  index  )  const [inline]

Gets the BAttributeDef at the specified index in this BAttributeDefs collection.

Parameters:
index The zero-based index of the requested BAttributeDef.
Returns:
The BAttributeDef at the specified index.

BAttributeDef& GetByAttributeName ( const BString attributeName  ) 

Finds the specified BAttributeDef in this BAttributeDefs.

Parameters:
attributeName The name of the desired BAttributeDef.
Returns:
The BAttributeDef with the specified name.
Exceptions:
BKeyNotFoundException This exception will be thrown if there does not exist a BAttributeDef with the specified name in this BAttributeDefs.

const BAttributeDef& GetByAttributeName ( const BString attributeName  )  const

Finds the specified BAttributeDef in this BAttributeDefs.

Parameters:
attributeName The name of the desired BAttributeDef.
Returns:
The BAttributeDef with the specified name.
Exceptions:
BKeyNotFoundException This exception will be thrown if there does not exist a BAttributeDef with the specified name in this BAttributeDefs.

size_t GetCount ( void   )  const [inline]

Gets the number of BAttributeDef objects in this BAttributeDefs collection.

Returns:
The number of attribute definitions in the collection

Int32 GetIndexOfName ( const BString attributeName  )  const

Finds the index of the specified BAttributeDef in this BAttributeDefs.

Parameters:
attributeName The name of the desired BAttributeDef.
Returns:
The zero-based index of the desired BAttributeDef in this BAttributeDefs or -1 if there does not exist a BAttributeDef with the specified name.

bool HasAttribute ( const BString attributeName  )  const

Determine whether or not this BAttributeDefs collection contains a BAttributeDef with the specified name.

Parameters:
attributeName The name of the BAttributeDef in question.
Returns:
True if this BAttributeDefs collection contains a BAttributeDef with the specified name and false otherwise.

bool operator!= ( const BAttributeDefs defs  )  const [inline]

Inequality operator.

Parameters:
defs The BAttributeDefs to be compared to this one.
Returns:
True if the BAttributeDefs do not have the same value and false otherwise.

bool operator== ( const BAttributeDefs defs  )  const

Equality operator.

Parameters:
defs The BAttributeDefs to be compared to this one.
Returns:
True if the two BAttributeDefs have the same value and false otherwise.

void Remove ( const BAttributeDef attrDef  ) 

Removes a BAttributeDef from this BAttributeDefs collection.

Parameters:
attrDef The BAttributeDef to remove from this collection.

void Reserve ( size_t  size  )  [inline]

Reserves space in the collection for the specified number of objects.

Parameters:
size The number of objects to reserve space for.


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

GeoTranslate 5.0 From Blue Marble Geographics