Classes Files

Wombat::MamaFieldCacheFieldPriceVector

More…

#include <MamaFieldCacheFieldTypes.h>

Inherits from Wombat::MamaFieldCacheFieldBase, Wombat::MamaFieldCacheFieldVector< MamaPrice >

Public Functions

  Name
void set(MamaFieldCacheField & field, const MamaPrice * values, mama_size_t size)
void get(const MamaFieldCacheField & field, const MamaPrice *& values, mama_size_t & size) const
const MamaPrice * get(const MamaFieldCacheField & field, mama_size_t index) const

Protected Functions

  Name
void checkType(const MamaFieldCacheField & field) const

Additional inherited members

Public Functions inherited from Wombat::MamaFieldCacheFieldBase

  Name
virtual ~MamaFieldCacheFieldBase()

Protected Functions inherited from Wombat::MamaFieldCacheFieldBase

  Name
  MamaFieldCacheFieldBase()

Protected Functions inherited from Wombat::MamaFieldCacheFieldVector< MamaPrice >

  Name
  MamaFieldCacheFieldVector()
  ~MamaFieldCacheFieldVector()
void grow(mama_size_t newSize) const

Protected Attributes inherited from Wombat::MamaFieldCacheFieldVector< MamaPrice >

  Name
T * mValues
mama_size_t mSize

Detailed Description

class Wombat::MamaFieldCacheFieldPriceVector;

MamaFieldCacheField: Price vector field

Public Functions Documentation

function set

void set(
    MamaFieldCacheField & field,
    const MamaPrice * values,
    mama_size_t size
)

Parameters:

  • field The field to set the values to.
  • values The new values of the field.
  • size The number of fields in values.

Set the values of a MamaPrice vector field.

function get

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

Parameters:

  • field The field to get the values from.
  • values A reference to the values to be returned.
  • size A reference to the size of the vector to be returned.

Return the values of a MamaPrice vector field.

function get

const MamaPrice * get(
    const MamaFieldCacheField & field,
    mama_size_t index
) const

Parameters:

  • field The field to get the value from.
  • index The index of the element of the vector to get the value from.

Return: The value of the field.

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

Protected Functions Documentation

function checkType

inline void checkType(
    const MamaFieldCacheField & field
) const

Updated on 2023-03-31 at 15:29:24 +0100