Home

ofstdvector

ofstdvector is a template container used in the openFrameworks ecosystem to store collections of elements with a standard vector interface while providing integration hooks for the framework’s parameter and serialization systems. It typically wraps a standard std::vector<T> and exposes the same element access and resizable storage, while adding compatibility with ofParameter, serialization, and GUI bindings.

Design and behavior: It is implemented as a thin wrapper around std::vector, preserving its stable iteration

Serialization and integration: In typical openFrameworks workflows, ofstdvector can be used with the framework’s parameter system

Usage notes: Because of its role as a bridge to the framework, ofstdvector may impose constraints or

See also: std::vector, ofParameter, openFrameworks, serialization.

order,
random
access,
and
efficient
memory
layout.
It
supports
common
vector
operations
such
as
push_back,
emplace_back,
pop_back,
clear,
resize,
and
size,
and
it
provides
iterators
for
range-based
loops.
The
container
is
move-enabled
where
available
and
aims
to
behave
like
a
drop-in
replacement
for
std::vector
in
framework
code,
while
allowing
the
framework
to
track
changes
and
interact
with
its
serialization
system.
to
expose
collections
as
parameters
that
can
be
saved
to
disk
or
edited
in
the
UI.
It
often
includes
helper
types
or
adapters
to
convert
to
and
from
standard
vectors
for
interoperability
with
generic
C++
code
and
with
the
framework’s
JSON/XML
serializers.
require
including
a
specific
header
file.
When
performance-critical
code
does
not
require
framework
features,
a
plain
std::vector
may
be
preferred.