OpenMAMA C++ API
Wombat::MamaFieldCacheFieldPriceVector Class Reference

MamaFieldCacheField: Price vector field. More...

#include <MamaFieldCacheFieldTypes.h>

Inheritance diagram for Wombat::MamaFieldCacheFieldPriceVector:
Wombat::MamaFieldCacheFieldBase Wombat::MamaFieldCacheFieldVector< MamaPrice >

Public Member Functions

void set (MamaFieldCacheField &field, const MamaPrice *values, mama_size_t size)
 Set the values of a MamaPrice vector field. More...
 
void get (const MamaFieldCacheField &field, const MamaPrice *&values, mama_size_t &size) const
 Return the values of a MamaPrice vector field. More...
 
const MamaPriceget (const MamaFieldCacheField &field, mama_size_t index) const
 Return the value of a specific field of a MamaPrice vector field. More...
 
- Public Member Functions inherited from Wombat::MamaFieldCacheFieldBase
virtual ~MamaFieldCacheFieldBase ()
 

Protected Member Functions

void checkType (const MamaFieldCacheField &field) const
 
- Protected Member Functions inherited from Wombat::MamaFieldCacheFieldBase
 MamaFieldCacheFieldBase ()
 
- Protected Member Functions inherited from Wombat::MamaFieldCacheFieldVector< MamaPrice >
 MamaFieldCacheFieldVector ()
 
 ~MamaFieldCacheFieldVector ()
 
void grow (mama_size_t newSize) const
 

Additional Inherited Members

- Protected Attributes inherited from Wombat::MamaFieldCacheFieldVector< MamaPrice >
MamaPricemValues
 
mama_size_t mSize
 

Detailed Description

MamaFieldCacheField: Price vector field.

Member Function Documentation

§ set()

void Wombat::MamaFieldCacheFieldPriceVector::set ( MamaFieldCacheField field,
const MamaPrice values,
mama_size_t  size 
)

Set the values of a MamaPrice vector field.

Parameters
fieldThe field to set the values to.
valuesThe new values of the field.
sizeThe number of fields in values.

Referenced by Wombat::setFieldValue().

§ get() [1/2]

void Wombat::MamaFieldCacheFieldPriceVector::get ( const MamaFieldCacheField field,
const MamaPrice *&  values,
mama_size_t size 
) const

Return the values of a MamaPrice vector field.

Parameters
fieldThe field to get the values from.
valuesA reference to the values to be returned.
sizeA reference to the size of the vector to be returned.

§ get() [2/2]

const MamaPrice* Wombat::MamaFieldCacheFieldPriceVector::get ( const MamaFieldCacheField field,
mama_size_t  index 
) const

Return the value of a specific field of a MamaPrice vector field.

Parameters
fieldThe field to get the value from.
indexThe index of the element of the vector to get the value from.
Returns
The value of the field.

§ checkType()

void Wombat::MamaFieldCacheFieldPriceVector::checkType ( const MamaFieldCacheField field) const
inlineprotected