Main Page Namespace List Class Hierarchy Compound List File List Namespace Members Compound Members Related Pages

# aka2::sequential_choice_binder< C, L > Struct Template Reference

Helper class to operate aka2::choice for sequence container. More...

`#include <choice.h>`

List of all members.

## Public Methods
template<class I> void | push_back (const I &v, const std::string &tagname)
template<class R> int | find_elements (R &r, const std::string &tagname) const

## Detailed Description

### template<class C, class L>
struct aka2::sequential_choice_binder< C, L >

Helper class to operate aka2::choice for sequence container.

Parameters:

  C | container type
  L | leaf class

Definition at line 335 of file choice.h.

## Member Function Documentation

template<class C, class L>
template<class R>
int aka2::sequential_choice_binder< C, L >::find_elements | ( | R & | r,
|  | const std::string & | tagname
| ) | const`[inline]`

  | Find child elements by tag name. Parameters:
  r | container(std::vector<>, std::list<>) to get results.
  tagname | tag name
  Returns: number of elements found. Exceptions:
  aka2::error | thrown when tagname is not defined.
Definition at line 379 of file choice.h.

template<class C, class L>
template<class I>
void aka2::sequential_choice_binder< C, L >::push_back | ( | const I & | v,
|  | const std::string & | tagname
| ) | `[inline]`

  | insert child element. Parameters:
  v | child element instance.
  tagname | tag name
  Exceptions:
  aka2::error | thrown when tag name is not defined, or tagname is not for class I.
Definition at line 360 of file choice.h.

The documentation for this struct was generated from the following file:

- choice.h