Web Analytics Made Easy - Statcounter
Skip to content

Class SBCClassAttributeChangeVector#

template <typename Class, typename Attribute>

ClassList > SBCClassAttributeChangeVector

This template class describes a vector of class attribute changes.

  • #include <SBCClassAttributeChangeVector.hpp>

Inherits the following classes: SBCContainerVector

Public Functions#

Type Name
SBCClassAttributeChangeVector ()
SBCClassAttributeChangeVector (unsigned int n)
~SBCClassAttributeChangeVector ()

Public Functions inherited from SBCContainerVector#

See SBCContainerVector

Type Name
SBCContainerVector ()
Constructs an empty vector.
SBCContainerVector (unsigned int n)
Constructs a vector of reserved size n .
SBCContainerVector (unsigned int n, unsigned int c, const T & t)
Constructs a vector of reserved size n and current sizec , filled with copies oft .
SBCContainerVector (T * a, unsigned int n)
Constructs a vector from an array.
SBCContainerVector (const SBCContainerVector & vector)
Copy constructor.
SBCContainerVector (SBCContainerVector && vector)
Move constructor.
SBCContainerVector (std::initializer_list< T > list)
Constructor using the initializer list.
unsigned int allocatedSize () const
Returns the allocated size (in memory) of the vector.
T & back ()
Returns a reference to the last element.
T const & back () const
Returns a reference to the last element.
iterator begin ()
Returns an iterator that points to the beginning of the vector.
const_iterator begin () const
Returns an iterator that points to the beginning of the vector.
void clear ()
Empties the vector.
bool contains (const T & t)
Returns true when the vector contains t .
bool empty () const
Returns true if and only if the vector is empty.
iterator end ()
Returns an iterator that points to the end of the vector.
const_iterator end () const
Returns an iterator that points to the end of the vector.
void free ()
Frees the memory allocated for the vector.
T & front ()
Returns a reference to the last element.
T const & front () const
Returns a reference to the last element.
T & getElement (unsigned int i)
Returns a reference to element i .
T const & getElement (unsigned int i) const
Returns a reference to element i .
unsigned int getMemoryFootPrint () const
Returns the memory footprint of the vector.
T * getPointer (unsigned int i)
Returns a pointer to element i .
T const * getPointer (unsigned int i) const
Returns a pointer to element i .
void insert (unsigned int i, const T & t)
Inserts t at positioni if possible. If an element was present at positioni , it is pushed at the back of the vector.
void insertLinear (unsigned int i, const T & t)
bool operator!= (const SBCContainerVector & other)
Returns whether this vector is different from an other vector.
SBCContainerVector & operator= (const SBCContainerVector & vector)
Copy assignment.
SBCContainerVector & operator= (SBCContainerVector && vector)
Move assignment.
SBCContainerVector & operator= (std::initializer_list< T > list)
Assignment using the initializer list.
bool operator== (const SBCContainerVector & other)
Returns whether this vector is equal to an other vector.
T & operator[] (unsigned int i)
Returns a reference to element i .
T const & operator[] (unsigned int i) const
Returns a reference to element i .
void pop_back ()
Removes the last element from the vector.
void print (unsigned int offset=0) const
Prints the vector.
void push_back (const T & t)
Appends t to the vector.
reverse_iterator rbegin ()
Returns a reverse iterator that points to the reverse beginning of the vector.
const_reverse_iterator rbegin () const
Returns a reverse iterator that points to the reverse beginning of the vector.
void remove (unsigned int i)
Removes element i from the vector, and replaces it with the last element.
void removeAll (const T & t)
Removes all t from the vector. The vector is reordered as when applying multiple remove operations.
void removeLinear (unsigned int i)
void removeLinear (unsigned int first, unsigned int last)
reverse_iterator rend ()
Returns a reverse iterator that points to the reverse end of the vector.
const_reverse_iterator rend () const
Returns a reverse iterator that points to the reverse end of the vector.
void resize (unsigned int newSize)
Resize to size n .
void setArray (T * newArray, unsigned int newSize)
build from array
unsigned int size () const
Returns the size of the vector.
virtual ~SBCContainerVector ()
Destructs the vector.

Public Functions Documentation#

function SBCClassAttributeChangeVector [1/2]#

inline SBCClassAttributeChangeVector::SBCClassAttributeChangeVector () 

function SBCClassAttributeChangeVector [2/2]#

inline SBCClassAttributeChangeVector::SBCClassAttributeChangeVector (
    unsigned int n
) 

function ~SBCClassAttributeChangeVector#

inline SBCClassAttributeChangeVector::~SBCClassAttributeChangeVector ()