ucc::vectorof< T > Class Template Reference
A templated vector for a list of a specific Object subtype.
More...
#include <vector.h>
Public Member Functions |
| vectorof () |
| Create an empty vector for specified type.
|
| vectorof (vectorsize_t size) |
| Create an empty vector of allocated size for specified type.
|
T * | get (int index) |
| Get object pointer of specified type from vector.
|
T * | operator() (vectorsize_t position) |
| Retrieve a typed member of the vector directly.
|
T * | begin (void) |
| Get the first typed object pointer contained in the vector.
|
T * | end (void) |
| Get the last typed object pointer contained in the vector.
|
Vector & | operator+ (Vector &vector) |
| Concatenate typed vector in an expression.
|
Detailed Description
template<class T>
class ucc::vectorof< T >
A templated vector for a list of a specific Object subtype.
The templated type must be derived from Object.
- Author:
- David Sugar <dyfet@gnutelephony.org>
Definition at line 428 of file vector.h.
Constructor & Destructor Documentation
Create an empty vector of allocated size for specified type.
- Parameters:
-
| size | of vector to allocate. |
Definition at line 440 of file vector.h.
Member Function Documentation
Get the first typed object pointer contained in the vector.
- Returns:
- first typed object pointer.
Definition at line 462 of file vector.h.
Get the last typed object pointer contained in the vector.
- Returns:
- last typed object pointer.
Definition at line 469 of file vector.h.
Get object pointer of specified type from vector.
- Parameters:
-
| index | of typed member to return, < 0 to use from end of list. |
- Returns:
- typed object pointer of member.
Definition at line 447 of file vector.h.
template<class T >
T* ucc::vectorof< T >::operator() |
( |
vectorsize_t |
position |
) |
[inline] |
Retrieve a typed member of the vector directly.
- Parameters:
-
| position | to retrieve object from. |
- Returns:
- typed object pointer retrieved from vector.
Reimplemented from ucc::Vector.
Definition at line 455 of file vector.h.
Concatenate typed vector in an expression.
- Parameters:
-
- Returns:
- effective object to continue in expression.
Definition at line 477 of file vector.h.
The documentation for this class was generated from the following file: