RTI Connext Modern C++ API  Version 6.1.0
rti::flat::AbstractListBuilder Class Reference

Base class of all array and sequence builders. More...

#include <SequenceBuilders.hpp>

Inheritance diagram for rti::flat::AbstractListBuilder:
rti::flat::AbstractBuilder rti::flat::AbstractSequenceBuilder rti::flat::MutableArrayBuilder< ElementBuilder, N > rti::flat::PrimitiveSequenceBuilder< char > rti::flat::FinalSequenceBuilder< ElementOffset > rti::flat::MutableSequenceBuilder< ElementBuilder > rti::flat::PrimitiveSequenceBuilder< T > rti::flat::StringBuilder

Protected Member Functions

unsigned int element_count () const
 Returns the current number of elements that have been added. More...
 
- Protected Member Functions inherited from rti::flat::AbstractBuilder
virtual ~AbstractBuilder ()
 If this is a member Builder, it calls finish(). More...
 

Additional Inherited Members

- Public Member Functions inherited from rti::flat::AbstractBuilder
void discard ()
 Discards a member in process of being built. More...
 
bool is_nested () const
 Returns whether this is a member Builder. More...
 
bool is_valid () const
 Whether this Builder is valid. More...
 
rti::xcdr::length_t capacity () const
 Returns the total capacity in bytes. More...
 

Detailed Description

Base class of all array and sequence builders.

Member Function Documentation

◆ element_count()

unsigned int rti::flat::AbstractListBuilder::element_count ( ) const
inlineprotected

Returns the current number of elements that have been added.

Referenced by rti::flat::MutableArrayBuilder< ElementBuilder, N >::build_next(), and rti::flat::MutableArrayBuilder< ElementBuilder, N >::finish().