Robox Library for Cpp: BCC/31 module 1.0.0
RLibCpp BCC/31 protocol implementation
Public Member Functions | List of all members
ReportListItem::Vector Class Reference

Class to handle with lists of ReportListItem. More...

#include <client.h>

Public Member Functions

 Vector ()
 Default constructor.
 
 Vector (const Vector &src)
 Copy constructor.
 
virtual ~Vector ()
 Virtual destructor.
 
Vectoroperator= (const Vector &src)
 Assigment operator overload.
 
ReportListItemoperator[] (size_t n)
 Returns a reference to the element at position n in the vector container.
 
const ReportListItemoperator[] (size_t n) const
 Returns a reference to the element at position n in the vector container.
 
ReportListItemat (size_t n)
 Returns a reference to the element at position n in the vector container.
 
const ReportListItemat (size_t n) const
 Returns a reference to the element at position n in the vector container.
 
ReportListItemfront () const
 Get a reference to the first element in the container.
 
ReportListItemback () const
 Get a reference to the last element in the container.
 
void pushBack (const ReportListItem &value)
 Appends the given element value to the end of the container.
 
void popBack ()
 Removes the last element of the container.
 
void resize (size_t count)
 Resizes the container to contain count elements. The new element will be initialized with default values.
 
void resize (size_t count, const ReportListItem &value)
 Resizes the container to contain count elements.
 
size_t size () const
 Get the number of elements in the container.
 
void clear ()
 Erases all elements from the container. After this call, size() returns zero.
 

Detailed Description

Class to handle with lists of ReportListItem.

Constructor & Destructor Documentation

◆ Vector() [1/2]

Vector ( )

Default constructor.

◆ Vector() [2/2]

Vector ( const Vector & src)

Copy constructor.

◆ ~Vector()

virtual ~Vector ( )
virtual

Virtual destructor.

Member Function Documentation

◆ at() [1/2]

ReportListItem & at ( size_t n)

Returns a reference to the element at position n in the vector container.

Parameters
nPosition of an element in the container.
Returns
The element at the specified position in the vector.

◆ at() [2/2]

const ReportListItem & at ( size_t n) const

Returns a reference to the element at position n in the vector container.

Parameters
nPosition of an element in the container.
Returns
The element at the specified position in the vector.

◆ back()

ReportListItem & back ( ) const

Get a reference to the last element in the container.

Returns
A reference to the last element in the container.

◆ clear()

void clear ( )

Erases all elements from the container. After this call, size() returns zero.

◆ front()

ReportListItem & front ( ) const

Get a reference to the first element in the container.

Returns
a reference to the first element in the container.

◆ operator=()

Vector & operator= ( const Vector & src)

Assigment operator overload.

Parameters
srcThe source object
Returns
A reference to this object

◆ operator[]() [1/2]

ReportListItem & operator[] ( size_t n)

Returns a reference to the element at position n in the vector container.

Parameters
nPosition of an element in the container.
Returns
The element at the specified position in the vector.

◆ operator[]() [2/2]

const ReportListItem & operator[] ( size_t n) const

Returns a reference to the element at position n in the vector container.

Parameters
nPosition of an element in the container.
Returns
The element at the specified position in the vector.

◆ popBack()

void popBack ( )

Removes the last element of the container.

◆ pushBack()

void pushBack ( const ReportListItem & value)

Appends the given element value to the end of the container.

Parameters
valueThe value of the element to append

◆ resize() [1/2]

void resize ( size_t count)

Resizes the container to contain count elements. The new element will be initialized with default values.

Parameters
countThe new size of the container

◆ resize() [2/2]

void resize ( size_t count,
const ReportListItem & value )

Resizes the container to contain count elements.

Parameters
countThe new size of the container
valueThe value to initialize the new elements with

◆ size()

size_t size ( ) const

Get the number of elements in the container.

Returns
The number of elements in the container