Classes Files

Wombat::MamaFieldCacheFieldStringVector

More…

#include <MamaFieldCacheFieldTypes.h>

Inherits from Wombat::MamaFieldCacheFieldBase

Public Functions

  Name
void set(MamaFieldCacheField & field, const char ** values, mama_size_t size)
void get(const MamaFieldCacheField & field, const char **& values, mama_size_t & size) const
const char * 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()

Detailed Description

class Wombat::MamaFieldCacheFieldStringVector;

MamaFieldCacheField: String vector field

Public Functions Documentation

function set

void set(
    MamaFieldCacheField & field,
    const char ** 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 string vector field.

function get

void get(
    const MamaFieldCacheField & field,
    const char **& 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 string vector.

function get

const char * 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 string vector field.

Protected Functions Documentation

function checkType

inline void checkType(
    const MamaFieldCacheField & field
) const

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