#include <Array.h>
Inheritance diagram for CODEX_ASN1::Array< T >:


Public Types | |
| typedef T | ValueType |
| template argument -- useful when using typedefs | |
| typedef vector< T * > | ArrayType |
| internal representation of the array | |
| typedef ArrayType::const_iterator | ArrayItr |
| iterator to the elements of the array | |
Public Member Functions | |
| Array () | |
| Default constructor, for creating an object to be filled or unmarshalled. | |
| Array (const Array &aArr) | |
| Create an Array from another Array. | |
| virtual | ~Array () |
| Destructor -- frees the objects held. | |
| void | operator= (const Array &aArr) |
| Assignment operator -- deep copy. | |
| unsigned int | size () const |
| Length of the array. | |
| const T * | element (unsigned int i) const |
| Element i of the array. | |
| ArrayItr | begin () const |
| Iterator to the beginning of the array. | |
| ArrayItr | end () const |
| Iterator to the end of the array. | |
| void | append (T *item) |
Add item to the array, taking ownership. | |
| int | marshal (unsigned char **pp) const |
| This function creates a serialized representation of the object, which is returned through the argument pp. | |
| void * | unmarshal (void *bogus, unsigned char **pp, long length) |
| This function takes a serialized representation of the object and recreates the object representation. | |
| bool | initialized () const |
Protected Attributes | |
| bool | m_initialized |
| Has this object been initialized yet, or is it still blank? | |
Definition at line 34 of file Array.h.
|
|
||||||||||
|
This function creates a serialized representation of the object, which is returned through the argument pp. This must be overridden by the concrete derived class.
Implements CODEX_ASN1::Base. Definition at line 116 of file Array.h. Referenced by CODEX_KeyService::SupportedKeyStoredMsg::marshal(), CODEX_KeyService::SupportedClientResponse< RespType, ReqType >::marshal(), CODEX_Ciphers::RSAPlaintextPK::marshal(), CODEX_APSS::FinishedMsg::marshal(), CODEX_APSS::ContributeMsg::marshal(), CODEX_Ciphers::RSAPlaintextPK::RSAPlaintextPK(), and CODEX_Ciphers::RSAPlaintextPK::verify(). |
|
||||||||||||||||||||
|
This function takes a serialized representation of the object and recreates the object representation. This must be overridden by the concrete derived class.
Implements CODEX_ASN1::Base. Definition at line 142 of file Array.h. Referenced by CODEX_KeyService::SupportedKeyStoredMsg::unmarshal(), CODEX_KeyService::SupportedClientResponse< RespType, ReqType >::unmarshal(), CODEX_Ciphers::RSAPlaintextPK::unmarshal(), CODEX_APSS::FinishedMsg::unmarshal(), and CODEX_APSS::ContributeMsg::unmarshal(). |
1.4.1