LV2 Toolkit  1.2.0
Classes | Public Types | Public Member Functions | List of all members
AtomSequence Struct Reference

#include <atom.hpp>

Classes

class  iterator
 

Public Types

typedef AtomEventpointer
 
typedef AtomEventreference
 
typedef const AtomEventconst_pointer
 
typedef const AtomEventconst_reference
 

Public Member Functions

 AtomSequence (const void *seq)
 
 AtomSequence (LV2_Atom_Sequence *seq)
 
 AtomSequence (ForgeRef ref)
 
uint32_t pad () const
 
uint32_t size () const
 
uint32_t unit () const
 
LV2_Atom_Sequence * cobj ()
 
 operator bool () const
 
 operator LV2_Atom_Sequence * () const
 
 operator uint8_t * () const
 
void append (const AtomEvent &ev)
 
void insert (const AtomEvent &ev)
 
iterator begin () const
 
iterator end () const
 

Detailed Description

A basic wrapper around LV2_Atom_Sequence

Constructor & Destructor Documentation

AtomSequence ( const void *  seq)
inline

Create an AtomSequence from raw data

Parameters
seqSequence Pointer (castable to LV2_Atom_Sequence)
AtomSequence ( LV2_Atom_Sequence *  seq)
inline

Create an AtomSequnce from an LV2_Atom_Sequence

Parameters
seqThe sequence to wrap
AtomSequence ( ForgeRef  ref)
inline

Create an AtomSequence from a ForgeRef

Member Function Documentation

void append ( const AtomEvent ev)
inline

Append an AtomEvent to the end of the sequence

Parameters
evThe event to add
iterator begin ( ) const
inline

Returns an iterator starting at the first event

LV2_Atom_Sequence* cobj ( )
inline

Return the sequence's c-type

iterator end ( ) const
inline

Returns the end iterator of this sequence

void insert ( const AtomEvent ev)
inline

Insert an AtomEvent into the middle of the sequence

Parameters
evThe event to insert
operator bool ( ) const
inline
operator LV2_Atom_Sequence * ( ) const
inline
operator uint8_t * ( ) const
inline
uint32_t pad ( ) const
inline

Return the sequence body's pad

uint32_t size ( ) const
inline

Return the sequence's body size

uint32_t unit ( ) const
inline

Return the sequence's unit


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